Running 'testthat.R' [91m]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(INDperform)
  > 
  > test_check("INDperform")
  # A tibble: 1 x 5
       id ind   press model_type adj_n_boot
    <int> <chr> <chr> <chr>           <dbl>
  1     9 MS    Swin  gam                NA
  # A tibble: 1 x 5
       id ind   press model_type adj_n_boot
    <int> <chr> <chr> <chr>           <dbl>
  1     9 MS    Swin  gam                NA
  # A tibble: 1 x 5
       id ind   press model_type adj_n_boot
    <int> <chr> <chr> <chr>           <dbl>
  1     1 y_bin press gam                NA
  # A tibble: 1 x 5
       id ind    press model_type adj_n_boot
    <int> <chr>  <chr> <chr>           <dbl>
  1     2 y_pois press gam                NA
  # A tibble: 1 x 5
       id ind    press model_type adj_n_boot
    <int> <chr>  <chr> <chr>           <dbl>
  1     2 y_pois press gam                NA
  # A tibble: 1 x 5
       id ind    press model_type adj_n_boot
    <int> <chr>  <chr> <chr>           <dbl>
  1     2 y_pois press gam                NA
  # A tibble: 1 x 5
       id ind    press model_type adj_n_boot
    <int> <chr>  <chr> <chr>           <dbl>
  1     2 y_pois press gam                NA
  -- 1. Failure: check gams under different distributions (@test_calc_deriv.R#73) 
  test1$adj_n_boot not equal to 40.
  1/1 mismatches
  [1] NA - 40 == NA
  
  -- 2. Failure: check gams under different distributions (@test_calc_deriv.R#74) 
  test2$adj_n_boot not equal to 40.
  1/1 mismatches
  [1] NA - 40 == NA
  
  -- 3. Failure: check gams under different distributions (@test_calc_deriv.R#75) 
  test3$adj_n_boot not equal to 40.
  1/1 mismatches
  [1] NA - 40 == NA
  
  -- 4. Failure: check gams under different distributions (@test_calc_deriv.R#76) 
  test4$adj_n_boot not equal to 40.
  1/1 mismatches
  [1] NA - 40 == NA
  
  -- 5. Failure: check gams under different distributions (@test_calc_deriv.R#77) 
  test5$adj_n_boot not equal to 40.
  1/1 mismatches
  [1] NA - 40 == NA
  
  -- 6. Failure: check gams under different distributions (@test_calc_deriv.R#78) 
  round(test1$prop, 1) not equal to 0.2.
  1/1 mismatches
  [1] NA - 0.2 == NA
  
  -- 7. Failure: check gams under different distributions (@test_calc_deriv.R#79) 
  round(test2$prop, 1) not equal to 0.7.
  1/1 mismatches
  [1] NA - 0.7 == NA
  
  -- 8. Failure: check gams under different distributions (@test_calc_deriv.R#80) 
  round(test3$prop, 1) not equal to 0.7.
  1/1 mismatches
  [1] NA - 0.7 == NA
  
  -- 9. Failure: check gams under different distributions (@test_calc_deriv.R#81) 
  round(test4$prop, 1) not equal to 0.7.
  1/1 mismatches
  [1] NA - 0.7 == NA
  
  -- 10. Failure: check gams under different distributions (@test_calc_deriv.R#82)
  round(test5$prop, 1) not equal to 0.8.
  1/1 mismatches
  [1] NA - 0.8 == NA
  
    variable required_data_type
  1      edf            numeric
  # A tibble: 2 x 5
       id ind   press nr_test_timesteps NAs_in_ind_press
    <int> <chr> <chr>             <int>            <int>
  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: 1 x 5
       id ind   press  model_type adj_n_boot
    <int> <chr> <chr>  <chr>           <dbl>
  1     5 TZA   Fsprat gam                NA
  -- 11. Failure: output tibble (@test_cond_boot.R#122)  -------------------------
  dat$deriv1[[1]] inherits from `logical` not `numeric`.
  
  -- 12. Failure: output tibble (@test_cond_boot.R#123)  -------------------------
  length(dat$deriv1[[1]]) not equal to 27.
  1/1 mismatches
  [1] 1 - 27 == -26
  
  -- 13. Failure: output tibble (@test_cond_boot.R#124)  -------------------------
  dat$deriv1_ci_low[[1]] inherits from `logical` not `numeric`.
  
  -- 14. Failure: output tibble (@test_cond_boot.R#125)  -------------------------
  dat$deriv1_ci_up[[1]] inherits from `logical` not `numeric`.
  
  # A tibble: 1 x 5
       id ind   press  model_type adj_n_boot
    <int> <chr> <chr>  <chr>           <dbl>
  1     5 TZA   Fsprat gam                NA
  # A tibble: 1 x 5
       id ind   press  model_type adj_n_boot
    <int> <chr> <chr>  <chr>           <dbl>
  1     5 TZA   Fsprat gam                NA
  # A tibble: 12 x 5
        id ind     press nr_test_timesteps NAs_in_ind_press
     <int> <chr>   <chr>             <int>            <int>
   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
  -- 15. Error: (unknown) (@test_loocv_thresh_gam.R#8)  --------------------------
  undefined exports: %s!=%, %s!==%, %s+%, %s<%, %s<=%, %s==%, %s===%, %s>%, %s>=%, %stri!=%, %stri!==%, %stri+%, %stri<%, %stri<=%, %stri==%, %stri===%, %stri>%, %stri>=%, stri_datetime_add<-, stri_sub<-, stri_subset<-, stri_subset_charclass<-, stri_subset_coll<-, stri_subset_fixed<-, stri_subset_regex<-, stri_c, stri_c_list, stri_cmp, stri_cmp_eq, stri_cmp_equiv, stri_cmp_ge, stri_cmp_gt, stri_cmp_le, stri_cmp_lt, stri_cmp_neq, stri_cmp_nequiv, stri_compare, stri_conv, stri_count, stri_count_boundaries, stri_count_charclass, stri_count_coll, stri_count_fixed, stri_count_regex, stri_count_words, stri_datetime_add, stri_datetime_create, stri_datetime_fields, stri_datetime_format, stri_datetime_fstr, stri_datetime_now, stri_datetime_parse, stri_datetime_symbols, stri_detect, stri_detect_charclass, stri_detect_coll, stri_detect_fixed, stri_detect_regex, stri_dup, stri_duplicated, stri_duplicated_any, stri_enc_detect, stri_enc_detect2, stri_enc_fromutf32, stri_enc_get, stri_enc_info, stri_enc_isascii, stri_enc_isutf16be, stri_enc_isutf16le, stri_enc_isutf32be, stri_enc_isutf32le, stri_enc_isutf8, stri_enc_list, stri_enc_mark, stri_enc_set, stri_enc_toascii, stri_enc_tonative, stri_enc_toutf32, stri_enc_toutf8, stri_encode, stri_endswith, stri_endswith_charclass, stri_endswith_coll, stri_endswith_fixed, stri_escape_unicode, stri_extract, stri_extract_all, stri_extract_all_boundaries, stri_extract_all_charclass, stri_extract_all_coll, stri_extract_all_fixed, stri_extract_all_regex, stri_extract_all_words, stri_extract_first, stri_extract_first_boundaries, stri_extract_first_charclass, stri_extract_first_coll, stri_extract_first_fixed, stri_extract_first_regex, stri_extract_first_words, stri_extract_last, stri_extract_last_boundaries, stri_extract_last_charclass, stri_extract_last_coll, stri_extract_last_fixed, stri_extract_last_regex, stri_extract_last_words, stri_flatten, stri_info, stri_isempty, stri_join, stri_join_list, stri_length, stri_list2matrix, stri_locale_get, stri_locale_info, stri_locale_list, stri_locale_set, stri_locate, stri_locate_all, stri_locate_all_boundaries, stri_locate_all_charclass, stri_locate_all_coll, stri_locate_all_fixed, stri_locate_all_regex, stri_locate_all_words, stri_locate_first, stri_locate_first_boundaries, stri_locate_first_charclass, stri_locate_first_coll, stri_locate_first_fixed, stri_locate_first_regex, stri_locate_first_words, stri_locate_last, stri_locate_last_boundaries, stri_locate_last_charclass, stri_locate_last_coll, stri_locate_last_fixed, stri_locate_last_regex, stri_locate_last_words, stri_match, stri_match_all, stri_match_all_regex, stri_match_first, stri_match_first_regex, stri_match_last, stri_match_last_regex, stri_na2empty, stri_numbytes, stri_opts_brkiter, stri_opts_collator, stri_opts_fixed, stri_opts_regex, stri_order, stri_pad, stri_pad_both, stri_pad_left, stri_pad_right, stri_paste, stri_paste_list, stri_rand_lipsum, stri_rand_shuffle, stri_rand_strings, stri_read_lines, stri_read_raw, stri_remove_empty, stri_replace, stri_replace_all, stri_replace_all_charclass, stri_replace_all_coll, stri_replace_all_fixed, stri_replace_all_regex, stri_replace_first, stri_replace_first_charclass, stri_replace_first_coll, stri_replace_first_fixed, stri_replace_first_regex, stri_replace_last, stri_replace_last_charclass, stri_replace_last_coll, stri_replace_last_fixed, stri_replace_last_regex, stri_replace_na, stri_reverse, stri_sort, stri_split, stri_split_boundaries, stri_split_charclass, stri_split_coll, stri_split_fixed, stri_split_lines, stri_split_lines1, stri_split_regex, stri_startswith, stri_startswith_charclass, stri_startswith_coll, stri_startswith_fixed, stri_stats_general, stri_stats_latex, stri_sub, stri_subset, stri_subset_charclass, stri_subset_coll, stri_subset_fixed, stri_subset_regex, stri_timezone_get, stri_timezone_info, stri_timezone_list, stri_timezone_set, stri_trans_char, stri_trans_general, stri_trans_isnfc, stri_trans_isnfd, stri_trans_isnfkc, stri_trans_isnfkc_casefold, stri_trans_isnfkd, stri_trans_list, stri_trans_nfc, stri_trans_nfd, stri_trans_nfkc, stri_trans_nfkc_casefold, stri_trans_nfkd, stri_trans_tolower, stri_trans_totitle, stri_trans_toupper, stri_trim, stri_trim_both, stri_trim_left, stri_trim_right, stri_unescape_unicode, stri_unique, stri_width, stri_wrap, stri_write_lines
  1: loocv_thresh_gam(model, ind, press, t_var, "Ssum", k = 4, a = 0.2, b = 0.8, time) at testthat/test_loocv_thresh_gam.R:8
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  # A tibble: 1 x 5
       id ind      press nr_test_timesteps NAs_in_ind_press
    <int> <chr>    <chr>             <int>            <int>
  1     3 test_ind press                 3                3
    variable required_data_type
  1       id            integer
  # A tibble: 1 x 4
       id ind      press error_message                                           
    <int> <chr>    <chr> <chr>                                                   
  1     3 test_ind press "Error in mgcv::gam(stats::as.formula(paste0(names(dat)~
  # A tibble: 1 x 6
       id ind   press model_type corrstruc error_message                         
    <int> <chr> <chr> <chr>      <chr>     <chr>                                 
  1    44 Sprat Swin  gamm       arma21    "Error in lme.formula(y ~ X - 1, rand~
  # A tibble: 1 x 6
       id ind   press model_type corrstruc error_message                         
    <int> <chr> <chr> <chr>      <chr>     <chr>                                 
  1    39 rZPPP Nwin  gamm       arma12    "Error in lme.formula(y ~ X - 1, rand~
  # A tibble: 1 x 6
       id ind   press model_type corrstruc error_message                         
    <int> <chr> <chr> <chr>      <chr>     <chr>                                 
  1    39 rZPPP Nwin  gamm       arma12    "Error in lme.formula(y ~ X - 1, rand~
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  # A tibble: 3 x 6
       id ind   press model_type corrstruc error_message                         
    <int> <chr> <chr> <chr>      <chr>     <chr>                                 
  1     1 TZA   Tsum  gamm       ar1       "Error in lme.formula(fixed = fixed, ~
  2     1 TZA   Tsum  gamm       arma12    "Error in lme.formula(fixed = fixed, ~
  3     1 TZA   Tsum  gamm       arma21    "Error in lme.formula(fixed = fixed, ~
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  # A tibble: 2 x 6
       id ind   press model_type corrstruc error_message                         
    <int> <chr> <chr> <chr>      <chr>     <chr>                                 
  1     1 TZA   Tsum  gamm       arma11    "Error in lme.formula(fixed = fixed, ~
  2     1 TZA   Tsum  gamm       arma21    "Error in lme.formula(fixed = fixed, ~
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  # A tibble: 3 x 6
       id ind   press model_type corrstruc error_message                         
    <int> <chr> <chr> <chr>      <chr>     <chr>                                 
  1     1 TZA   Tsum  gamm       arma11    "Error in lme.formula(fixed = fixed, ~
  2     1 TZA   Tsum  gamm       arma12    "Error in lme.formula(fixed = fixed, ~
  3     1 TZA   Tsum  gamm       arma21    "Error in lme.formula(fixed = fixed, ~
  # A tibble: 1 x 5
       id ind   press nr_test_timesteps NAs_in_ind_press
    <int> <chr> <chr>             <int>            <int>
  1     2 test  press                 3                3
    variable required_data_type
  1       id            integer
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  
   Maximum number of PQL iterations:  20 
  # A tibble: 6 x 6
       id ind   press model_type corrstruc error_message                         
    <int> <chr> <chr> <chr>      <chr>     <chr>                                 
  1     2 test  press gamm       none      "Error in mgcv::gamm(formula = form, ~
  2     2 test  press gamm       ar1       "Error in mgcv::gamm(formula = form, ~
  3     2 test  press gamm       ar2       "Error in mgcv::gamm(formula = form, ~
  4     2 test  press gamm       arma11    "Error in mgcv::gamm(formula = form, ~
  5     2 test  press gamm       arma12    "Error in mgcv::gamm(formula = form, ~
  6     2 test  press gamm       arma21    "Error in mgcv::gamm(formula = form, ~
  # A tibble: 1 x 3
    ind_id ind    error_message                                                  
     <int> <chr>  <chr>                                                          
  1      5 ind_na "Error in mgcv::gam(stats::as.formula(paste0(ind_name, \" ~ 1 ~
    variable required_data_type
  1      edf            numeric
    variable required_data_type
  1     pred               list
     press press_type
  1   Tsum   add here
  2   Swin   add here
  3   Pwin   add here
  4   Nwin   add here
  5 Fsprat   add here
  6   Fher   add here
  7   Fcod   add here
    variable required_data_type
  1      edf            numeric
  The conditions set in the crit_scores table for sub-criterion
  C9_1
  are not unique, i.e. conditions are met multiple times!
  Please correct your crit_score table before you continue.  variable required_data_type
  1      edf            numeric
    variable required_data_type
  1     r_sq            numeric
  -- 16. Error: (unknown) (@test_test_interaction.R#9)  --------------------------
  undefined exports: %s!=%, %s!==%, %s+%, %s<%, %s<=%, %s==%, %s===%, %s>%, %s>=%, %stri!=%, %stri!==%, %stri+%, %stri<%, %stri<=%, %stri==%, %stri===%, %stri>%, %stri>=%, stri_datetime_add<-, stri_sub<-, stri_subset<-, stri_subset_charclass<-, stri_subset_coll<-, stri_subset_fixed<-, stri_subset_regex<-, stri_c, stri_c_list, stri_cmp, stri_cmp_eq, stri_cmp_equiv, stri_cmp_ge, stri_cmp_gt, stri_cmp_le, stri_cmp_lt, stri_cmp_neq, stri_cmp_nequiv, stri_compare, stri_conv, stri_count, stri_count_boundaries, stri_count_charclass, stri_count_coll, stri_count_fixed, stri_count_regex, stri_count_words, stri_datetime_add, stri_datetime_create, stri_datetime_fields, stri_datetime_format, stri_datetime_fstr, stri_datetime_now, stri_datetime_parse, stri_datetime_symbols, stri_detect, stri_detect_charclass, stri_detect_coll, stri_detect_fixed, stri_detect_regex, stri_dup, stri_duplicated, stri_duplicated_any, stri_enc_detect, stri_enc_detect2, stri_enc_fromutf32, stri_enc_get, stri_enc_info, stri_enc_isascii, stri_enc_isutf16be, stri_enc_isutf16le, stri_enc_isutf32be, stri_enc_isutf32le, stri_enc_isutf8, stri_enc_list, stri_enc_mark, stri_enc_set, stri_enc_toascii, stri_enc_tonative, stri_enc_toutf32, stri_enc_toutf8, stri_encode, stri_endswith, stri_endswith_charclass, stri_endswith_coll, stri_endswith_fixed, stri_escape_unicode, stri_extract, stri_extract_all, stri_extract_all_boundaries, stri_extract_all_charclass, stri_extract_all_coll, stri_extract_all_fixed, stri_extract_all_regex, stri_extract_all_words, stri_extract_first, stri_extract_first_boundaries, stri_extract_first_charclass, stri_extract_first_coll, stri_extract_first_fixed, stri_extract_first_regex, stri_extract_first_words, stri_extract_last, stri_extract_last_boundaries, stri_extract_last_charclass, stri_extract_last_coll, stri_extract_last_fixed, stri_extract_last_regex, stri_extract_last_words, stri_flatten, stri_info, stri_isempty, stri_join, stri_join_list, stri_length, stri_list2matrix, stri_locale_get, stri_locale_info, stri_locale_list, stri_locale_set, stri_locate, stri_locate_all, stri_locate_all_boundaries, stri_locate_all_charclass, stri_locate_all_coll, stri_locate_all_fixed, stri_locate_all_regex, stri_locate_all_words, stri_locate_first, stri_locate_first_boundaries, stri_locate_first_charclass, stri_locate_first_coll, stri_locate_first_fixed, stri_locate_first_regex, stri_locate_first_words, stri_locate_last, stri_locate_last_boundaries, stri_locate_last_charclass, stri_locate_last_coll, stri_locate_last_fixed, stri_locate_last_regex, stri_locate_last_words, stri_match, stri_match_all, stri_match_all_regex, stri_match_first, stri_match_first_regex, stri_match_last, stri_match_last_regex, stri_na2empty, stri_numbytes, stri_opts_brkiter, stri_opts_collator, stri_opts_fixed, stri_opts_regex, stri_order, stri_pad, stri_pad_both, stri_pad_left, stri_pad_right, stri_paste, stri_paste_list, stri_rand_lipsum, stri_rand_shuffle, stri_rand_strings, stri_read_lines, stri_read_raw, stri_remove_empty, stri_replace, stri_replace_all, stri_replace_all_charclass, stri_replace_all_coll, stri_replace_all_fixed, stri_replace_all_regex, stri_replace_first, stri_replace_first_charclass, stri_replace_first_coll, stri_replace_first_fixed, stri_replace_first_regex, stri_replace_last, stri_replace_last_charclass, stri_replace_last_coll, stri_replace_last_fixed, stri_replace_last_regex, stri_replace_na, stri_reverse, stri_sort, stri_split, stri_split_boundaries, stri_split_charclass, stri_split_coll, stri_split_fixed, stri_split_lines, stri_split_lines1, stri_split_regex, stri_startswith, stri_startswith_charclass, stri_startswith_coll, stri_startswith_fixed, stri_stats_general, stri_stats_latex, stri_sub, stri_subset, stri_subset_charclass, stri_subset_coll, stri_subset_fixed, stri_subset_regex, stri_timezone_get, stri_timezone_info, stri_timezone_list, stri_timezone_set, stri_trans_char, stri_trans_general, stri_trans_isnfc, stri_trans_isnfd, stri_trans_isnfkc, stri_trans_isnfkc_casefold, stri_trans_isnfkd, stri_trans_list, stri_trans_nfc, stri_trans_nfd, stri_trans_nfkc, stri_trans_nfkc_casefold, stri_trans_nfkd, stri_trans_tolower, stri_trans_totitle, stri_trans_toupper, stri_trim, stri_trim_both, stri_trim_left, stri_trim_right, stri_unescape_unicode, stri_unique, stri_width, stri_wrap, stri_write_lines
  1: test_interaction(init_tbl, mod_tbl, interactions, excl_outlier = FALSE, a = 0.2, 
         b = 0.8) at testthat/test_test_interaction.R:9
  2: suppressWarnings(temp_gam <- purrr::pmap(.l = list(model, y, x1, x2, name_x2, k_list, 
         a_list, b_list, time, prog_now, prog_max), show_prog) %>% purrr::transpose())
  3: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  4: purrr::pmap(.l = list(model, y, x1, x2, name_x2, k_list, a_list, b_list, time, prog_now, 
         prog_max), show_prog) %>% purrr::transpose()
  5: eval(lhs, parent, parent)
  6: eval(lhs, parent, parent)
  7: purrr::pmap(.l = list(model, y, x1, x2, name_x2, k_list, a_list, b_list, time, prog_now, 
         prog_max), show_prog)
  8: .f(.l[[c(1L, i)]], .l[[c(2L, i)]], .l[[c(3L, i)]], .l[[c(4L, i)]], .l[[c(5L, i)]], 
         .l[[c(6L, i)]], .l[[c(7L, i)]], .l[[c(8L, i)]], .l[[c(9L, i)]], .l[[c(10L, i)]], 
         .l[[c(11L, 1L)]], ...)
  9: loocv_thresh_gam(model = model, ind_vec = y, press_vec = x1, t_var_vec = x2, name_t_var = name_x2, 
         k = k_list, a = a_list, b = b_list, time = time)
  10: stringr::str_detect
  11: getExportedValue(pkg, name)
  12: asNamespace(ns)
  13: getNamespace(ns)
  14: tryCatch(loadNamespace(name), error = function(e) stop(e))
  15: tryCatchList(expr, classes, parentenv, handlers)
  16: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  17: value[[3L]](cond)
  
  -- 17. Error: (unknown) (@test_thresh_gam.R#7)  --------------------------------
  undefined exports: %s!=%, %s!==%, %s+%, %s<%, %s<=%, %s==%, %s===%, %s>%, %s>=%, %stri!=%, %stri!==%, %stri+%, %stri<%, %stri<=%, %stri==%, %stri===%, %stri>%, %stri>=%, stri_datetime_add<-, stri_sub<-, stri_subset<-, stri_subset_charclass<-, stri_subset_coll<-, stri_subset_fixed<-, stri_subset_regex<-, stri_c, stri_c_list, stri_cmp, stri_cmp_eq, stri_cmp_equiv, stri_cmp_ge, stri_cmp_gt, stri_cmp_le, stri_cmp_lt, stri_cmp_neq, stri_cmp_nequiv, stri_compare, stri_conv, stri_count, stri_count_boundaries, stri_count_charclass, stri_count_coll, stri_count_fixed, stri_count_regex, stri_count_words, stri_datetime_add, stri_datetime_create, stri_datetime_fields, stri_datetime_format, stri_datetime_fstr, stri_datetime_now, stri_datetime_parse, stri_datetime_symbols, stri_detect, stri_detect_charclass, stri_detect_coll, stri_detect_fixed, stri_detect_regex, stri_dup, stri_duplicated, stri_duplicated_any, stri_enc_detect, stri_enc_detect2, stri_enc_fromutf32, stri_enc_get, stri_enc_info, stri_enc_isascii, stri_enc_isutf16be, stri_enc_isutf16le, stri_enc_isutf32be, stri_enc_isutf32le, stri_enc_isutf8, stri_enc_list, stri_enc_mark, stri_enc_set, stri_enc_toascii, stri_enc_tonative, stri_enc_toutf32, stri_enc_toutf8, stri_encode, stri_endswith, stri_endswith_charclass, stri_endswith_coll, stri_endswith_fixed, stri_escape_unicode, stri_extract, stri_extract_all, stri_extract_all_boundaries, stri_extract_all_charclass, stri_extract_all_coll, stri_extract_all_fixed, stri_extract_all_regex, stri_extract_all_words, stri_extract_first, stri_extract_first_boundaries, stri_extract_first_charclass, stri_extract_first_coll, stri_extract_first_fixed, stri_extract_first_regex, stri_extract_first_words, stri_extract_last, stri_extract_last_boundaries, stri_extract_last_charclass, stri_extract_last_coll, stri_extract_last_fixed, stri_extract_last_regex, stri_extract_last_words, stri_flatten, stri_info, stri_isempty, stri_join, stri_join_list, stri_length, stri_list2matrix, stri_locale_get, stri_locale_info, stri_locale_list, stri_locale_set, stri_locate, stri_locate_all, stri_locate_all_boundaries, stri_locate_all_charclass, stri_locate_all_coll, stri_locate_all_fixed, stri_locate_all_regex, stri_locate_all_words, stri_locate_first, stri_locate_first_boundaries, stri_locate_first_charclass, stri_locate_first_coll, stri_locate_first_fixed, stri_locate_first_regex, stri_locate_first_words, stri_locate_last, stri_locate_last_boundaries, stri_locate_last_charclass, stri_locate_last_coll, stri_locate_last_fixed, stri_locate_last_regex, stri_locate_last_words, stri_match, stri_match_all, stri_match_all_regex, stri_match_first, stri_match_first_regex, stri_match_last, stri_match_last_regex, stri_na2empty, stri_numbytes, stri_opts_brkiter, stri_opts_collator, stri_opts_fixed, stri_opts_regex, stri_order, stri_pad, stri_pad_both, stri_pad_left, stri_pad_right, stri_paste, stri_paste_list, stri_rand_lipsum, stri_rand_shuffle, stri_rand_strings, stri_read_lines, stri_read_raw, stri_remove_empty, stri_replace, stri_replace_all, stri_replace_all_charclass, stri_replace_all_coll, stri_replace_all_fixed, stri_replace_all_regex, stri_replace_first, stri_replace_first_charclass, stri_replace_first_coll, stri_replace_first_fixed, stri_replace_first_regex, stri_replace_last, stri_replace_last_charclass, stri_replace_last_coll, stri_replace_last_fixed, stri_replace_last_regex, stri_replace_na, stri_reverse, stri_sort, stri_split, stri_split_boundaries, stri_split_charclass, stri_split_coll, stri_split_fixed, stri_split_lines, stri_split_lines1, stri_split_regex, stri_startswith, stri_startswith_charclass, stri_startswith_coll, stri_startswith_fixed, stri_stats_general, stri_stats_latex, stri_sub, stri_subset, stri_subset_charclass, stri_subset_coll, stri_subset_fixed, stri_subset_regex, stri_timezone_get, stri_timezone_info, stri_timezone_list, stri_timezone_set, stri_trans_char, stri_trans_general, stri_trans_isnfc, stri_trans_isnfd, stri_trans_isnfkc, stri_trans_isnfkc_casefold, stri_trans_isnfkd, stri_trans_list, stri_trans_nfc, stri_trans_nfd, stri_trans_nfkc, stri_trans_nfkc_casefold, stri_trans_nfkd, stri_trans_tolower, stri_trans_totitle, stri_trans_toupper, stri_trim, stri_trim_both, stri_trim_left, stri_trim_right, stri_unescape_unicode, stri_unique, stri_width, stri_wrap, stri_write_lines
  1: thresh_gam(model, ind, press1, press2, "Ssum", k = 4, a = 0.2, b = 0.8) at testthat/test_thresh_gam.R:7
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  == testthat results  ===========================================================
  OK: 532 SKIPPED: 0 FAILED: 17
  1. Failure: check gams under different distributions (@test_calc_deriv.R#73) 
  2. Failure: check gams under different distributions (@test_calc_deriv.R#74) 
  3. Failure: check gams under different distributions (@test_calc_deriv.R#75) 
  4. Failure: check gams under different distributions (@test_calc_deriv.R#76) 
  5. Failure: check gams under different distributions (@test_calc_deriv.R#77) 
  6. Failure: check gams under different distributions (@test_calc_deriv.R#78) 
  7. Failure: check gams under different distributions (@test_calc_deriv.R#79) 
  8. Failure: check gams under different distributions (@test_calc_deriv.R#80) 
  9. Failure: check gams under different distributions (@test_calc_deriv.R#81) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted