[R] catching errors in RNetCDF

Jannis bt_jannis at yahoo.de
Wed Dec 5 14:08:34 CET 2012


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



More information about the R-help mailing list