I'm trying to take an Rmarkdown file written by someone else and run it from the command line (not RStudio) using
Rscript -e 'library(rmarkdown); rmarkdown::render("input.Rmd")'
Execution continues along printing things like this to my console as it processes each chunk:
label: readDataFiles (with options)
List of 1
$ error: logi TRUE
|.............. | 22%
ordinary text without R code
However, a chunk is failing and execution stops. I believe it is because a path passed to a function is not valid. So I tried to add a new chunk that displays the value of this path to my console:
``` {r thePath, eval=True}
path
```
However I just see the output
label: thePath (with options)
List of 1
$ eval: logi TRUE
The value of the path
variable is not visible. And I do not get out an HTML file to look at because the overall knitting process fails. How can I debug this in my console?
I've tried this answer with no success.