R/httr-为json请求添加进度条时出错

R/httr-为json请求添加进度条时出错,json,r,httr,Json,R,Httr,当我发出json POST请求时,我试图合并一个进度条来监控进度。但是,我只在任务完成时看到进度条(它显示为100%),所以这不是很有用 我还收到以下警告: > response <- POST(url,config=progress(),body=data2) |=============================================================================================================

当我发出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(“jeroenooms”)吗/httr@progress)。修复程序不太可能在CRAN中。它已被合并到Hadley master中,因此您可以执行
devtools::install\u github(“Hadley/httr”)
我尝试了这些方法,但现在出现了更多错误。编辑文章以包括。感谢您的回复!我切换回了旧版本,因为我也得到了与您相同的错误。@user227710我该怎么做?“进步”仍然有效吗?谢谢你的回复
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
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’.