Re: [Rd] tcltk freezing using MS Windows for R-2.14+

2012-12-18 Thread Moeltner, Andreas
R Version 2.15.0/Windows XP Maybe this will help to identify the problem (I have similar problems with other tcltk-windows, too.) Inserting some time delay after tktoplevel helps (on my PC): > test2GUI <- function(){ > require(tcltk) > MainWindow <- tktoplevel() Sys.sleep(0.1) > top

Re: [Rd] Call function only when running via R CMD check?

2012-12-18 Thread Henrik Bengtsson
Hi Renaud, On Tue, Dec 18, 2012 at 8:44 AM, Renaud Gaujoux wrote: > Hi Henrik (and list), > > I am interested in a similar feature, and would be happy to see the > suggestions you got off-line :) > Have you come up with a robust solution, which would work in a variety of > situations (in examples

Re: [Rd] Call function only when running via R CMD check?

2012-12-18 Thread Spencer Graves
Have you considered the CRAN function in "fda"? Spencer On 12/18/2012 4:00 AM, Henrik Bengtsson wrote: Hi Renaud, On Tue, Dec 18, 2012 at 8:44 AM, Renaud Gaujoux wrote: Hi Henrik (and list), I am interested in a similar feature, and would be happy to see the suggestions you got off-line :)

Re: [Rd] Call function only when running via R CMD check?

2012-12-18 Thread Renaud
Many thanks for your replies. I had a quick look at both functions: - CRAN(): it detects timing check from --as-cran. - queryRCmdCheck() allows to detect which part of the check is calling a function (examples, tests?). Both are useful! Would be nice to have a R-base function which can provide a

[Rd] Rtools216.exe on Windows

2012-12-18 Thread Gabor Grothendieck
1. If your PATH is very long then on the Select Additional Tasks screen in the Rtools installer the two check box titles (Edit the system PATH and Save version number) will be obscured (i.e. you won't be able to see them at all) making the screen very confusing. One just sees two boxes on the left

Re: [Rd] tcltk freezing using MS Windows for R-2.14+

2012-12-18 Thread Keith
Andreas, thanks so much for this clue. I have found that if I reduced the time in seconds from 0.1 to 0.01 to 0.001 to 0.0001 I only had problems with freezing on the 0.0001 time. I tested on Win7(64 bit) on an Intel core i7 870 at 2.93GHz (16GB ram)(8 cores) and a WinXP (32bit) Pentium 4 3.

Re: [Rd] tcltk freezing using MS Windows for R-2.14+

2012-12-18 Thread Mark.Bravington
Just a caveat about Sys.sleep() etc style fixes: I've had long-standing problems with tcltk on Windows in my 'debug' package-- i.e. for at least 7 years. The typical syndrome is that the debug window appears just as an empty frame, which has to be manually minimized/maximized/restored (or some