Running 'testthat.R' [239s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(portalr)
  > 
  > test_check("portalr")
  -- 1. Failure: default data path functions work if unset (@test-01-data-retrieva
  `m` does not match "Call `usethis::edit_r_environ\\(\\)` to open '.Renviron'".
  Actual value: ""
  
  -- 2. Failure: default data path functions work if unset (@test-01-data-retrieva
  `m` does not match "Store your data path with a line like:".
  Actual value: ""
  
  -- 3. Failure: default data path functions work if unset (@test-01-data-retrieva
  `m` does not match "PORTALR_DATA_PATH=".
  Actual value: ""
  
  -- 4. Failure: default data path functions work if unset (@test-01-data-retrieva
  `m` does not match "Make sure '.Renviron' ends with a newline!".
  Actual value: ""
  
  -- 5. Error: (unknown) (@test-11-phenocam.R#4)  --------------------------------
  cannot open the connection
  Backtrace:
   1. portalr::phenocam("daily", path = portal_data_path)
   5. utils::read.csv(...)
   6. utils::read.table(...)
   8. base::open.connection(file, "rt")
  
  -- 6. Error: data generated by default setting is same (phenocam)  -------------
  cannot open the connection
  Backtrace:
   1. portalr::phenocam(path = portal_data_path)
   5. utils::read.csv(...)
   6. utils::read.table(...)
   8. base::open.connection(file, "rt")
  
  == testthat results  ===========================================================
  [ OK: 186 | SKIPPED: 10 | WARNINGS: 6 | FAILED: 6 ]
  1. Failure: default data path functions work if unset (@test-01-data-retrieval.R#107) 
  2. Failure: default data path functions work if unset (@test-01-data-retrieval.R#108) 
  3. Failure: default data path functions work if unset (@test-01-data-retrieval.R#109) 
  4. Failure: default data path functions work if unset (@test-01-data-retrieval.R#110) 
  5. Error: (unknown) (@test-11-phenocam.R#4) 
  6. Error: data generated by default setting is same (phenocam) 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In .External2(C_typeconvert, x, na.strings, as.is, dec, match.arg(numerals)) :
    closing unused connection 4 (http://phenocam.sr.unh.edu/data/archive/portal/ROI/portal_SH_1000_1day.csv)
  2: In .Internal(sys.parent(n)) :
    closing unused connection 4 (http://phenocam.sr.unh.edu/data/archive/portal/ROI/portal_SH_1000_1day.csv)
  Execution halted