* using log directory 'd:/Rcompile/CRANpkg/local/4.2/WoodSimulatR.Rcheck' * using R version 4.2.3 (2023-03-15 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: UTF-8 * checking for file 'WoodSimulatR/DESCRIPTION' ... OK * this is package 'WoodSimulatR' version '0.6.0' * 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 'WoodSimulatR' can be installed ... OK * 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 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 ... [5s] 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 ... 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 ... [3s] ERROR Running examples in 'WoodSimulatR-Ex.R' failed The error most likely occurred in: > ### Name: simbase_covar > ### Title: Calculate reference data for simulating values based on a > ### covariance matrix approach > ### Aliases: simbase_covar > > ### ** Examples > > # obtain a dataset for demonstration > dataset <- simulate_dataset(); > > # calculate a simbase without transforms > simbase_covar(dataset, c('f', 'E', 'rho', 'E_dyn')); $label [1] "n5000_t_cov" $variables [1] "f" "E" "rho" "E_dyn" $transforms list() $covar f E rho E_dyn f 154.8334 21554.85 163.3545 19249.99 E 21554.8511 6286487.37 67721.3714 5810449.78 rho 163.3545 67721.37 2277.7861 77431.13 E_dyn 19249.9902 5810449.78 77431.1314 5856671.37 $means f E rho E_dyn 29.81409 10632.15418 444.84522 11606.19187 $loadtype [1] "t" attr(,"class") [1] "simbase_covar" > > # calcuate a simbase with log-transformed f > simbase_covar(dataset, c('f', 'E', 'rho', 'E_dyn'), list(f = scales::log_trans())); Error in simbase_covar(dataset, c("f", "E", "rho", "E_dyn"), list(f = scales::log_trans())) : All transforms must be objects of class "trans" (see scales::trans) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [5s] OK Running 'testthat.R' [4s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [11s] ERROR Error(s) in re-building vignettes: --- re-building 'woodsimulatr_basics.Rmd' using rmarkdown Quitting from lines 431-439 [unnamed-chunk-15] (woodsimulatr_basics.Rmd) Error: processing vignette 'woodsimulatr_basics.Rmd' failed with diagnostics: All transforms must be objects of class "trans" (see scales::trans) --- failed re-building 'woodsimulatr_basics.Rmd' SUMMARY: processing the following file failed: 'woodsimulatr_basics.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs