[Rd] enableJIT() prohibits usual R debugging

Vitalie Spinu spinuvit at gmail.com
Wed Mar 21 10:19:24 CET 2012


Hi, 

Browser doesn't work properly with the compiler enabled. It might be
intended behavior, but it's not documented.


compiler::enableJIT(1)
foo <- function(){
    browser()
    cat("here\n")
}



Browser doesn't stop, and I am getting:

> foo()
Called from: foo()
Browse[1]> here
> 

Thanks, 
Vitalie.

> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform: i686-pc-linux-gnu (32-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=C                 LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

loaded via a namespace (and not attached):
[1] tools_2.14.2
>



More information about the R-devel mailing list