I am getting below Parsing error each time I use Knit Html in R for converting my Rmd files into HTML:
Error in parse_all(input, filename, stop_on_error != 2L) : unused argument (stop_on_error != 2) Calls: ... call_block -> block_exec -> in_dir -> evaluate -> parse_all
Execution halted
Same result is obtained when using knitr or knitr:knit2html from the command line. Error did not exist before (I have already used Knit HTML for many .Rmd reports) but appeared when I used knit2html from the cmd for the first time. The compilation is only working where there are no R code chunks in the .Rmd file or when the chunks are empty. I work under windows 7, R version: 3.2.3, R studio version: 0.99.902. Below is the only R code chunk in the test.Rmd file that I am using for testing:
```{r}
i <- 0
i < i + 3
i
```
Yes, Vincent is right. You seem to have updated your
knitr
package to version 1.13 in the last days. This version only runs under the newR
version 3.3.0 (also released a couple days ago).You have two options:
R
to version 3.3.0Revert your
knitr
installation to version 1.12 using the following code:I faced with the same exact problem, hence I came up with this page. Based on the suggestions, I installed R version 3.3.0, and uninstalled 3.2.4. I re-installed the packages. However, fread function stopped working. I read that it might be related to dll's being messed up etc. Then I completely uninstalled R, and Rstudio. I also deleted the library folder where the packages are installed. Re-installed R, then Rstudio (latest version 0.99.902), then the packages. Now everything is working fine.
After seeing the same error, the following (updating evaluate package) helped me
Evaluate is used by knitr. Here is a link to CRAN about evaluate: https://cran.rstudio.com/web/packages/evaluate/index.html
My R version is 3.2.4. There is no need to do any complicated re-installs. Try this first.