diff --git a/R/python.assign.R b/R/python.assign.R index 115f9ed..7e19551 100644 --- a/R/python.assign.R +++ b/R/python.assign.R @@ -6,6 +6,9 @@ python.assign <- function( var.name, value ){ #value <- toJSON( value ) value <- toJSON( value, collapse = "" ) + + # Sometimes toJSON introduces newlines that disturb the python interpreter + value <- gsub("\n", "", value) # Creating the call