当我执行R代码以下载文件时。该段代码如下:
pb <- winProgressBar(title="Fetching Reports... ", label="0%", min=0, max=100, initial=0,width = 500)
for (i in 1:nrow(cfig)) {
tic()
getWinProgressBar(pb)
setWinProgressBar(pb, i*(100/nrow(cfig)), label =paste(round(i*(100/nrow(cfig)))," % \n",cfig[i]$testReport))
flog.info(paste0("report",i,"started",cfig[i]$dn_url))
fetch.success = fetch(cfig[i]$dn_url,cfig[i]$save.location)
t <- toc()
t$toc
result[i]$fetch <- fetch.success
result[i]$fetch.time <- t$toc / 10000
}
close(pb)
但是它给出了如下所示的错误:
flog.info中的错误(paste0(“ report”,i,“ started”,cfig [i] $ dn_url)): 找不到功能“ flog.info”
我没有得到此flog.info()错误的原因。提出原因以及如何解决?
先谢谢了!!!