gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 10:47:05 25 4
gpt4 key购买 nike

我正尝试在 RStudio 中使用 scp 直接访问远程日志文件。我可以从命令行使用 scp,效果很好。但在 RStudio 中,我收到以下错误:

libcurl 不支持或禁用协议(protocol)“scp”

如何启用 scp?

我在 RStudio 中使用 curl 和 RCurl 库

环境:平台 x86_64-apple-darwin13.4.0
架构 x86_64
操作系统 darwin13.4.0
系统x86_64,darwin13.4.0
状态
专业3
次要 2.0
2015年
04月
第 16 天
svn 版本 68180
语言 R
version.string R 版本 3.2.0 (2015-04-16)昵称料足

最佳答案

我花了几个小时来解决这个问题。此链接解决了我的问题。

通过此链接重新安装 curl - https://askubuntu.com/questions/1128780/how-to-build-the-latest-curl-from-sources-to-allow-downloading-files-via-sftp

然后,重新安装 RCurl:

install.packages("RCurl",type="source")

关于r - 与 R 一起使用时如何在 libcurl 中启用 scp?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32281182/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com