当我发出json POST请求时,我正在尝试合并进度条来监控进度。但是,我只在任务完成时看到进度条(显示为100%),因此不太有用......
我也收到以下警告:
> response <- POST(url,config=progress(),body=data2)
|==============================================================================================================================================================================================================================| 100%
There were 50 or more warnings (use warnings() to see the first 50)
> warnings()
Warning messages:
1: In curl::curl_fetch_memory(url, handle = handle) :
progress callback must return boolean
2: In curl::curl_fetch_memory(url, handle = handle) :
progress callback must return boolean
3: In curl::curl_fetch_memory(url, handle = handle) :
progress callback must return boolean
etc.
我在github上发现了this conversation about httr这似乎意味着问题已经解决,但我仍然收到了警告。任何想法如何让这个进展条工作?谢谢!
根据下面的评论,我试过了 devtools:install_github(&#34; hadley / httr&#34;)
并收到以下错误:
Reloading installed httr
Error in get(method, envir = home) :
lazy-load database 'C:/Users/.../R/win-library/3.2/httr/R/httr.rdb' is corrupt
In addition: Warning message:
In get(method, envir = home) : internal error -3 in R_decompress1
> response <- POST(url,config=progress(),body=data2)
Error: could not find function "POST"
> library(httr)
Error in get(method, envir = home) :
lazy-load database 'C:/Users.../R/win-library/3.2/httr/R/httr.rdb' is corrupt
当我尝试调用库(httr)时,
In addition: Warning messages:
1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], :
restarting interrupted promise evaluation
2: In get(method, envir = home) :
restarting interrupted promise evaluation
3: In get(method, envir = home) : internal error -3 in R_decompress1
Error: package or namespace load failed for ‘httr’.