I am trying to use scp from within RStudio to directly access a remote log file. I can use scp from the command line and it works great. But within RStudio I get the following error:
Protocol "scp" not supported or disabled in libcurl
How can I enable scp?
I am using the curl and RCurl libraries with RStudio
Environment: platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 2.0
year 2015
month 04
day 16
svn rev 68180
language R
version.string R version 3.2.0 (2015-04-16) nickname Full of Ingredients
I spent several hours to resolve this. This link solved my issue.
Reinstall curl following this link - https://askubuntu.com/questions/1128780/how-to-build-the-latest-curl-from-sources-to-allow-downloading-files-via-sftp
Then, reinstall RCurl:
install.packages("RCurl",type="source")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.