* using log directory 'd:/RCompile/CRANincoming/R-devel/sacRebleu.Rcheck' * using R version 4.4.0 RC (2024-04-16 r86451 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'sacRebleu/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'sacRebleu' version '0.1.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Philipp Koch ' New submission * 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 'sacRebleu' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 13.2.0' * 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 code 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 ... 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 line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'sacRebleu-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: bleu_corpus > ### Title: This function applies tokenization based on the 'tok' library > ### and computes the BLEU score. An already initialized tokenizer can be > ### provided using the 'tokenizer'argument or a valid huggingface > ### identifier (string) can be passed. If the identifier is used only, > ### the tokenizer is newly initialized on every call. > ### Aliases: bleu_corpus > > ### ** Examples > > cand_corpus <- list("This is good", "This is not good") > ref_corpus <- list(list("Perfect outcome!", "Excellent!"), list("Not sufficient.", "Horrible.")) > bleu_corpus <- bleu_corpus(ref_corpus, cand_corpus) Warning in file.symlink(blob_path, pointer_path) : cannot symlink 'C:\Users\CRAN\.cache\huggingface\hub\models--bert-base-cased\blobs\1ab2a0d23e5a032b6dcd6a3d0976c2af4d2c27f8' to 'C:/Users/CRAN/.cache/huggingface/hub/models--bert-base-cased/snapshots/cd5ef92a9fb2f889e972770a36d4ed042daf221e/tokenizer.json', reason 'Dem Client fehlt ein erforderliches Recht' thread '' panicked at src\tokenizer.rs:15:51: called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "Das System kann die angegebene Datei nicht finden." } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Error in RTokenizer$from_file(path) : from_file panicked. Calls: bleu_corpus ... -> initialize -> inherits -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... ERROR 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(sacRebleu) > > test_check("sacRebleu") thread '' panicked at src\tokenizer.rs:15:51: called `Result::unwrap()` on an `Err` value: Os { code: 5, kind: PermissionDenied, message: "Zugriff verweigert" } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace [ FAIL 1 | WARN 0 | SKIP 0 | PASS 41 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_bleu.R:94:3'): Test With Tokenizer ───────────────────────────── Error in `RTokenizer$from_file(path)`: from_file panicked. Backtrace: ▆ 1. ├─testthat::expect_vector(bleu_sentence(ref, cand)) at test_bleu.R:94:3 2. │ └─testthat::quasi_label(enquo(object), arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─sacRebleu::bleu_sentence(ref, cand) 5. └─tok::tokenizer$from_pretrained(tokenizer) 6. ├─tokenizer$new(RTokenizer$from_file(path)) 7. │ └─tok (local) initialize(...) 8. │ └─base::inherits(tokenizer, "RTokenizer") 9. └─RTokenizer$from_file(path) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 41 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... ERROR Error(s) in re-building vignettes: --- re-building 'sacReBLEU.Rmd' using rmarkdown trying URL 'https://github.com/google/wmt19-paraphrased-references/raw/master/wmt19/ende/wmt19-ende-ar.ref' Content type 'text/plain; charset=utf-8' length 301380 bytes (294 KB) ================================================== downloaded 294 KB trying URL 'https://github.com/google/wmt19-paraphrased-references/raw/master/wmt19/ende/wmt19-ende-arp.ref' Content type 'text/plain; charset=utf-8' length 313848 bytes (306 KB) ================================================== downloaded 306 KB trying URL 'https://github.com/google/wmt19-paraphrased-references/raw/master/wmt19/ende/wmt19-ende-wmtp.ref' Content type 'text/plain; charset=utf-8' length 317781 bytes (310 KB) ================================================== downloaded 310 KB thread '' panicked at src\tokenizer.rs:15:51: called `Result::unwrap()` on an `Err` value: Os { code: 5, kind: PermissionDenied, message: "Zugriff verweigert" } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Quitting from lines at lines 88-90 [unnamed-chunk-5] (sacReBLEU.Rmd) Error: processing vignette 'sacReBLEU.Rmd' failed with diagnostics: from_file panicked. --- failed re-building 'sacReBLEU.Rmd' SUMMARY: processing the following file failed: 'sacReBLEU.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 3 ERRORs, 1 NOTE