att / rcloud

Collaborative data analysis and visualization
http://rcloud.social
MIT License
429 stars 141 forks source link

rcloud.download.file() fails to insert newlines between character vector lines #2721

Closed s-u closed 4 years ago

s-u commented 4 years ago

rcloud.download.file("myfile.csv", readLines("myx.csv"), "text/csv")

doesn't work as expected, it removes newlines from the output and thus produces just one line

s-u commented 4 years ago

I have fixed this on the R side by making sure JS only ever gets a scalar string.