简体   繁体   English

与 R 一起使用时如何在 libcurl 中启用 scp?

[英]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.

相关问题 如何保存Excel文件并在R中启用单元格保护? - How do you save Excel file and enable cell protection in R? 当使用 --enable-R-profiling 和 --enable-memory-profiling 编译 R 但不同时使用两者时,我会失去多少性能? - How much performance do I loose when R is compiled with --enable-R-profiling and --enable-memory-profiling but not using both? 如果您使用的是forestplot R包,如何添加脚注? - How do you add a footnote if you are using the forestplot R package? 在R中使用“foreach()”函数时如何创建进度条? - How do you create a progress bar when using the “foreach()” function in R? 当使用 R 的 purrr package 嵌套在另一个列表中时,如何重命名列表的元素? - How do you rename the elements of a list when they are nested within another list using R's purrr package? 在R data.table中使用。()group by时如何更改目标列的类型 - How do you change the type of target column when using .() group by in R data.table 如何使用RCurl包启用sftp - how do you enable sftp with RCurl package R-在安装软件包时如何设置默认语言环境 - R - How do you set the default locale when installing packages 在R中使用Rcurl的SCP函数 - Using SCP function from Rcurl in R 在Windows计算机上使用R进行SSH / SCP - SSH/SCP using R from a windows machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM