* using log directory 'd:/Rcompile/CRANpkg/ncvar.Rcheck' * checking for file 'ncvar/DESCRIPTION' ... OK * checking if this is a source package ... OK * checking whether package 'ncvar' can be installed ... OK * checking package directory ... OK * checking for portable file names ... OK * checking DESCRIPTION meta-information ... OK * checking package dependencies ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for syntax errors ... OK * checking R files for library.dynam ... OK * checking S3 generic/method consistency ... WARNING checkS3methods(package = "ncvar") udunits(3): Couldn't open units database "/cygdrive/c/sources/udunits-1.11.7/etc/udunits.dat": See section 'Generic functions and methods' of the 'Writing R Extensions' manual. * checking for replacement functions with final arg not named 'value' ... WARNING checkReplaceFuns(package = "ncvar") udunits(3): Couldn't open units database "/cygdrive/c/sources/udunits-1.11.7/etc/udunits.dat": * checking foreign function calls ... WARNING checkFF(package = "ncvar") udunits(3): Couldn't open units database "/cygdrive/c/sources/udunits-1.11.7/etc/udunits.dat": See section 'System and foreign language interfaces' of the 'Writing R Extensions' manual. * checking Rd files ... OK * checking for missing documentation entries ... WARNING undoc(package = "ncvar") udunits(3): Couldn't open units database "/cygdrive/c/sources/udunits-1.11.7/etc/udunits.dat": All user-level objects in a package should have documentation entries. See chapter 'Writing R documentation files' in manual 'Writing R Extensions'. * checking for code/documentation mismatches ... WARNING codoc(package = "ncvar") udunits(3): Couldn't open units database "/cygdrive/c/sources/udunits-1.11.7/etc/udunits.dat": codocData(package = "ncvar") udunits(3): Couldn't open units database "/cygdrive/c/sources/udunits-1.11.7/etc/udunits.dat": codocClasses(package = "ncvar") udunits(3): Couldn't open units database "/cygdrive/c/sources/udunits-1.11.7/etc/udunits.dat": * checking Rd \usage sections ... OK * creating ncvar-Ex.R ... OK * checking examples ... ERROR Running examples in ncvar-Ex.R failed. The error most likely occurred in: > ### * coord.def.ncv > > flush(stderr()); flush(stdout()) > > ### Name: coord.def.ncv > ### Title: Define a NetCDF Coordinate > ### Aliases: coord.def.ncv > ### Keywords: file > > ### ** Examples > > ## define some coordinate variables > lon <- coord.def.ncv("lon", seq(1,10), xtype="NC_FLOAT", + att=list("axis", "X", "long_name", "longitude", "units", "degrees_east") ) > lat <- coord.def.ncv("lat", 1.*seq(1,5), + att=list("axis", "Y", "long_name", "latitude", "units", "degrees_north") ) > hgt <- coord.def.ncv("hgt", 0., + att=list("axis", "Z", "long_name", "altitude", "units", "metre", + "positive", "up") ) > time <- coord.def.ncv("time", 0., + att=list("axis", "T", "calendar", "standard", "long_name", "time", + "units", "days since 1979-01-01 00:00:00.0"), unlim=TRUE) > > ## define data variable > pre <- var.def.ncv("precip", array(1,dim=c(10,5,1,1)), xtype="NC_FLOAT", + dim=list(lon, lat, hgt, time), + att=list("long_name", "precipitation", "units", "mm d-1", + "_FillValue", -998.9) ) > > ## write to file > var.put.ncv(paste(tempdir(),"/foo.nc",sep=""), pre, new=TRUE) Error in var.put.ncv(paste(tempdir(), "/foo.nc", sep = ""), pre, new = TRUE) : couldn't find function "create.nc" Execution halted