[Rd] Odd behavior on Windows: Rgui responds to user interrupts (Ctrl-C) at the Windows command prompt (iff launched from one)

2014-04-25 Thread Henrik Bengtsson
On Windows, 1. Open the Windows Command interpreter (cmd.exe). 2. Launch rgui.exe --vanilla. 2. In RGui, (disable Misc -> Buffered output) and run the following endless loop: > i <- 0; repeat { print(i <- i + 1); Sys.sleep(0.1) } [1] 1 [1] 2 [1] 3 ... 3a. Back at the Windows command line, pres

Re: [Rd] palette() can hang and fail due to X11

2014-04-25 Thread Andrew Piskorski
On Thu, Apr 24, 2014 at 09:22:40PM -0400, Simon Urbanek wrote: > The bottom line is that you probably don't want to set the palette > if you don't have a device that could be used. Ok. In my testing so far, it seems all I need is a simple little function that does: pdf(); nn <- dev.cur(); rr

[Rd] Preventing $R_HOME/site-library/ via R_LIBS_SITE=":" (no other way?)

2014-04-25 Thread Henrik Bengtsson
(As a non-root/non-admin), I've just tried to figure out how to prevent a default $R_HOME/site-library/ to be added to the library path. The solution I found was to environment variable R_LIBS_SITE to ":" (preferably in ~/.Renviron). Note that setting R_LIBS_SITE to en empty string will cause it

Re: [Rd] The regular expressions in compareVersion()

2014-04-25 Thread peter dalgaard
On 25 Apr 2014, at 14:04 , Duncan Murdoch wrote: > On 24/04/2014, 10:27 PM, Simon Urbanek wrote: >> FWIW the link has a long thread that is 90% irrelevant - AFAICS the relevant >> part is >> >> From: Yihui Xie-2 >> Sep 02, 2013; 4:11pm >> Re: Sweave: printing an underscore in the output from a

Re: [Rd] The regular expressions in compareVersion()

2014-04-25 Thread Duncan Murdoch
On 24/04/2014, 10:27 PM, Simon Urbanek wrote: FWIW the link has a long thread that is 90% irrelevant - AFAICS the relevant part is From: Yihui Xie-2 Sep 02, 2013; 4:11pm Re: Sweave: printing an underscore in the output from an R command [...] Now you are good at the regular expression level, bu