Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to debug in rstudio

Tags:

r

rstudio

I have following simple program with current state of rstudio as shown in below screenshot:

enter image description here

When I called fun1() on console, it results in following screen:

enter image description here

I was expecting it to highlight line 1 a<-5 with yellow color showing green arrow on left as line 143 in this digram:

enter image description here

When I click Next (F10) in Console window, it looks like this:

enter image description here

So it seems that, it has step throught line 2 a<-5 and created a variable a as its shown in Environment window, but still it does not highlight the current line to be executed with yellow color nor it shows the green arrow pointing the line. Whats wrong here?

I am running portable version of RStudio 0.99.903 on Windows 7 64bit and RStudio is configured to use 32 bit R 3.3.0. I am new to RStudio. Primarily used eclipse.

like image 629
Mahesha999 Avatar asked Oct 17 '25 22:10

Mahesha999


1 Answers

This is a known issue. Starting at R 3.3.0, an internal R change broke RStudio's debugger for 32-bit R. There are two ways to get around the problem:

  1. Use the preview version of RStudio, which includes a fix for this problem. https://www.rstudio.com/products/rstudio/download/preview/

  2. Use the 64-bit version of R, which shouldn't have the problem.

If you use the preview, send us some feedback and let us know whether it addressed your issue!

like image 166
Jonathan Avatar answered Oct 19 '25 13:10

Jonathan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!