Running 'testthat.R' [56s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(atlantistools)
  > 
  > test_check("atlantistools")
  -- 1. Error: (unknown) (@test-diet-fishbase.R#9)  ------------------------------
  subscript out of bounds
  1: get_diet_fishbase(c("Gadus morhua", "Merlangius merlangus", "Maurolicus muelleri")) at testthat/test-diet-fishbase.R:9
  2: purrr::map_if(diet_urls, ids, ~xml2::read_html(paste0("http://www.fishbase.", mirror, 
         .))) %>% purrr::map_if(., ids, rvest::html_table) %>% purrr::map_if(., ids, ~unique(.[[1]][, 
         c("Country", "Locality", "Ref.")]))
  3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: eval(quote(`_fseq`(`_lhs`)), env, env)
  6: `_fseq`(`_lhs`)
  7: freduce(value, `_function_list`)
  8: withVisible(function_list[[k]](value))
  9: function_list[[k]](value)
  10: purrr::map_if(., ids, ~unique(.[[1]][, c("Country", "Locality", "Ref.")]))
  11: map(.x[sel], .f, ...)
  12: .f(.x[[i]], ...)
  13: unique(.[[1]][, c("Country", "Locality", "Ref.")])
  
  -- 2. Error: (unknown) (@test-growth-fishbase.R#3)  ----------------------------
  invalid 'times' argument
  1: get_growth_fishbase("Scyliorhinus canicula") at testthat/test-growth-fishbase.R:3
  2: purrr::map2(.x = result, .y = names(ids), ~tibble::add_column(.x, rep(.y, times = nrow(.x)))) %>% 
         do.call(rbind, args = .) %>% purrr::set_names(., c("xxx", "linf", "length_type", 
         "k", "to", "sex", "m", "temp", "lm", "a", "country", "locality", "questionable", 
         "captive", "species"))
  3: eval(lhs, parent, parent)
  4: eval(lhs, parent, parent)
  5: purrr::map2(.x = result, .y = names(ids), ~tibble::add_column(.x, rep(.y, times = nrow(.x))))
  6: .f(.x[[1L]], .y[[1L]], ...)
  7: tibble::add_column(.x, rep(.y, times = nrow(.x)))
  8: tibble(...)
  9: as_tibble(lst_quos(xs, expand = TRUE))
  10: lst_quos(xs, expand = TRUE)
  11: eval_tidy(xs[[i]], unique_output)
  
  == testthat results  ===========================================================
  OK: 183 SKIPPED: 0 FAILED: 2
  1. Error: (unknown) (@test-diet-fishbase.R#9) 
  2. Error: (unknown) (@test-growth-fishbase.R#3) 
  
  Error: testthat unit tests failed
  Execution halted