&引用;设置证书时出错“;R中的问题
我不知道如何修复这个错误我一直在R: 设置证书验证位置时出错:\n CAfile:\n CApath:无\n twInterfaceObj$doAPICall(cmd,params,“GET”,…)中出错: 错误:设置证书验证位置时出错: 卡菲尔: 卡帕斯:没有 我正在尝试使用&引用;设置证书时出错“;R中的问题,r,twitter,R,Twitter,我不知道如何修复这个错误我一直在R: 设置证书验证位置时出错:\n CAfile:\n CApath:无\n twInterfaceObj$doAPICall(cmd,params,“GET”,…)中出错: 错误:设置证书验证位置时出错: 卡菲尔: 卡帕斯:没有 我正在尝试使用twitteR包从下面的函数中收集tweet。昨天工作正常,但我找不到解决证书问题的方法 TweetFrame <- function(searchTerm, maxTweets) { twtList<
twitteR
包从下面的函数中收集tweet。昨天工作正常,但我找不到解决证书问题的方法
TweetFrame <- function(searchTerm, maxTweets)
{
twtList<-searchTwitter(searchTerm,n=maxTweets)
#twtList is involved in “variable” scoping so it only exists within the function
# searchTerm needs to be a string so use "#hashtag"
twtTempFrame<- do.call("rbind", lapply(twtList,as.data.frame))
# as.data.frame() coerces each list element into a row
# lapply() applies this to all of the elements in twtList
# rbind() takes all the rows and puts them together
# do.call() gives rbind() all the rows as individual elements
return(twtTempFrame[order(as.integer(twtTempFrame$created)), ])
}
TweetFrame我不知道这个软件包。但也许这能帮你。它解决了我在使用另一个R软件包时遇到的证书问题。感谢您的回复!我尝试使用download.file(url=”“,destfile=“cacert.pem”)和credential$handshake(cainfo=system.file(“curlsl”,“cacert.pem”,package=“RCurl”))在这里的另一个线程上看到了建议,但没有解决问题。我肯定这与此有关,但我不确定它在以前工作得非常好的时候到底“坏”了什么。