Re: [Rd] My retraced version of R logo in SVG

2010-10-15 Thread friedrich . leisch
Dear Tobias, thanks a lot, this looks very nice. I just exported it to PDF and can zoom in and out with great results. I think we should replace the current logo with bitmaps (where necessary) of your version and would the be able to use vector versions wherever possible. Great work really

Re: [Rd] Scripting SVG with R

2010-10-15 Thread Gabriel Becker
Wolfgang, I am currently working on this very thing under Duncan Temple Lang. Or, to be more precise what you are describing is one piece of our overarching goal, which is to create a system in which R can be run from within a browser (currently FireFox) with bi-directional communication

[Rd] Adding more man page links to base::all.vars

2010-10-15 Thread Patrick Aboyoun
I was having a hard time finding the all.vars function (and wound up creating a poor man's version -- see below). I see that there are links to all.vars in the stats/man/case.names.Rd and stats/man/formula.Rd. I was wondering if more crosslinks could be made for this function, particularly in

[Rd] Package 'nlme' fails 'make check-all' in R 2.12.0 patched built from source

2010-10-15 Thread Marc Schwartz
Hi all, I am building R 2.12.0 patched this morning from source on Snow Leopard (10.6.4). In fact, three times now, with separate clean source and build directories each time, just to be sure that the issue is predictable. I would be happy to have somebody tell me that I am missing something

[Rd] calling browser on error

2010-10-15 Thread Vadim Ogranovich
Dear R-developers, I am trying to figure out a way to call browser() when an error occur, and naturally I want the browser() to be called in the environment of the error. I tried something simple in vain: f - function() { x - 1; stop('ok') } tryCatch(f(), error=browser()) Called from:

Re: [Rd] calling browser on error

2010-10-15 Thread Joshua Ulrich
I believe options(error=recover) will do what you want. -- Joshua Ulrich  |  FOSS Trading: www.fosstrading.com On Fri, Oct 15, 2010 at 1:27 PM, Vadim Ogranovich vogranov...@jumptrading.com wrote: Dear R-developers, I am trying to figure out a way to call browser() when an error occur, and

Re: [Rd] Package 'nlme' fails 'make check-all' in R 2.12.0 patched built from source

2010-10-15 Thread Prof Brian Ripley
Marc, For make check-all you may need to set setenv _R_CHECK_FORCE_SUGGESTS_ FALSE Yes, there is a change in nlme, because packages needed for complete testing are required to be listed in DESCRIPTION: see 'Writing R Extensions'. Most of us have that environmnet variable set. Brian On

Re: [Rd] calling browser on error

2010-10-15 Thread Vadim Ogranovich
Joshua, I didn't know about 'recover', thank you! Anyway it doesn't work for me: tryCatch((function() { x - 1; stop('ok') })(), error=recover()) Enter a frame number, or 0 to exit 1: tryCatch((function() { Selection: 1 Called from: eval(expr, envir, enclos) Browse[1] x Error: object 'x' not

Re: [Rd] calling browser on error

2010-10-15 Thread William Dunlap
He said to use options(error=...) instead of tryCatch(error=...). In C++ lingo, the handler set by options(error) is called when the exception is thrown while tryCatch's handler is called when it is caught. Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message-

Re: [Rd] Package 'nlme' fails 'make check-all' in R 2.12.0 patched built from source

2010-10-15 Thread Marc Schwartz
On Oct 15, 2010, at 1:44 PM, Prof Brian Ripley wrote: Marc, For make check-all you may need to set setenv _R_CHECK_FORCE_SUGGESTS_ FALSE Yes, there is a change in nlme, because packages needed for complete testing are required to be listed in DESCRIPTION: see 'Writing R Extensions'.

[Rd] Missing libpthread in RTools

2010-10-15 Thread Davor Cubranic
It appears that Mingw gcc included in RTools is missing a dependent library. If I compile a program with '-lgomp' switch (for OpenMP support), I get a errors about undefined references to functions like '_imp__pthread_mutex_destroy'. Adding the '-static' switch, I get the following error:

Re: [Rd] Missing libpthread in RTools

2010-10-15 Thread Duncan Murdoch
On 15/10/2010 4:53 PM, Davor Cubranic wrote: It appears that Mingw gcc included in RTools is missing a dependent library. If I compile a program with '-lgomp' switch (for OpenMP support), I get a errors about undefined references to functions like '_imp__pthread_mutex_destroy'. Adding the

Re: [Rd] calling browser on error

2010-10-15 Thread luke
On Fri, 15 Oct 2010, William Dunlap wrote: He said to use options(error=...) instead of tryCatch(error=...). In C++ lingo, the handler set by options(error) is called when the exception is thrown while tryCatch's handler is called when it is caught. withCallingHandlers is another option.