Running ‘testthat.R’ [100s/153s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(portalr)
  > 
  > test_check("portalr")
  ── 1. Error: (unknown) (@test-04-weather.R#6)  ─────────────────────────────────
  character string is not in a standard unambiguous format
  1: weather("newmoon", path = portal_data_path) at testthat/test-04-weather.R:6
  2: as.Date(moon_dates$newmoondate[-nrow(moon_dates)])
  3: as.Date.character(moon_dates$newmoondate[-nrow(moon_dates)])
  4: charToDate(x)
  5: stop("character string is not in a standard unambiguous format")
  
  ── 2. Failure: add_seasons returns expected results (@test-07-seasons.R#28)  ───
  round(sum(rodent_seasons$abundance, na.rm = T), 4) not equal to 478.3957.
  1/1 mismatches
  [1] 16 - 478 == -462
  
  ── 3. Failure: yearly returns expected results (@test-07-seasons.R#38)  ────────
  round(sum(rodent_yearly$abundance, na.rm = T), 3) not equal to 1533.19.
  1/1 mismatches
  [1] 139 - 1533 == -1394
  
  ── 4. Error: (unknown) (@test-08-NDVI.R#5)  ────────────────────────────────────
  character string is not in a standard unambiguous format
  1: ndvi("newmoon", path = portal_data_path) at testthat/test-08-NDVI.R:5
  2: as.Date(moon_dates$newmoondate[-nrow(moon_dates)])
  3: as.Date.character(moon_dates$newmoondate[-nrow(moon_dates)])
  4: charToDate(x)
  5: stop("character string is not in a standard unambiguous format")
  
  ── 5. Failure: get_future_moons returns expected results using current newmoons_
  `newmoons <- get_future_moons(moons, num_future_moons = 12)` threw an error.
  Message: NA/NaN argument
  Class:   simpleError/error/condition
  
  ── 6. Error: get_future_moons returns expected results using current newmoons_ta
  object 'newmoons' not found
  1: expect_equal(dim(newmoons), c(12, 4)) at testthat/test-09-get-future-moons.R:9
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  
  ── 7. Failure: data generated by default setting is same (weather) (@test-99-reg
  Value hashes to b4c772e46f, not 1afbe4c1f0
  
  ── 8. Failure: data generated by fill = TRUE is same (weather) (@test-99-regress
  Value hashes to 10fb3ed456, not 08da5df7bb
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 142 | SKIPPED: 10 | WARNINGS: 0 | FAILED: 8 ]
  1. Error: (unknown) (@test-04-weather.R#6) 
  2. Failure: add_seasons returns expected results (@test-07-seasons.R#28) 
  3. Failure: yearly returns expected results (@test-07-seasons.R#38) 
  4. Error: (unknown) (@test-08-NDVI.R#5) 
  5. Failure: get_future_moons returns expected results using current newmoons_table (@test-09-get-future-moons.R#8) 
  6. Error: get_future_moons returns expected results using current newmoons_table (@test-09-get-future-moons.R#9) 
  7. Failure: data generated by default setting is same (weather) (@test-99-regression.R#181) 
  8. Failure: data generated by fill = TRUE is same (weather) (@test-99-regression.R#192) 
  
  Error: testthat unit tests failed
  Execution halted