* using log directory 'd:/Rcompile/CRANpkg/local/2.10/SDMTools.Rcheck' * using R version 2.10.1 (2009-12-14) * using session charset: ISO8859-1 * checking for file 'SDMTools/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'SDMTools' version '1.1' * checking package name space information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking whether package 'SDMTools' can be installed ... OK * checking package directory ... OK * checking for portable file names ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the name space can be loaded with stated dependencies ... OK * checking for unstated dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... NOTE ConnCompLabel: no visible global function definition for 'setValues' SigDiff: no visible global function definition for 'setValues' lcmw: no visible global function definition for 'setValues' raster.from.asc: no visible global function definition for 'raster' raster.from.asc: no visible global function definition for 'setValues' sp.from.asc: no visible global function definition for 'CRS' sp.from.asc: no visible global function definition for 'GridTopology' sp.from.asc: no visible global function definition for 'SpatialGridDataFrame' * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking for portable use of $BLAS_LIBS ... OK * checking examples ... ERROR Running examples in 'SDMTools-Ex.R' failed. The error most likely occurred in: > ### * asc.from.raster > > flush(stderr()); flush(stdout()) > > ### Name: asc.from.raster > ### Title: Raster conversion functions for adehabitat, raster and sp > ### packages > ### Aliases: asc.from.raster raster.from.asc asc.from.sp sp.from.asc > > ### ** Examples > > > #create a simple object of class 'asc' > tasc = as.asc(matrix(rep(x=1:10, times=1000),nr=100)); print(tasc) Raster map of class "asc": Cell size: 1 Number of rows: 100 Number of columns: 100 Type: numeric > str(tasc) asc [1:100, 1:100] 1 2 3 4 5 6 7 8 9 10 ... - attr(*, "xll")= num 1 - attr(*, "yll")= num 1 - attr(*, "cellsize")= num 1 - attr(*, "type")= chr "numeric" > > #convert to RasterLayer > traster = raster.from.asc(tasc) Loading required package: raster Loading required package: sp Warning in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : there is no package called 'sp' Error: package 'sp' could not be loaded Execution halted