R newbie question: I am generating PDFs using rmarkdown from the console (not using rstudio). I have written a simple r script to render the rmarkdown file from the console, it basically looks like this:
# my_r_script.R
rmarkdown::render('mydoc.Rmd', output_file = opt$out,
params = list(
something = opt$something,
else = opt$else
)
)
In the rmd file bad errors might happen, e.g. some calculations might crash due to the given parameters. Question How can I access those errors in the R script? Or in other words: I want to know if something went wrong in the RMD file how could I achieve that?