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.