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.
l
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 '-stati
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:
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 Extens
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-
>
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' no
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 Fri
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
wrote:
> Dear R-developers,
>
> I am trying to figure out a way to call browser() when an error occur, and
> naturally I want the br
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: try
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
f
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 base/
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 occurring
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 appr
13 matches
Mail list logo