我正在使用getForm反复从api中提取数据。有时程序会完成,而有时经过一些迭代后,我会收到以下错误消息:

Error in curlPerform(url = url, curl = curl, .opts = .opts) :
attempt to apply non-function
In addition: There were more than 50 warnings (use warnings() to see the first 50)
> traceback()
5: .Call("R_curl_easy_perform", curl, .opts, isProtected, .encoding,
   PACKAGE = "RCurl")
4: curlPerform(url = url, curl = curl, .opts = .opts)
3: getURLContent(uri, .opts = .opts, .encoding = .encoding, binary = binary,
   curl = curl)
2: getForm("https://xx", .params = parval)
1: fromJSON(getForm("https://xx",
   .params = parval)) at #32


警告是:

In RCurlIconv(str, from = "C99", to = encoding) :
UTF-8 not supported iconv entries


谢谢你的帮助!

最佳答案

只是下载错误,有时下载失败。在这种情况下,我只是设置了一项尝试再次下载的方法。

10-04 21:52
查看更多