Markdown报告未在Rstudio中执行 [英] Markdown Report Not Executing in Rstudio
本文介绍了Markdown报告未在Rstudio中执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在生成错误:
> options(encoding='UTF-8'); require(knitr); knit('March-2013-Report.Rmd');
Loading required package: knitr
processing file: March-2013-Report.Rmd
|...................... | 33%
ordinary text without R code
|........................................... | 67%
label: unnamed-chunk-1
Quitting from lines 4-5 (March-2013-Report.Rmd)
Error in evaluate(code, envir = env, new_device = FALSE, stop_on_error = if (options$include) opts_knit$get("stop_on_error") else 2L) :
unused argument(s) (new_device = FALSE, stop_on_error = if (options$include) opts_knit$get("stop_on_error") else 2)
Calls: knit ... process_group.block -> call_block -> block_exec -> in_dir -> evaluate
Execution halted
knitr terminated with status 1
使用RSTudio编织.Rmd
文件中包含的以下代码时:
when using RSTudio to knit the following code contained within a .Rmd
file:
March 2013 - UGA Google Analytics Report
========================================================
```{r}
2+2
```
## About this Report
## Future Vision for GA and Web Reporting
## Analysis
### Basic Page Stats
我通常可以调试我的错误,并确定这是显而易见的,但是我在做什么错,为什么不编译?
I usually can debug my errors and am sure that this is something obvious, but what am I doing wrong and why doesn't this compile?
谢谢.
更新:会话信息
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] plyr_1.7.1 stringr_0.6.1 rga_0.8 httr_0.2 lubridate_1.2.0
[6] rjson_0.2.10 RCurl_1.95-1.1 bitops_1.0-4.1
loaded via a namespace (and not attached):
[1] codetools_0.2-8 digest_0.5.2 evaluate_0.4.2 formatR_0.6 knitr_1.1.8
[6] tools_2.15.0
推荐答案
我的猜测是这是过时软件包的问题.您可以尝试更新吗?在RStudio的packages
标签下,您应该有一个选项来更新任何需要的软件包.
My guess would be that it's an issue with outdated packages. Can you try updating? In RStudio, under the packages
tab, you should have an option to update any packages which are in need.
这篇关于Markdown报告未在Rstudio中执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文