* using log directory 'd:/RCompile/CRANincoming/R-devel/GitStats.Rcheck' * using R Under development (unstable) (2023-10-10 r85312 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 12.2.0 GNU Fortran (GCC) 12.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'GitStats/DESCRIPTION' ... OK * this is package 'GitStats' version '1.0.1' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [11s] NOTE Maintainer: 'Maciej Banas ' New submission Possibly misspelled words in DESCRIPTION: GitLab (2:39, 11:93) * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking serialization versions ... OK * checking whether package 'GitStats' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [10s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'GitStats-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: get_commits > ### Title: Get commits > ### Aliases: get_commits > > ### ** Examples > > my_gitstats <- create_gitstats() %>% + set_host( + api_url = "https://api.github.com", + token = Sys.getenv("GITHUB_PAT"), + orgs = c("r-world-devs") + ) %>% + set_host( + api_url = "https://gitlab.com/api/v4", + token = Sys.getenv("GITLAB_PAT_PUBLIC"), + orgs = "mbtests" + ) %>% + pull_commits( + date_from = "2023-01-01", + date_until = "2023-01-15" + ) %>% + get_commits() Error in `super$check_token()`: ℹ No token provided. Backtrace: ▆ 1. ├─... %>% get_commits() 2. ├─GitStats::get_commits(.) 3. ├─GitStats::pull_commits(., date_from = "2023-01-01", date_until = "2023-01-15") 4. ├─GitStats::set_host(...) 5. └─GitStats::set_host(...) 6. └─gitstats_obj$set_host(api_url = api_url, token = token, orgs = orgs) 7. └─GitHost$new(orgs = orgs, token = token, api_url = api_url) 8. └─GitStats (local) initialize(...) 9. └─private$setup_engine(type = "rest") 10. └─EngineRestGitHub$new(...) 11. └─GitStats (local) initialize(...) 12. └─private$check_token(token) 13. └─super$check_token(token) 14. └─cli::cli_abort(c(i = "No token provided.")) 15. └─rlang::abort(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... ERROR Running 'spelling.R' Running 'testthat.R' Running the tests in 'tests/testthat.R' failed. Complete output: > # 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... ERROR Error(s) in re-building vignettes: --- re-building 'gitstats_workflow.Rmd' using rmarkdown Quitting from lines 24-37 [unnamed-chunk-2] (gitstats_workflow.Rmd) Error: processing vignette 'gitstats_workflow.Rmd' failed with diagnostics: ℹ No token provided. --- failed re-building 'gitstats_workflow.Rmd' SUMMARY: processing the following file failed: 'gitstats_workflow.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... OK * DONE Status: 3 ERRORs, 1 NOTE