我无法弄清楚如何解决这个错误,我一直在R:
错误设置证书验证位置:\ n CAfile:\ n CApath:none \ n twInterfaceObj $ doAPICall中的错误(cmd,params,“GET”,...): 错误:错误设置证书验证位置: 凭证档案错误: CApath:无
我正在尝试使用twitteR
包从以下函数中收集推文。它昨天工作正常,但我找不到解决证书问题的方法。
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)), ])
}