Skip to content
Back to formatted view

Raw Message

Message-ID: <50BF4752.5020704@yahoo.de>
Date: 2012-12-05T13:08:34Z
From: Jannis
Subject: catching errors in RNetCDF

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