将R文件转换为R markdown时出现问题

laawzig2  于 2023-04-27  发布在  其他
关注(0)|答案(1)|浏览(251)

当我试图通过Rstudio中的编译报告功能将R文件转换为R markdown文件时,我遇到了这个错误消息,我不明白为什么。

processing file: airline_customerSatisfaction.spin.Rmd
  |.......................                                               |  33%
  ordinary text without R code

  |...............................................                       |  67%
label: unnamed-chunk-1

Quitting from lines 3-346 (airline_customerSatisfaction.spin.Rmd) 
Error in contrib.url(repos, "source") : 
  trying to use CRAN without setting a mirror
Calls: <Anonymous> ... eval_with_user_handlers -> eval -> eval -> install.packages -> contrib.url
In addition: Warning message:
In do_once((if (is_R_CMD_check()) stop else warning)("The function xfun::isFALSE() will be deprecated in the future. Please ",  :
  The function xfun::isFALSE() will be deprecated in the future. Please consider using base::isFALSE(x) or identical(x, FALSE) instead.
Execution halted

有人能给我解释一下为什么会发生这种情况吗?谢谢!

2izufjch

2izufjch1#

将knitr包更新到最新版本(1.42)为我解决了这个问题。

相关问题