Running ‘testthat.R’ [9s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lvmisc)
  > 
  > test_check("lvmisc")
  Saving _problems/test-create_proj-30.R
  Saving _problems/test-create_proj-37.R
  Saving _problems/test-create_proj-54.R
  Saving _problems/test-create_proj-65.R
  Saving _problems/test-create_proj-80.R
  [ FAIL 5 | WARN 0 | SKIP 7 | PASS 232 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-percent_class.R:1:1', 'test-plot_bland_altman.R:38:3',
    'test-plot_model.R:6:3', 'test-plots.R:26:3', 'test-plots.R:36:3',
    'test-plots.R:46:3', 'test-plots.R:68:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-create_proj.R:30:3'): create_proj() creates the project top-level directory ──
  <error_package_not_installed/rlang_error/error/condition>
  Error in `abort_package_not_installed(c("withr", "git2r", "usethis"))`: Package "usethis" is needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─base::suppressMessages(create_proj(tempfile())) at test-create_proj.R:30:3
   2. │ └─base::withCallingHandlers(...)
   3. └─lvmisc::create_proj(tempfile())
   4.   └─lvmisc::abort_package_not_installed(c("withr", "git2r", "usethis"))
   5.     └─rlang::abort("error_package_not_installed", message = msg)
  ── Error ('test-create_proj.R:37:3'): create_proj() throws an error if `path` already exists ──
  <error_package_not_installed/rlang_error/error/condition>
  Error in `abort_package_not_installed(c("withr", "git2r", "usethis"))`: Package "usethis" is needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─base::suppressMessages(create_proj(proj_dir)) at test-create_proj.R:37:3
   2. │ └─base::withCallingHandlers(...)
   3. └─lvmisc::create_proj(proj_dir)
   4.   └─lvmisc::abort_package_not_installed(c("withr", "git2r", "usethis"))
   5.     └─rlang::abort("error_package_not_installed", message = msg)
  ── Error ('test-create_proj.R:54:3'): create_proj() initialises a git repo ─────
  <error_package_not_installed/rlang_error/error/condition>
  Error in `abort_package_not_installed(c("withr", "git2r", "usethis"))`: Package "usethis" is needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─base::suppressMessages(create_proj(proj_dir)) at test-create_proj.R:54:3
   2. │ └─base::withCallingHandlers(...)
   3. └─lvmisc::create_proj(proj_dir)
   4.   └─lvmisc::abort_package_not_installed(c("withr", "git2r", "usethis"))
   5.     └─rlang::abort("error_package_not_installed", message = msg)
  ── Error ('test-create_proj.R:65:3'): .gitignore is correctly handled ──────────
  <error_package_not_installed/rlang_error/error/condition>
  Error in `abort_package_not_installed(c("withr", "git2r", "usethis"))`: Package "usethis" is needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─base::suppressMessages(create_proj(proj_dir)) at test-create_proj.R:65:3
   2. │ └─base::withCallingHandlers(...)
   3. └─lvmisc::create_proj(proj_dir)
   4.   └─lvmisc::abort_package_not_installed(c("withr", "git2r", "usethis"))
   5.     └─rlang::abort("error_package_not_installed", message = msg)
  ── Error ('test-create_proj.R:80:3'): create_proj() writes a README.md file ────
  <error_package_not_installed/rlang_error/error/condition>
  Error in `abort_package_not_installed(c("withr", "git2r", "usethis"))`: Package "usethis" is needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─base::suppressMessages(create_proj(proj_dir)) at test-create_proj.R:80:3
   2. │ └─base::withCallingHandlers(...)
   3. └─lvmisc::create_proj(proj_dir)
   4.   └─lvmisc::abort_package_not_installed(c("withr", "git2r", "usethis"))
   5.     └─rlang::abort("error_package_not_installed", message = msg)
  
  [ FAIL 5 | WARN 0 | SKIP 7 | PASS 232 ]
  Deleting unused snapshots: 'plot_bland_altman/bland-altman-plot-cv.svg',
  'plot_bland_altman/bland-altman-plot-lm.svg',
  'plot_bland_altman/bland-altman-plot-lmermod.svg',
  'plot_model/plot-model-m1.svg', 'plot_model/plot-model-m2.svg',
  'plots/histogram-fd.svg', 'plots/histogram-null.svg',
  'plots/histogram-scott.svg', 'plots/histogram-sturges.svg',
  'plots/line-plot.svg', 'plots/qq-plot.svg', and 'plots/scatterplot.svg'
  Error:
  ! Test failures.
  Execution halted