If I am running a long R script from the command line (R --slave script.R), how can I get it to give line numbers at errors?
I don\'t want to add debug commands to
You do it by setting
options(show.error.locations = TRUE)
I just wonder why this setting is not a default in R? It should be, as it is in every other language.