Running ‘run_tests.r’ [4s/35s]
Running the tests in ‘tests/run_tests.r’ failed.
Complete output:
  > # Run all unit tests
  > 
  > # This is a wrapper around all the tests specified
  > # in the tests/testthat directory. These tests are visible
  > # to users and serve as small examples as well.
  > testthat::test_check("phenocamr")
  Loading required package: phenocamr
  Error in download_phenocam(site = "harvard$", veg_type = "DB", roi_id = "1",  : 
    No files are available for download! 
  
  Error in transition_dates(paste0(tempdir(), "/harvard_DB_0001_3day.csv"),  : 
    not a valid PhenoCam data frame or file
  Error in truncate_phenocam(paste0(tempdir(), "/harvard_DB_0001_3day.csv"),  : 
    not a valid PhenoCam data frame or file
  Error in detect_outliers(paste0(tempdir(), "/harvard_DB_0001_3day.csv"),  : 
    not a valid PhenoCam data frame or file
  Error in expand_phenocam(paste0(tempdir(), "/harvard_DB_0001_3day.csv")) : 
    not a valid PhenoCam data frame or file
  Error in smooth_ts(paste0(tempdir(), "/harvard_DB_0001_3day.csv")) : 
    not a valid PhenoCam data frame or file
  Error in contract_phenocam(paste0(tempdir(), "/harvard_DB_0001_3day.csv")) : 
    not a valid PhenoCam data frame or file
  Error in grvi(paste0(tempdir(), "/harvard_DB_0001_3day.csv")) : 
    not a valid PhenoCam data frame or file
  ── 1. Failure: check ancillary routines (@test_ancillary_functions.r#86)  ──────
  `check` isn't true.
  
  Error in download_phenocam(site = "harvard$", veg_type = "DB", roi_id = "1",  : 
    No files are available for download! 
  
  Error in download_phenocam(site = "harvard$", veg_type = "DB", roi_id = "1",  : 
    No files are available for download! 
  
  Error in download_phenocam(site = "harvard$", veg_type = "DB", roi_id = "1",  : 
    No files are available for download! 
  
  Error in download_phenocam(site = "harvard$", veg_type = "DB", roi_id = "1",  : 
    No files are available for download! 
  
  Error in download_phenocam(site = "harvard$", veg_type = "DB", roi_id = "1",  : 
    No files are available for download! 
  
  ── 2. Failure: check download options (@test_download_function.r#64)  ──────────
  `check` isn't true.
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1 SKIPPED: 0 FAILED: 2
  1. Failure: check ancillary routines (@test_ancillary_functions.r#86) 
  2. Failure: check download options (@test_download_function.r#64) 
  
  Error: testthat unit tests failed
  Execution halted