Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R Debugging - Cannot see which line generates warning message (Shiny)

Tags:

r

debugging

Is there a way to make Rstudio tell you which line of which sourcefile generated a warning message? Right now it just prints the message and I am lost as to what is causing the issue.

In Rstudio, this menu option is checked: Debug > Error > Error Inspector

But it doesnt' help, probably because these are warnings and not errors? Ideas?

like image 317
rstruck Avatar asked Mar 18 '15 20:03

rstruck


1 Answers

First turn on displaying warnings using the command options(warn=1) Then, you could run it by clicking on the "Source" or "Source with Echo" button (see image below). You can see the error/warning messages when any line with errors/warnings is executed.

enter image description here

like image 172
ConfusedMan Avatar answered Oct 25 '22 14:10

ConfusedMan