0

我不知道如何解决我在 R 中不断遇到的这个错误:

设置证书验证位置时出错:\n CAfile:\n CApath:无\n twInterfaceObj$doAPICall(cmd, params, "GET", ...) 中出错:错误:设置证书验证位置时出错:CAfile: CApath: none

我正在尝试使用该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)), ])

}
4

1 回答 1

0

我不知道这个包。但也许这个http://curl.haxx.se/docs/sslcerts.html可以帮助你。它解决了我在使用另一个 R 包时遇到的证书问题。

于 2013-07-07T18:54:12.227 回答