omegahat / RCurl

Other
29 stars 14 forks source link

RCurl working in interactive mode but not through non-interactive #40

Closed YvesCR closed 5 years ago

YvesCR commented 5 years ago

I have a script which call Rcurl that I want to automate.

RCurl::getURL(path_folder_sftp , userpwd = "my_pwd" , verbose=TRUE , ftp.use.epsv=TRUE , dirlistonly = T)

It works well in interactive mode.

when using cmd or powershell: C:/PROGRA~1/R/R-3.6.0/bin/Rscript.exe "C:/test/my_test.R" >> "C:/test/log/my_test.log" 2>&1

It fails and return following error:

Not sure if it a RCurl issue though.

YvesCR commented 5 years ago

closing issue, here. Issue was due to different environment :(