* using log directory 'd:/Rcompile/CRANpkg/local/3.5/dm.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 'dm/DESCRIPTION' ... OK * this is package 'dm' version '0.1.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 'dm' 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 ... [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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [30s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [169s] ERROR Running 'testthat.R' [169s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > > # Need to use qualified call, this is checked in helper-print.R > testthat::test_check("dm") Loading required package: dm Attaching package: 'dm' The following object is masked from 'package:stats': filter for examine_cardinality...() Evaluating d1 Evaluating d2 Evaluating d3 Evaluating d4 Evaluating d5 Evaluating d6 Evaluating d7 Evaluating d8 for check_fk() and check_set_equality() Evaluating data Evaluating data_1 Evaluating data_2 Evaluating data_3 for table surgery Evaluating data_ts Evaluating data_ts_child Evaluating data_ts_parent for testing filter and semi_join Evaluating t1 Evaluating t2 Evaluating t3 Evaluating t4 Evaluating t5 Evaluating t6 Evaluating t7 Evaluating dm_for_filter_w_cycle for testing filter and semi_join (2) Evaluating list_for_filter Evaluating dm_for_filter for testing filter and semi_join (3) Evaluating output_1 Evaluating output_3 Evaluating dm_for_filter_rev for tests on `dm` objects: dm_add_pk(), dm_add_fk() Evaluating dm_test_obj Evaluating dm_test_obj_2 complicated dm Evaluating list_for_filter_2 Evaluating dm_more_complex for dm_disambiguate_cols() Evaluating iris_1 Evaluating iris_2 Evaluating iris_3 Evaluating iris_1_dis Evaluating iris_2_dis Evaluating iris_3_dis Evaluating dm_for_disambiguate Evaluating dm_for_disambiguate_2 star schema Evaluating fact Evaluating fact_clean Evaluating dim_1 Evaluating dim_1_clean Evaluating dim_2 Evaluating dim_2_clean Evaluating dim_3 Evaluating dim_3_clean Evaluating dim_4 Evaluating dim_4_clean Evaluating dm_for_flatten Evaluating result_from_flatten Evaluating tbl_1 Evaluating tbl_2 Evaluating tbl_3 Evaluating bad_dm Evaluating dm_nycflights_small connecting Registering testing src: df OK Registering testing src: sqlite OK Registering testing src: postgres OK loading into database Evaluating dm_for_filter_src NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t1_2020_04_22_13_33_04_13_pkey" for table "t1_2020_04_22_13_33_04_13" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_22_13_33_04_14_pkey" for table "t2_2020_04_22_13_33_04_14" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_22_13_33_04_15_pkey" for table "t3_2020_04_22_13_33_04_15" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_22_13_33_04_16_pkey" for table "t4_2020_04_22_13_33_04_16" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_22_13_33_04_17_pkey" for table "t5_2020_04_22_13_33_04_17" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_22_13_33_04_18_pkey" for table "t6_2020_04_22_13_33_04_18" Evaluating dm_for_filter_rev_src NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_22_13_33_06_31_pkey" for table "t6_2020_04_22_13_33_06_31" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_22_13_33_06_32_pkey" for table "t5_2020_04_22_13_33_06_32" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_22_13_33_06_33_pkey" for table "t4_2020_04_22_13_33_06_33" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_22_13_33_06_34_pkey" for table "t3_2020_04_22_13_33_06_34" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_22_13_33_06_35_pkey" for table "t2_2020_04_22_13_33_06_35" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t1_2020_04_22_13_33_06_36_pkey" for table "t1_2020_04_22_13_33_06_36" Evaluating dm_for_filter_w_cycle_src NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t1_2020_04_22_13_33_09_51_pkey" for table "t1_2020_04_22_13_33_09_51" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_22_13_33_09_52_pkey" for table "t2_2020_04_22_13_33_09_52" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_22_13_33_09_53_pkey" for table "t3_2020_04_22_13_33_09_53" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_22_13_33_09_54_pkey" for table "t4_2020_04_22_13_33_09_54" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_22_13_33_09_55_pkey" for table "t5_2020_04_22_13_33_09_55" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_22_13_33_09_56_pkey" for table "t6_2020_04_22_13_33_09_56" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t7_2020_04_22_13_33_09_57_pkey" for table "t7_2020_04_22_13_33_09_57" Evaluating dm_test_obj_src Evaluating dm_test_obj_2_src Evaluating dm_for_flatten_src NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dim_1_2020_04_22_13_33_14_93_pkey" for table "dim_1_2020_04_22_13_33_14_93" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dim_2_2020_04_22_13_33_14_94_pkey" for table "dim_2_2020_04_22_13_33_14_94" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dim_3_2020_04_22_13_33_14_95_pkey" for table "dim_3_2020_04_22_13_33_14_95" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dim_4_2020_04_22_13_33_14_96_pkey" for table "dim_4_2020_04_22_13_33_14_96" Evaluating dm_more_complex_src NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t1_2020_04_22_13_33_18_123_pkey" for table "t1_2020_04_22_13_33_18_123" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_22_13_33_18_124_pkey" for table "t2_2020_04_22_13_33_18_124" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_22_13_33_18_125_pkey" for table "t3_2020_04_22_13_33_18_125" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_22_13_33_18_126_pkey" for table "t4_2020_04_22_13_33_18_126" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_22_13_33_18_127_pkey" for table "t5_2020_04_22_13_33_18_127" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_22_13_33_18_128_pkey" for table "t6_2020_04_22_13_33_18_128" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t6_2_2020_04_22_13_33_18_129_pkey" for table "t6_2_2020_04_22_13_33_18_129" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t4_2_2020_04_22_13_33_18_130_pkey" for table "t4_2_2020_04_22_13_33_18_130" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "a_2020_04_22_13_33_18_131_pkey" for table "a_2020_04_22_13_33_18_131" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "b_2020_04_22_13_33_18_132_pkey" for table "b_2020_04_22_13_33_18_132" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "c_2020_04_22_13_33_18_133_pkey" for table "c_2020_04_22_13_33_18_133" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "d_2020_04_22_13_33_18_134_pkey" for table "d_2020_04_22_13_33_18_134" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "e_2020_04_22_13_33_18_135_pkey" for table "e_2020_04_22_13_33_18_135" Evaluating dm_for_disambiguate_src NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "iris_1_2020_04_22_13_33_20_142_pkey" for table "iris_1_2020_04_22_13_33_20_142" Evaluating dm_nycflights_small_src NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "planes_2020_04_22_13_33_22_156_pkey" for table "planes_2020_04_22_13_33_22_156" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "airlines_2020_04_22_13_33_22_157_pkey" for table "airlines_2020_04_22_13_33_22_157" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "airports_2020_04_22_13_33_22_158_pkey" for table "airports_2020_04_22_13_33_22_158" loading data frames into database Evaluating d1_src Evaluating d2_src Evaluating d3_src Evaluating d4_src Evaluating d5_src Evaluating d6_src Evaluating src_names Evaluating data_check_key_src Evaluating data_1_src Evaluating data_2_src Evaluating data_3_src Evaluating data_ts_src Evaluating data_ts_child_src Evaluating data_ts_parent_src Evaluating list_of_data_ts_parent_and_child_src Evaluating t1_src Evaluating t3_src -- 1. Failure: check_cardinality_...() functions are checking the cardinality co `map2(...)` produced warnings. :1753848: Invalid asm.js: Function definition doesn't match use == testthat results =========================================================== [ OK: 902 | SKIPPED: 39 | WARNINGS: 0 | FAILED: 1 ] 1. Failure: check_cardinality_...() functions are checking the cardinality correctly? (@test-check-cardinalities.R#7) NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t1_2020_04_22_13_33_29_172_pkey" for table "t1_2020_04_22_13_33_29_172" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_22_13_33_29_173_pkey" for table "t2_2020_04_22_13_33_29_173" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_22_13_33_29_174_pkey" for table "t3_2020_04_22_13_33_29_174" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_22_13_33_29_175_pkey" for table "t4_2020_04_22_13_33_29_175" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_22_13_33_29_176_pkey" for table "t5_2020_04_22_13_33_29_176" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_22_13_33_29_177_pkey" for table "t6_2020_04_22_13_33_29_177" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t1_2020_04_22_13_35_32_203_pkey" for table "t1_2020_04_22_13_35_32_203" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_22_13_35_32_204_pkey" for table "t2_2020_04_22_13_35_32_204" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_22_13_35_32_205_pkey" for table "t3_2020_04_22_13_35_32_205" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_22_13_35_32_206_pkey" for table "t4_2020_04_22_13_35_32_206" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_22_13_35_32_207_pkey" for table "t5_2020_04_22_13_35_32_207" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_22_13_35_32_208_pkey" for table "t6_2020_04_22_13_35_32_208" NOTICE: drop cascades to constraint t5_2020_04_22_13_35_32_207_m_fkey on table t5_2020_04_22_13_35_32_207 NOTICE: drop cascades to constraint t2_2020_04_22_13_35_32_204_d_fkey on table t2_2020_04_22_13_35_32_204 NOTICE: drop cascades to constraint t4_2020_04_22_13_35_32_206_j_fkey on table t4_2020_04_22_13_35_32_206 Error: testthat unit tests failed In addition: Warning message: In file(filename, "r", encoding = encoding) : cannot open file '/Users/tobiasschieferdecker/git/cynkra/dm/.Rprofile': No such file or directory Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [66s] OK * checking PDF version of manual ... OK * DONE Status: 1 ERROR