R Under development (unstable) (2023-10-10 r85312 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(GitStats) > > test_check("GitStats") Error in `FUN()`: ! In path: "D:\\RCompile\\CRANincoming\\R-devel\\GitStats.Rcheck\\tests\\testthat\\setup.R" Caused by error: ✖ You did not set up your GITHUB_PAT environment variable. ℹ If you wish to run tests for GitHub - set up your GITHUB_PAT enviroment variable (as a GitHub access token on github.com). Backtrace: ▆ 1. └─testthat::test_check("GitStats") 2. └─testthat::test_dir(...) 3. └─testthat:::test_files(...) 4. └─testthat:::test_files_serial(...) 5. └─testthat:::test_files_setup_state(...) 6. └─testthat::source_test_setup(".", env) 7. └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE) 8. └─base::lapply(...) 9. └─testthat (local) FUN(X[[i]], ...) 10. └─testthat::source_file(path, env = env, chdir = chdir, wrap = wrap) 11. ├─base::withCallingHandlers(...) 12. └─base::eval(exprs, env) 13. └─base::eval(exprs, env) 14. └─cli::cli_abort(...) at D:\RCompile\CRANincoming\R-devel\GitStats.Rcheck\tests\testthat\setup.R:16:2 15. └─rlang::abort(...) Execution halted