* using log directory 'd:/Rcompile/CRANpkg/local/2.10/TeachingDemos.Rcheck' * using R version 2.10.1 (2009-12-14) * using session charset: ISO8859-1 * checking for file 'TeachingDemos/DESCRIPTION' ... OK * this is package 'TeachingDemos' version '2.7' * checking package name space information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking whether package 'TeachingDemos' 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 ... OK * 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 data for non-ASCII characters ... OK * checking examples ... ERROR Running examples in 'TeachingDemos-Ex.R' failed. The error most likely occurred in: > ### * state.vbm > > flush(stderr()); flush(stdout()) > > ### Name: state.vbm > ### Title: Map object for the US State Visibility Based Map > ### Aliases: state.vbm > ### Keywords: datasets > > ### ** Examples > > if( require(maptools) ) { + data('state.vbm',package='TeachingDemos') + plot(state.vbm) + + tmp <- state.x77[,'HS Grad'] + tmp2 <- cut(tmp, seq(min(tmp),max(tmp), length.out=11), + include.lowest=TRUE) + plot(state.vbm,col=cm.colors(10)[tmp2]) + } Loading required package: maptools Loading required package: foreign Error: package 'sp' required by 'maptools' could not be found Execution halted