Rstudio crashes when using debug

I want to debug a function i made. If i use the debug() function i get a lot of errorcodes. It doesnt matter which function i want to debug, i always get the same error. The error repeats itself until i end RStudio in task manager.
I uploaded the error code in a picture.
For example, i cant debug this function:

test <- function(x){
y <- x^2
return(y)
}
debug(test)
test(2)

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: 1.2.1335
  • OS Version:
  • R Version: 4.0.2
  • sessionInfo(): R version 4.0.2 (2020-06-22)
    Platform: x86_64-w64-mingw32/x64 (64-bit)
    Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale:
[1] LC_COLLATE=Dutch_Netherlands.1252
[2] LC_CTYPE=Dutch_Netherlands.1252
[3] LC_MONETARY=Dutch_Netherlands.1252
[4] LC_NUMERIC=C
[5] LC_TIME=Dutch_Netherlands.1252

attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base

loaded via a namespace (and not attached):
[1] compiler_4.0.2 tools_4.0.2


Referred here from support.rstudio.com

Hi,

Welcome to the RStudio community!

Judging by a similar post it seems this issue is indeed RStudio related. I tested it and it rund fine for me, but I'm on the latest version of RStudio (Version 1.3.1073)

I suggest you update your RStudio (Help -> Check for Updates) and see if the issue persists. Also, to make sure it's RStudio if this fails, try to run the code in plain R to verify.

Hope this helps,
PJ

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.