Running 'test-all.R' [40s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > 
  > library(testthat)
  > 
  > test_check("mudata2")
  Loading required package: mudata2
  
  Attaching package: 'mudata2'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  -- 1. Failure: rename functions throw errors (@test-rename.R#55)  --------------
  `rename_datasets(kentvillegreenwood, bad = not_a_dataset)` threw an error with unexpected class.
  Expected class: no_such_item
  Actual class:   rlang_error/error/condition
  Message:        Error during dataset renaming: Error in .f(.x[[i]], ...): object 'not_a_dataset' not found
  
  Backtrace:
    1. testthat::expect_error(...)
    7. mudata2:::rename_datasets.default(kentvillegreenwood, bad = not_a_dataset)
    8. mudata2:::.vars_rename(...)
    9. base::tryCatch(...)
   10. base:::tryCatchList(expr, classes, parentenv, handlers)
   11. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12. value[[3L]](cond)
  
  -- 2. Failure: rename functions throw errors (@test-rename.R#56)  --------------
  `rename_locations(kentvillegreenwood, bad = not_a_location)` threw an error with unexpected class.
  Expected class: no_such_item
  Actual class:   rlang_error/error/condition
  Message:        Error during location renaming: Error in .f(.x[[i]], ...): object 'not_a_location' not found
  
  Backtrace:
    1. testthat::expect_error(...)
    7. mudata2:::rename_locations.default(kentvillegreenwood, bad = not_a_location)
    8. mudata2:::.vars_rename(...)
    9. base::tryCatch(...)
   10. base:::tryCatchList(expr, classes, parentenv, handlers)
   11. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12. value[[3L]](cond)
  
  -- 3. Failure: rename functions throw errors (@test-rename.R#57)  --------------
  `rename_params(kentvillegreenwood, bad = not_a_param)` threw an error with unexpected class.
  Expected class: no_such_item
  Actual class:   rlang_error/error/condition
  Message:        Error during param renaming: Error in .f(.x[[i]], ...): object 'not_a_param' not found
  
  Backtrace:
    1. testthat::expect_error(...)
    7. mudata2:::rename_params.default(kentvillegreenwood, bad = not_a_param)
    8. mudata2:::.vars_rename(...)
    9. base::tryCatch(...)
   10. base:::tryCatchList(expr, classes, parentenv, handlers)
   11. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12. value[[3L]](cond)
  
  -- 4. Failure: rename functions throw errors (@test-rename.R#58)  --------------
  `rename_columns(kentvillegreenwood, bad = not_a_col)` threw an error with unexpected class.
  Expected class: no_such_item
  Actual class:   rlang_error/error/condition
  Message:        Error during column renaming: Error in .f(.x[[i]], ...): object 'not_a_col' not found
  
  Backtrace:
    1. testthat::expect_error(...)
    7. mudata2:::rename_columns.default(kentvillegreenwood, bad = not_a_col)
    8. mudata2:::.vars_rename(distinct_columns(.data), "column", !!!columns)
    9. base::tryCatch(...)
   10. base:::tryCatchList(expr, classes, parentenv, handlers)
   11. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12. value[[3L]](cond)
  
  -- 5. Failure: rename functions throw errors (@test-rename.R#65)  --------------
  `rename_datasets(kg2, ecclimate = ec2)` did not throw an error.
  
  -- 6. Failure: rename functions throw errors (@test-rename.R#66)  --------------
  `rename_locations(kg2, `GREENWOOD A` = `KENTVILLE CDA CS`)` did not throw an error.
  
  -- 7. Failure: rename functions throw errors (@test-rename.R#70)  --------------
  `rename_params(kg2, maxtemp = mintemp)` did not throw an error.
  
  -- 8. Failure: rename functions throw errors (@test-rename.R#71)  --------------
  `rename_columns(kg2, date = flags)` did not throw an error.
  
  OGR: Unsupported geometry type
  OGR: Unsupported geometry type
  OGR: Unsupported geometry type
  OGR: Unsupported geometry type
  OGR: Unsupported geometry type
  == testthat results  ===========================================================
  [ OK: 916 | SKIPPED: 2 | WARNINGS: 0 | FAILED: 8 ]
  1. Failure: rename functions throw errors (@test-rename.R#55) 
  2. Failure: rename functions throw errors (@test-rename.R#56) 
  3. Failure: rename functions throw errors (@test-rename.R#57) 
  4. Failure: rename functions throw errors (@test-rename.R#58) 
  5. Failure: rename functions throw errors (@test-rename.R#65) 
  6. Failure: rename functions throw errors (@test-rename.R#66) 
  7. Failure: rename functions throw errors (@test-rename.R#70) 
  8. Failure: rename functions throw errors (@test-rename.R#71) 
  
  Error: testthat unit tests failed
  Execution halted