Running 'testthat.R' [178s]
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_25_21_34_22_13_pkey" for table "t1_2020_04_25_21_34_22_13"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_25_21_34_22_14_pkey" for table "t2_2020_04_25_21_34_22_14"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_25_21_34_22_15_pkey" for table "t3_2020_04_25_21_34_22_15"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_25_21_34_22_16_pkey" for table "t4_2020_04_25_21_34_22_16"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_25_21_34_22_17_pkey" for table "t5_2020_04_25_21_34_22_17"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_25_21_34_22_18_pkey" for table "t6_2020_04_25_21_34_22_18"
  Evaluating dm_for_filter_rev_src
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_25_21_34_24_31_pkey" for table "t6_2020_04_25_21_34_24_31"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_25_21_34_24_32_pkey" for table "t5_2020_04_25_21_34_24_32"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_25_21_34_24_33_pkey" for table "t4_2020_04_25_21_34_24_33"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_25_21_34_24_34_pkey" for table "t3_2020_04_25_21_34_24_34"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_25_21_34_24_35_pkey" for table "t2_2020_04_25_21_34_24_35"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t1_2020_04_25_21_34_24_36_pkey" for table "t1_2020_04_25_21_34_24_36"
  Evaluating dm_for_filter_w_cycle_src
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t1_2020_04_25_21_34_27_51_pkey" for table "t1_2020_04_25_21_34_27_51"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_25_21_34_27_52_pkey" for table "t2_2020_04_25_21_34_27_52"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_25_21_34_27_53_pkey" for table "t3_2020_04_25_21_34_27_53"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_25_21_34_27_54_pkey" for table "t4_2020_04_25_21_34_27_54"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_25_21_34_27_55_pkey" for table "t5_2020_04_25_21_34_27_55"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_25_21_34_27_56_pkey" for table "t6_2020_04_25_21_34_27_56"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t7_2020_04_25_21_34_27_57_pkey" for table "t7_2020_04_25_21_34_27_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_25_21_34_32_93_pkey" for table "dim_1_2020_04_25_21_34_32_93"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "dim_2_2020_04_25_21_34_32_94_pkey" for table "dim_2_2020_04_25_21_34_32_94"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "dim_3_2020_04_25_21_34_32_95_pkey" for table "dim_3_2020_04_25_21_34_32_95"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "dim_4_2020_04_25_21_34_32_96_pkey" for table "dim_4_2020_04_25_21_34_32_96"
  Evaluating dm_more_complex_src
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t1_2020_04_25_21_34_36_123_pkey" for table "t1_2020_04_25_21_34_36_123"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_25_21_34_36_124_pkey" for table "t2_2020_04_25_21_34_36_124"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_25_21_34_36_125_pkey" for table "t3_2020_04_25_21_34_36_125"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_25_21_34_36_126_pkey" for table "t4_2020_04_25_21_34_36_126"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_25_21_34_36_127_pkey" for table "t5_2020_04_25_21_34_36_127"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_25_21_34_36_128_pkey" for table "t6_2020_04_25_21_34_36_128"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t6_2_2020_04_25_21_34_36_129_pkey" for table "t6_2_2020_04_25_21_34_36_129"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t4_2_2020_04_25_21_34_36_130_pkey" for table "t4_2_2020_04_25_21_34_36_130"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "a_2020_04_25_21_34_36_131_pkey" for table "a_2020_04_25_21_34_36_131"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "b_2020_04_25_21_34_36_132_pkey" for table "b_2020_04_25_21_34_36_132"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "c_2020_04_25_21_34_36_133_pkey" for table "c_2020_04_25_21_34_36_133"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "d_2020_04_25_21_34_36_134_pkey" for table "d_2020_04_25_21_34_36_134"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "e_2020_04_25_21_34_36_135_pkey" for table "e_2020_04_25_21_34_36_135"
  Evaluating dm_for_disambiguate_src
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "iris_1_2020_04_25_21_34_38_142_pkey" for table "iris_1_2020_04_25_21_34_38_142"
  Evaluating dm_nycflights_small_src
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "planes_2020_04_25_21_34_40_156_pkey" for table "planes_2020_04_25_21_34_40_156"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "airlines_2020_04_25_21_34_40_157_pkey" for table "airlines_2020_04_25_21_34_40_157"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "airports_2020_04_25_21_34_40_158_pkey" for table "airports_2020_04_25_21_34_40_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.
  
  <unknown>: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_25_21_34_48_172_pkey" for table "t1_2020_04_25_21_34_48_172"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_25_21_34_48_173_pkey" for table "t2_2020_04_25_21_34_48_173"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_25_21_34_48_174_pkey" for table "t3_2020_04_25_21_34_48_174"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_25_21_34_48_175_pkey" for table "t4_2020_04_25_21_34_48_175"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_25_21_34_48_176_pkey" for table "t5_2020_04_25_21_34_48_176"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_25_21_34_48_177_pkey" for table "t6_2020_04_25_21_34_48_177"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t1_2020_04_25_21_36_56_203_pkey" for table "t1_2020_04_25_21_36_56_203"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t2_2020_04_25_21_36_56_204_pkey" for table "t2_2020_04_25_21_36_56_204"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t3_2020_04_25_21_36_56_205_pkey" for table "t3_2020_04_25_21_36_56_205"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t4_2020_04_25_21_36_56_206_pkey" for table "t4_2020_04_25_21_36_56_206"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t5_2020_04_25_21_36_56_207_pkey" for table "t5_2020_04_25_21_36_56_207"
  NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t6_2020_04_25_21_36_56_208_pkey" for table "t6_2020_04_25_21_36_56_208"
  NOTICE:  drop cascades to constraint t5_2020_04_25_21_36_56_207_m_fkey on table t5_2020_04_25_21_36_56_207
  NOTICE:  drop cascades to constraint t2_2020_04_25_21_36_56_204_d_fkey on table t2_2020_04_25_21_36_56_204
  NOTICE:  drop cascades to constraint t4_2020_04_25_21_36_56_206_j_fkey on table t4_2020_04_25_21_36_56_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