* using log directory 'd:/Rcompile/CRANpkg/local/3.5/tanaka.Rcheck' * using R version 3.5.3 (2019-03-11) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'tanaka/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'tanaka' version '0.1.3' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'tanaka' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over 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 package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking 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 ... [7s] 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 Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... ERROR Running examples in 'tanaka-Ex.R' failed The error most likely occurred in: > ### Name: tanaka > ### Title: Plot a Tanaka Map > ### Aliases: tanaka > > ### ** Examples > > library(tanaka) > library(raster) Loading required package: sp > library(sf) Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3 > com <- st_read(system.file("gpkg/com.gpkg", package = "tanaka"), + quiet = TRUE) > ras <- raster(system.file("grd/elev.grd", package = "tanaka")) > tanaka(ras) > tanaka(ras, mask = com) > tanaka(ras, breaks = seq(80,400,20), + legend.pos = "topright", + legend.title = "Elevation\n(meters)") > tanaka(ras, nclass = 15, + col = hcl.colors(15, "YlOrRd"), + legend.pos = "topright", + legend.title = "Elevation\n(meters)") Error in hcl.colors(15, "YlOrRd") : could not find function "hcl.colors" Calls: tanaka -> plot -> plot.sfc_MULTIPOLYGON Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [14s] OK Running 'testthat.R' [13s] * checking PDF version of manual ... OK * DONE Status: 1 ERROR