Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is this error in RStudio: "breakpoints will be activated when the file or function is finished executing"?

Tags:

r

rstudio

I am trying to set a break point inside a function from a package I wrote. I am unsuccessful when clicking next to the line number in Rstudio, the error message looks like:

enter image description here

I am not executing anything. Reloading the package did not help either. What is this error and what can I do about it?

like image 893
Alex Avatar asked Jul 14 '17 06:07

Alex


1 Answers

Check out this documentation from RStudio that explains what to do.

Basically, make sure you save your R file, then click the Source button on the toolbar: enter image description here

Your breakpoint should then turn from a hollow red circle to a full one.

like image 126
Yu Chen Avatar answered Oct 14 '22 06:10

Yu Chen