Error: embedded nul in string

51 views
Skip to first unread message

Joseph McMurry

unread,
Jul 26, 2016, 2:26:14 PM7/26/16
to Shiny - Web Framework for R
I'm getting "Error: embedded nul in string)" when reading in a CSV file from a remote URL.
The string is myData in the below code:

download.file(url, destfile, "curl")
myData = read.csv(destfile)

I tried changing the fileEncoding to UTF-8 in the read.csv() call but that didn't help.

Oddly, I don't get the error when running on shinyapps.io but on my self-hosted shiny server (on Ubuntu v.16.04, just installed shiny on it todtay) I do get the error.

Thanks,

Joseph
Reply all
Reply to author
Forward
0 new messages