* using log directory 'd:/Rcompile/CRANpkg/local/4.1/grafzahl.Rcheck' * using R version 4.1.3 (2022-03-10) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'grafzahl/DESCRIPTION' ... OK * this is package 'grafzahl' version '0.0.8' * package encoding: UTF-8 * 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 whether package 'grafzahl' can be installed ... OK * checking installed package size ... OK * checking package 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 ... [0s] OK * checking Rd metadata ... 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [4s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [6s] ERROR Running 'testthat.R' [6s] 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(grafzahl) > > test_check("grafzahl") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 13 ] == Failed tests ================================================================ -- Failure ('test_grafzahl.R:10:5'): basic ------------------------------------- `grafzahl(...)` threw an unexpected error. Message: Fail to download the model `bert-base-cased` from Hugging Face Class: simpleError/error/condition Backtrace: x 1. +-testthat::expect_error(...) at test_grafzahl.R:10:4 2. | \-testthat:::expect_condition_matching(...) 3. | \-testthat:::quasi_capture(...) 4. | +-testthat (local) .capture(...) 5. | | \-base::withCallingHandlers(...) 6. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. +-grafzahl::grafzahl(...) 8. \-grafzahl:::grafzahl.character(...) 9. +-grafzahl::grafzahl(...) 10. \-grafzahl:::grafzahl.corpus(...) 11. \-grafzahl:::.check_model_type(model_type = model_type, model_name = model_name) 12. \-grafzahl:::.infer_model_type(model_name) 13. \-grafzahl:::.download_from_huggingface(model_name) 14. \-base::tryCatch(...) 15. \-base (local) tryCatchList(expr, classes, parentenv, handlers) 16. \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 17. \-value[[3L]](cond) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 13 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR