Please see knitr FAQ #1. In this case you have to update the evaluate
package at least. It is weird somehow because I have specified the version of evaluate
must be greater than 0.4.2 in DESCRIPTION, and I do not know why R did not install the correct version when you installed knitr
.
knit command doesn't work whereas knit HTML button does
-
14-01-2022 - |
سؤال
I have a Rmd file that uses some of the saved Rdata in the working directory and displays them, pretty simple. I even have cache=FALSE. When I click the kintHTML button, I get the html page. When I go to the Rstudio console and type knit('TestReport.Rmd'), I get the error
Error in evaluate(code, envir = env, new_device = FALSE, stop_on_error = opts_knit$get("stop_on_error")) : unused argument(s) (new_device = FALSE, stop_on_error = opts_knit$get("stop_on_error"))
What could be wrong? I have installed evaluate package as well.
المحلول
لا تنتمي إلى StackOverflow