I'm using R version 4.0.2. Right now, I'm unable to knit to html, pdf or word, because I get the following error -
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
This happens even when I open a new rmarkdown file and try to knit without making any changes to the file.
I found this link, where a similar problem was resolved, however I am unable to understand the technicalities. For example, here is one of the suggestions -
If .RData is not the culprit, the other possible culprit is .Rprofile (it could exist in multiple places, including your project root, working directory, or home directory normalizePath('~')). In any case, I believe rmarkdown is unlikely to be the culprit.
This is a bit high level for me. If anyone can provide me instructions (or point me to resources that explain the process). How do I check if my .Rprofile is in multiple locations, and how do I fix that? Any help will be appreciated.
Here is the code I'm trying to knit -
knitr::opts_chunk$set(echo = TRUE)
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
You can also embed plots, for example:
options(expressions= 100000) plot(pressure)