[英]Error with googlesheets package in R - unable to load curl
I'm trying to update a google sheet in R using the googlesheets package, but: 我正在尝试使用googlesheets包更新R中的google表格,但是:
whenever I try gs_title('Name_of_the_sheet') , I get an error saying 'Error in loadNamespace(name) : there is no package called 'curl''. 每当我尝试gs_title('Name_of_the_sheet')时 ,都会收到一条错误消息,提示“ loadNamespace(name)中的错误:没有名为'curl'的软件包”。
Of course, I tried installing the package curl before calling the package using the library function: 当然,我尝试在使用库函数调用软件包之前安装curl软件包:
install.packages('curl') install.packages('curl')
When i install curl, it says : "package 'curl' successfully unpacked and MD5 sums checked" 当我安装curl时,它说: “软件包'curl'已成功解压并检查了MD5的总和”
followed by: 其次是:
"Warning in install.packages : cannot remove prior installation of package 'curl'" “在install.packages中警告:无法删除软件包'curl'的先前安装”
And when I use "library('curl')", I get: "Error in library("curl") : there is no package called 'curl'" 当我使用“ library('curl')”时,我得到:“ library(” curl“)中的错误:没有名为'curl'的软件包
I've also tried: 我也尝试过:
. 。 But again, that's of no use.
但这又没有用。
I want to be able to update the google sheet without running into this error. 我希望能够更新Google工作表而不会遇到此错误。 Any suggestions would be appreciated.
任何建议,将不胜感激。 Thank you!
谢谢!
Found a solution: 找到一个解决方案:
Your package will have a folder name in the location: 您的包裹将在以下位置具有文件夹名称:
C:\\Users\\Username\\Documents\\R\\win-library\\3.5 C:\\ Users \\ Username \\ Documents \\ R \\ win-library \\ 3.5
Delete that folder; 删除该文件夹; then try installing the package and load it.
然后尝试安装该软件包并加载它。 That would solve this problem.
那将解决这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.