[英]How do you enable scp in libcurl when using with R?
I am trying to use scp from within RStudio to directly access a remote log file.我正在尝试使用 RStudio 中的 scp 直接访问远程日志文件。 I can use scp from the command line and it works great.
我可以从命令行使用 scp,效果很好。 But within RStudio I get the following error:
但在 RStudio 中,我收到以下错误:
Protocol "scp" not supported or disabled in libcurl libcurl 不支持或禁用协议“scp”
How can I enable scp?如何启用 scp?
I am using the curl and RCurl libraries with RStudio我在 RStudio 中使用 curl 和 RCurl 库
Environment: platform x86_64-apple-darwin13.4.0环境:平台x86_64-apple-darwin13.4.0
arch x86_64拱 x86_64
os darwin13.4.0操作系统达尔文13.4.0
system x86_64, darwin13.4.0系统 x86_64,darwin13.4.0
status状态
major 3专业 3
minor 2.0小2.0
year 2015 2015年
month 04 04月
day 16第 16 天
svn rev 68180 svn 版本 68180
language R语言 R
version.string R version 3.2.0 (2015-04-16) nickname Full of Ingredients version.string R 版本 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通过此链接重新安装 curl - https://askubuntu.com/questions/1128780/how-to-build-the-latest-curl-from-sources-to-allow-downloading-files-via-sftp
Then, reinstall RCurl:然后,重新安装 RCurl:
install.packages("RCurl",type="source")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.