Hi all,
I have a strange issue into which hopefully someone can offer some insight.
I have just updated R to version 3.6, and am encountering an issue that occurs only in markdown code chunks.
Any code I run from a code chunk results in the message Error: option error has NULL value being repeatedly printed in the console. Entering options('error')
after restarting returns:
$error
NULL
Strangely, inline code seems to run fine, eg r plot(cars)
prints the plot in the plot windows, but the same code run from with the code chunk causes the problem. The error also only seems to occur when run in interactive sessions. The only way to stop the behaviour is to terminate RStudio via the Windows Task Manager.
Setting options(error = recover)
works to resolve the issue, until restarting RStudio (or inserting it into my .Rprofile Nope, doesn't work). However, as far as I can tell from ?options
and some Googling, NULL
is the default setting, so any idea why this is happening? And why only in rmarkdown code chunks?
Any info on this would be great,
J