Running 'testthat.R' [10s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > 
  > 
  > library(testthat)
  > test_check("Rcan")
  Loading required package: Rcan
  Type example(Rcan) to see demo of the function.
  
  Population with less than 18 age group:
  
            registry_label nb_age_group
   India, Chennai (Madras)           16
           South Australia           17
  
  ASR have been computed for the age group 0-99+
  Cumulative risk have been computed for the age group 0-74
  -- 1. Error: Test age specific: 1 (@test-Rcan.R#94)  ---------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. Rcan::csu_ageSpecific(data_test, plot_title = "Colombia, Liver, male")
    3. ggplot2:::print.ggplot(csu_list$csu_plot)
    5. ggplot2:::ggplot_build.ggplot(x)
    6. ggplot2:::by_layer(function(l, d) l$compute_aesthetics(d, plot))
    7. ggplot2:::f(l = layers[[i]], d = data[[i]])
    8. l$compute_aesthetics(d, plot)
    9. ggplot2:::f(..., self = self)
   10. ggplot2:::as_gg_data_frame(evaled)
   13. tibble:::as_tibble.list(x)
   14. tibble:::lst_to_tibble(x, .rows, .name_repair, col_lengths(x))
   15. tibble:::recycle_columns(x, .rows, lengths)
   16. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   17. tibble:::update_tibble_attrs(x, ...)
  
  ASR have been computed for the age group 0-99+
  -- 2. Error: Test trend: 1 (@test-Rcan.R#120)  ---------------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. Rcan::csu_time_trend(...)
    3. ggplot2:::print.ggplot(csu_list$csu_plot)
    5. ggplot2:::ggplot_build.ggplot(x)
    6. ggplot2:::by_layer(function(l, d) l$compute_aesthetics(d, plot))
    7. ggplot2:::f(l = layers[[i]], d = data[[i]])
    8. l$compute_aesthetics(d, plot)
    9. ggplot2:::f(..., self = self)
   10. ggplot2:::as_gg_data_frame(evaled)
   13. tibble:::as_tibble.list(x)
   14. tibble:::lst_to_tibble(x, .rows, .name_repair, col_lengths(x))
   15. tibble:::recycle_columns(x, .rows, lengths)
   16. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   17. tibble:::update_tibble_attrs(x, ...)
  
  
  Population with less than 18 age group:
  
                           registry_label nb_age_group
                          Brazil, Goiania           17
                    China, Jiashan County           16
                               Costa Rica           16
                           Ecuador, Quito           16
                                  Iceland           16
                  India, Chennai (Madras)           16
                   India, Mumbay (Bombay)           16
                             India, Poona           16
                             Israel: Jews           16
                             Italy, Parma           17
                   Italy, Ragusa Province           17
                      Philippines, Manila           16
                      Poland, Cracow City           17
                                Singapore           17
                       Singapore: Chinese           17
                         Singapore: Malay           17
                                 Slovenia           17
                     Thailand, Chiang Mai           16
                       Thailand, Songkhla           16
                  Uganda, Kyadondo County           16
    USA, California, Los Angeles: Chinese           16
   USA, California, Los Angeles: Filipino           16
   USA, California, Los Angeles: Japanese           16
     USA, California, Los Angeles: Korean           16
    USA, California, San Francisco: Black           17
                  USA, Connecticut: Black           16
             USA, Georgia, Atlanta: Black           17
                           registry_label nb_age_group
  
  ASR have been computed for the age group 0-99+
  EAPC with  95 % CI level have been computed
  == testthat results  ===========================================================
  [ OK: 5 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 2 ]
  1. Error: Test age specific: 1 (@test-Rcan.R#94) 
  2. Error: Test trend: 1 (@test-Rcan.R#120) 
  
  Error: testthat unit tests failed
  Execution halted