Hi Pascal,

Well, as i see it, this is no error, just a simple message printed to the screen claiming that it is an error. All the mechanisms in R to handle errors (e.g a stop of code execution etc) are, however, not initiated.


Cheers
Jannis

On 06.12.2012 02:53, Pascal Oettli wrote:
Hi,

When I try your example, I simply get an error:

 > library(RNetCDF)
 > con <- create.nc('test.nc')
 > test <- try(var.get.nc(con, 'dummy'))
Error : NetCDF: Variable not found

Regards,
Pascal


Le 05/12/2012 22:08, Jannis a écrit :
Dear R community,


I quite frequently run into errors while using the RNetCDF package which
do not seem to be recognised as normal R errors and, hence, do not stop
the execution of the code making it hard to debug the code.

Consider, for example:

library(RNetCDF)
con <- create.nc('test.nc')
test <- try(var.get.nc(con, 'dummy'))


In this case, some sort of error message is printed to the screen, but R
does not recognise this as an error. Is there any way to solve this?

I contacted the author of the package but it seems that there will be no
solution from that side.


Any Ideas?


Cheers
Jannis

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to