- using R version 4.6.0 (2026-04-24 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
* current time: 2026-06-02 11:50:36 UTC
- checking for file 'grafzahl/DESCRIPTION' ... OK
- this is package 'grafzahl' version '0.0.12'
- 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
See the install log for details.
- checking installed package size ... OK
- checking package directory ... 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 ... [3s] OK
- checking whether the package can be loaded with stated dependencies ... [3s] OK
- checking whether the package can be unloaded cleanly ... [3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s] OK
- checking loading without being on the library search path ... [3s] 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 ... [8s] OK
- checking Rd files ... [1s] 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 ... [1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [13s] ERROR
Running examples in 'grafzahl-Ex.R' failed
The error most likely occurred in:
> ### Name: grafzahl
> ### Title: Fine tune a pretrained Transformer model for texts
> ### Aliases: grafzahl grafzahl.default grafzahl.corpus
> ### textmodel_transformer grafzahl.character
>
> ### ** Examples
>
> if (detect_conda() && interactive()) {
+ library(quanteda)
+ set.seed(20190721)
+ ## Using the default cross validation method
+ model1 <- grafzahl(unciviltweets, model_type = "bertweet", model_name = "vinai/bertweet-base")
+ predict(model1)
+
+ ## Using LIME
+ input <- corpus(ecosent, text_field = "headline")
+ training_corpus <- corpus_subset(input, !gold)
+ model2 <- grafzahl(x = training_corpus,
+ y = "value",
+ model_name = "GroNLP/bert-base-dutch-cased")
+ test_corpus <- corpus_subset(input, gold)
+ predicted_sentiment <- predict(model2, test_corpus)
+ require(lime)
+ sentences <- c("Dijsselbloem pessimistisch over snelle stappen Grieken",
+ "Aandelenbeurzen zetten koersopmars voort")
+ explainer <- lime(training_corpus, model2)
+ explanations <- explain(sentences, explainer, n_labels = 1,
+ n_features = 2)
+ plot_text_explanations(explanations)
+ }
Error: lexical error: inside a string, '\' occurs before a character which it may not.
ntmatter173f077057b1;D:\\temp\ \2026_01_27_01_50_00_18947\\R
(right here) ------^
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [4s] OK
Running 'testthat.R' [3s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [2s] OK
- checking PDF version of manual ... [26s] OK
- checking HTML version of manual ... [2s] OK
- DONE
Status: 1 ERROR