R markdown error in calc_call (...) when knitting any Rmd file

I can no longer link any of my Rmd files to PDF or Html. This is the same error message:

Line 9 Error in calc_call (expr, parsed $ src [[i]], envir = envir, enclos = include ,: unused argument (include_timing = include_timing) Calls: ... call_block → block_exec → in_dir → evalute → evalute_call Execution is paused

Line 9 is the automatically generated line when opening a new R-markdown file:

{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE)

I tried removing it by changing TRUEto FALSEand deleting part of it. This gives me the same error message, stopped on the same line.

+4
source share
5 answers

- Yihui, , evaluate. , . 3.3.1.

Yihui knitr FAQ1 : https://github.com/yihui/knitr/blob/master/FAQ.md

+9

, knitr 1.13 1.14. , R 3.2.x 3.3.x. knitr 1.12, . 1.12.

packageurl <- "http://cran.r-project.org/src/contrib/Archive/knitr/knitr_1.12.tar.gz" install.packages(packageurl, repos=NULL, type="source")

: parser_all R knitr Rmd HTML. , .

+1

, R ! . r markdown, r studio , .

+1

XRAN, https://github.com/yihui/knitr.

# update all existing packages first
update.packages(ask = FALSE, repos = 'http://cran.rstudio.org')
install.packages('knitr', repos = c('http://yihui.name/xran', 'http://cran.rstudio.org'))

.

  • 1.12. , R Notebook .
  • . , .
  • (Rstudio, pandoc, MikTex). .
  • , . !

BTW. .

R version 3.3.1 (2016-06-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Rstudio Version 1.0.44

. , Rstudio R Notebook. . MikTex PDF. .

0

, knitr "" :

.default.hooks = list(
  # ...
  evaluate = evaluate::evaluate
  # ...
)

knitr, -1.0 ( ) . evaluate::evaluate include_timing. knitr evaluate::evaluate, + .

- -0.9 ( ) ​​ . , knitr -0.10 evaluate::evaluate - include_timing evaluate::evaluate_call. <-26 > -0.9 include_timing. Kaboom. .

( ) : https://github.com/yihui/knitr/issues/1441

knitr, :

  • evaluate::evaluate "":

    knitr::knit_hooks$set(evaluate = evaluate::evaluate)
    
  • knitr, ( devtools::install_github ).

0

Source: https://habr.com/ru/post/1658571/


All Articles