I am running RStudio with R 4.0.4 on Windows 10 64-bit.
Created an .rmd file but cannot knit PDF from it. Can't knit HTML either. The message is as below.
I have installed knitr, yaml, tinytex, rmarkdown, tools, utils packages and updated them all. Also, installed MiKTeX. RStudio Global Option -> sweave uses knitr and pdLaTeX.
There is no install.packages anywhere in the rmd file.
Error: 2:55: unexpected string constant
3:
4: install.packages('
^
Execution halted
Thanks.