[R] browser always enters debug mode

2014-04-08 Thread Paul Murtaugh
This is something peculiar about the environment on one particular linux box, because it doesn't happen on other computers. Whenever I invoke browser() inside a function, it automatically enters debugging mode, with line-by-line execution of code: dum - function() { browser(); x -

Re: [R] browser always enters debug mode

2014-04-08 Thread Paul Murtaugh
It appears to be a difference between versions 2.* and 3.* in the way that a newline ('enter') is handled at the browser prompt. Formerly, it would continue execution of the function; now it kicks you into debugging mode. To get the old behavior, you need to enter 'c' at the browser prompt.

[R] error options

2011-12-28 Thread Paul Murtaugh
Hi, I'm running simulations that include a function that occasionally fails because of an unpredictable singularity in a matrix that it tries to invert. I'd like to have the function return 'NA' when that happens, so that the simulations can continue. I've tried things like: test -

[R] What BIC is calculated by 'regsubsets'?

2008-12-20 Thread Paul Murtaugh
The function 'regsubsets' appears to calculate a BIC value that is different from that returned by the function 'BIC'. The latter is explained in the documentation, but I can't find an expression for the statistic returned by 'regsubsets'. Incidentally, both of these differ from the BIC that

[R] slow graphics download

2008-10-20 Thread Paul Murtaugh
Hi, I often work from home, running R on my office computer and displaying interactive graphics on my home computer using X11. This was always more sluggish than sitting at my office computer, obviously, but recently the graphics transfer has become painfully slow -- so slow, that I now

[R] ubuntu installation: can't find ldpaths

2008-09-24 Thread Paul Murtaugh
I'm trying to install R under Ubuntu 7.10 (gutsy; Linux 2.6.22-15-generic x86_64). Following the instructions at http://cran.r-project.org/bin/linux/ubuntu/README, I installed r-base, r-base-core, and r-base-dev without any problems. When I open R, however, I get the message Can't open