Re: [R] try()-function does not catch error in BATCH-job if Matrix is loaded

2013-01-08 Thread luke-tierney
The work-around was actually put in plae prior to the release of R 2.15.2, so updating your R to the current released version will resolve this. Best, luke On Mon, 7 Jan 2013, luke-tier...@uiowa.edu wrote: This is due to long-staning issue in methods internals, which are involved because

[R] try()-function does not catch error in BATCH-job if Matrix is loaded

2013-01-07 Thread Sarah Brockhaus
Hello, In my simulation I use the try()-function to catch possible errors when fitting models. I run the simulationon a Linux-server using the command R CMD BATCH nameOfFile.R . When executing the code as batch-job I get the problem that the execution is halted without giving an error

Re: [R] try()-function does not catch error in BATCH-job if Matrix is loaded

2013-01-07 Thread luke-tierney
This is due to long-staning issue in methods internals, which are involved because loading Matrix shadows base::mean with Matrix::mean. A work-around has been in place in R_devel for some time; a proper fix may come at some point in the future. So if your real code doesn't need the moficied mean

[R] try function

2009-10-05 Thread christophe dutang
Hi all, I'm using the try function for data import with read.csv function. I would like to know if there is a double allocation of memory when using this code test.t - try(input1 - read.csv(myfile.csv) ) compared to this one test.t - try( read.csv(myfile.csv) ) I think for the first code, both