r - readLines() does not read from HTTPS URL when called from system("rscript") -
r - readLines() does not read from HTTPS URL when called from system("rscript") -
when straight phone call next in rstudio, works fine.
readlines("https://raw.githubusercontent.com/renkun-ken/rlist-tutorial/master/data/sample.yaml") however, when phone call rterm or save code .r file (say, readlines.r) , call
system("rscript readlines.r") then error occurs:
error in file(con, "r") : cannot open connection calls: readlines -> file in addition: warning message: in file(con, "r") : unsupported url scheme execution halted warning message: running command 'rscript readlines.r' had status 1 i tried http url , there's no problem https url used ends in error if code called external.
how can prepare this?
my session info:
r version 3.1.1 (2014-07-10) platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] lc_collate=english_united states.1252 lc_ctype=english_united states.1252 [3] lc_monetary=english_united states.1252 lc_numeric=c [5] lc_time=english_united states.1252 attached base of operations packages: [1] stats graphics grdevices utils datasets methods base of operations loaded via namespace (and not attached): [1] tools_3.1.1 r
Comments
Post a Comment