In R you can see the line number of an error using the following option:
options(show.error.locations = TRUE)
Is there anyway to enable this feature by default on starting the R interpreter?
In R you can see the line number of an error using the following option:
options(show.error.locations = TRUE)
Is there anyway to enable this feature by default on starting the R interpreter?
Add the option to your user specific .Rprofile file
options(show.error.locations = TRUE)
You can find the folder in which your user specific .Rprofile file should be using this function:
path.expand("~")
If a .Rprofile file does not already exist here, create it.