* using log directory 'd:/Rcompile/CRANpkg/local/3.5/INDperform.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 'INDperform/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'INDperform' version '0.2.2' * 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 'INDperform' 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 ... [11s] 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 examples ... ERROR Running examples in 'INDperform-Ex.R' failed The error most likely occurred in: > ### Name: merge_models > ### Title: Merging two model output tibbles. > ### Aliases: merge_models > > ### ** Examples > > # Using some models of the Baltic Sea demo data: > # Merging GAM and GAMM tibbles > test_ids <- 47:50 # choose subset > gam_tbl <- model_gam_ex[test_ids,] > gamm_tbl <- model_gamm(ind_init_ex[test_ids,], filter= gam_tbl$tac) Error in model_gamm(ind_init_ex[test_ids, ], filter = gam_tbl$tac) : No IND~pressure GAMM could be fitted! Check if you chose the correct error distribution (default is gaussian()). Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [79s] ERROR Running 'testthat.R' [78s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(INDperform) > > test_check("INDperform") variable required_data_type 1 edf double # A tibble: 2 x 5 id ind press nr_test_timesteps NAs_in_ind_press 1 1 TZA Tsum 3 3 2 3 MS Tsum 3 3 variable required_data_type 1 a list 2 b factor 3 c character [1] 1 1 1 1 1 1 1 2 [1] 2 2 4 2 2 2 2 2 # A tibble: 12 x 5 id ind press nr_test_timesteps NAs_in_ind_press 1 1 TZA Tsum 3 3 2 3 MS Tsum 3 3 3 5 rCC Tsum 3 3 4 7 Cops Tsum 3 3 5 9 Micro Tsum 3 3 6 11 rZPPP Tsum 3 3 7 13 Sprat Tsum 3 3 8 15 Herring Tsum 3 3 9 17 Stickle Tsum 3 3 10 19 Cod Tsum 3 3 11 21 SPF Tsum 3 3 12 23 LPF Tsum 3 3 # A tibble: 1 x 5 id ind press nr_test_timesteps NAs_in_ind_press 1 3 test_ind press 3 3 variable required_data_type 1 id integer # A tibble: 1 x 4 id ind press error_message 1 3 test_ind press "Error in mgcv::gam(stats::as.formula(paste0(names(dat)[~ -- 1. Error: (unknown) (@test_model_gamm.R#4) --------------------------------- No IND~pressure GAMM could be fitted! Check if you chose the correct error distribution (default is gaussian()). Backtrace: 1. INDperform::model_gamm(init_tbl = ind_init_ex[test_id, ]) # A tibble: 1 x 3 ind_id ind error_message 1 5 ind_na "Error in mgcv::gam(stats::as.formula(paste0(ind_name, \" ~ 1 +~ variable required_data_type 1 edf double variable required_data_type 1 pred list -- 2. Error: (unknown) (@test_scoring.R#15) ----------------------------------- Assigned data `"x < 0.3"` must be compatible with existing data. i Error occurred for column `condition`. x No common type for `value` and `x` . Backtrace: 1. base::`[<-`(`*tmp*`, 4, "condition", value = "x < 0.3") 2. tibble:::`[<-.tbl_df`(`*tmp*`, 4, "condition", value = "x < 0.3") 3. tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value)) 4. tibble:::tbl_subassign_row(xj, i, value, value_arg) 5. base::tryCatch(...) 6. base:::tryCatchList(expr, classes, parentenv, handlers) 7. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]]) 8. value[[3L]](cond) == testthat results =========================================================== [ OK: 544 | SKIPPED: 0 | WARNINGS: 8 | FAILED: 2 ] 1. Error: (unknown) (@test_model_gamm.R#4) 2. Error: (unknown) (@test_scoring.R#15) Error: testthat unit tests failed Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs