Running 'testthat.R' [30s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(GSODR)
  > 
  > test_check("GSODR")
  -- Warning (test-get_GSOD.R:83:13): missing days check allows stations with perm
  cannot remove file 'D:\temp\Rtmpygv13h/2015', reason 'Permission denied'
  
  -- Warning (test-get_GSOD.R:120:13): missing days check allows stations with per
  cannot remove file 'D:\temp\Rtmpygv13h/2016', reason 'Permission denied'
  
  -- FAILURE (test-get_GSOD.R:126:3): The 'max_missing' parameter filters out impr
  `get_GSOD(years = 1929, max_missing = 1)` threw an error with unexpected message.
  Expected match: "There were no stations that had a max of."
  Actual message: "attempt to set an attribute on NULL"
  Backtrace:
      x
   1. +-testthat::expect_error(...) test-get_GSOD.R:126:2
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-GSODR::get_GSOD(years = 1929, max_missing = 1)
   7.   \-GSODR:::.validate_missing_days(max_missing, file_list)
  
  -- Skip (test-get_GSOD.R:194:3): unique stations are returned, tempdir() is clea
  Reason: On CRAN
  
  -- Skip (test-get_GSOD.R:207:3): agroclimatology data is returned as requested -
  Reason: On CRAN
  
  -- Skip (test-get_GSOD.R:224:3): only specified country is returned using FIPS a
  Reason: On CRAN
  
  -- Skip (test-get_GSOD.R:230:3): only specified country is returned using 2 lett
  Reason: On CRAN
  
  -- Skip (test-get_GSOD.R:236:3): only specified country is returned using 3 lett
  Reason: On CRAN
  
  -- Skip (test-get_inventory.R:5:3): get_inventory fetches the inventory doc and 
  Reason: On CRAN
  
  -- Skip (test-process_csv.R:7:5): .download_files properly works, subsetting for
  Reason: On CRAN
  
  -- Skip (test-reformat_GSOD.R:5:3): reformat_GSOD file_list parameter reformats 
  Reason: On CRAN
  
  -- Skip (test-update_station_list.R:16:3): update_station_list() downloads and i
  Reason: On CRAN
  
  -- Skipped tests  --------------------------------------------------------------
  * On CRAN (9)
  
  == testthat results  ===========================================================
  Warning (test-get_GSOD.R:83:13): missing days check allows stations with permissible days missing,
            non-leap year
  Warning (test-get_GSOD.R:120:13): missing days check allows stations with permissible days missing,
            leap year
  FAILURE (test-get_GSOD.R:126:3): The 'max_missing' parameter filters out improper stations
  
  [ FAIL 1 | WARN 2 | SKIP 9 | PASS 32 ]
  Error: Test failures
  Execution halted