How to show error line number in R studio -


is possible see syntax error or runtime error line number (highlight also) generated after running code in r studio?

i searched options couldn't find.

first, have @ ?traceback.

there many ways debug r code/script. 1 example.

in rstudio, debug drop down menu option on error, choose error inspector (what think is) easiest debug mode finding line number of error/bug. can choose break in code show highlighted line of r script contains error.

when error occurs, can click either of small areas marked show traceback , rerun debug. screen shot below shows effect of clicking "show traceback" (hence says "hide traceback"). tells me error occurred when r attempted call sample (the third call). length had not yet been defined.

enter image description here


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -