* using log directory 'd:/Rcompile/CRANpkg/local/3.5/OpenLand.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 'OpenLand/DESCRIPTION' ... OK * this is package 'OpenLand' version '1.0.1' * 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 'OpenLand' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 ... [9s] 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [10s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [22s] ERROR Running 'testthat.R' [22s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(OpenLand) > > test_check("OpenLand") -- 1. Failure: Behavior of the contingencyTable (@test_contingencyTable.R#58) - as.character(demo_cont$tb_legend$categoryName[3]) not equal to "OZS". 1/1 mismatches x[1]: "UOG" y[1]: "OZS" -- 2. Failure: Behavior of the contingencyTable (@test_contingencyTable.R#60) - demo_cont$tb_legend$color[4] not equal to "#EAACAC". 1/1 mismatches x[1]: "#0A468D" y[1]: "#EAACAC" -- 3. Failure: Behavior of acc_changes (@test_generalfunctions.R#21) ---------- demo_acc_changes[[2]][[4, 2]] not equal to 1998. 1/1 mismatches [1] 2009 - 1998 == 11 -- 4. Failure: Behavior of the intensityAnalysis (@test_intensityAnalysis.R#49) demo_int_km2$interval_lvl$intervalData$PercentChange[3] not equal to 80.26. 1/1 mismatches [1] 80 - 80.3 == -0.22 -- 5. Failure: Behavior of the intensityAnalysis (@test_intensityAnalysis.R#57) demo_int_pixel$category_lvlGain$categoryData$GG_pixel[8] not equal to 1587. 1/1 mismatches [1] 1553 - 1587 == -34 -- 6. Failure: Behavior of the intensityAnalysis (@test_intensityAnalysis.R#58) demo_int_pixel$category_lvlLoss$categoryData$GL_pixel[10] not equal to 1684. 1/1 mismatches [1] 1593 - 1684 == -91 -- 7. Failure: Behavior of the intensityAnalysis (@test_intensityAnalysis.R#65) demo_int_pixel$transition_lvlGain_n$transitionData$T_i2n_pixel[18] not equal to 380. 1/1 mismatches [1] NA - 380 == NA -- 8. Failure: Behavior of the intensityAnalysis (@test_intensityAnalysis.R#66) demo_int_pixel$transition_lvlLoss_m$transitionData$T_m2j_pixel[15] not equal to 382. 1/1 mismatches [1] NA - 382 == NA == testthat results =========================================================== [ OK: 104 | SKIPPED: 0 | WARNINGS: 236 | FAILED: 8 ] 1. Failure: Behavior of the contingencyTable (@test_contingencyTable.R#58) 2. Failure: Behavior of the contingencyTable (@test_contingencyTable.R#60) 3. Failure: Behavior of acc_changes (@test_generalfunctions.R#21) 4. Failure: Behavior of the intensityAnalysis (@test_intensityAnalysis.R#49) 5. Failure: Behavior of the intensityAnalysis (@test_intensityAnalysis.R#57) 6. Failure: Behavior of the intensityAnalysis (@test_intensityAnalysis.R#58) 7. Failure: Behavior of the intensityAnalysis (@test_intensityAnalysis.R#65) 8. Failure: Behavior of the intensityAnalysis (@test_intensityAnalysis.R#66) Error: testthat unit tests failed Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [41s] OK * checking PDF version of manual ... OK * DONE Status: 1 ERROR