I don\'t think R CMD BATCH or Rscript is supposed to stop on an error, but I would like it to (or something like it).
R CMD BATCH
Rscript
As an example I have this
If I remove the following from my .Rprofile I do not have the problem:
.Rprofile
options(error = utils::dump.frames)
Thanks to the commenters for helping me figure that out.