Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I can no longer knit any of my Rmd files to PDF or Html. It's the same error message every time:

Line 9 Error in evaluate_call(expr, parsed$src[[i]], envir = envir, enclos=enclos, : unused argument (include_timing = include_timing) Calls: ... call_block -> block_exec -> in_dir -> evalute -> evalute_call Execution halted

Line 9 is an auto-generated line when opening a new R markdown file:

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

I've tried deleting it, changing TRUE to FALSE, and deleting part of it. It gives me the same error message stopped on the same line.

like image 875
Jen Mo Avatar asked Dec 18 '22 12:12

Jen Mo


2 Answers

If you are still receiving the same error Yihui, from the same linked answer above says to update the evaluate package. When I updated, the error stopped. I am currently running 3.3.1.

Yihui offered guidance in the knitr FAQ1 here: https://github.com/yihui/knitr/blob/master/FAQ.md

like image 115
elmuertefurioso Avatar answered Jan 31 '23 08:01

elmuertefurioso


I had this exact problem when I tried to update knitr to version 1.13 or 1.14. I get the same error if I try to knit with an R version 3.2.x or 3.3.x. I suggest reverting to knitr version 1.12 using the below. I don't get the above error with 1.12.

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

Taken from this answer: getting a parser_all error in R when using knitr for converting a basic Rmd file into HTML. Still unsure what the issue is.

like image 35
ArcherT Avatar answered Jan 31 '23 10:01

ArcherT