myl*_*nid 3 html markdown r knitr r-markdown
我有一个很长的 R 代码,需要大约 2-3 个小时才能运行并编织到 HTML。然而,即使有小错误或警告..针织中止..在下面的示例中,由于保存历史错误,它已经这样做了。
processing file: model_v64.Rmd
|...................... | 33%
ordinary text without R code
|........................................... | 67%
label: unnamed-chunk-1 (with options)
List of 1
$ echo: logi TRUE
Quitting from lines 21-278 (model_v64.Rmd)
**Error in .External2(C_savehistory, file) : no history available to save**
Calls: <Anonymous> ... withCallingHandlers -> withVisible -> eval -> eval -> savehistory
Execution halted
Run Code Online (Sandbox Code Playgroud)
有什么办法可以
谢谢,曼尼什
设置块选项error = TRUE以显示错误而不是停止 R:
knitr::opts_chunk$set(error = TRUE)
Run Code Online (Sandbox Code Playgroud)