- using R version 4.4.3 (2025-02-28 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.3.0
GNU Fortran (GCC) 13.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'ldmppr/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'ldmppr' version '1.0.4'
- 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 'ldmppr' can be installed ... OK
See the install log for details.
- used C++ compiler: 'g++.exe (GCC) 13.3.0'
- checking C++ specification ... OK
Not all R platforms support C++17
- 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 whether startup messages can be suppressed ... [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 ... [10s] 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 ... [0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compiled code ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [22s] ERROR
Running examples in 'ldmppr-Ex.R' failed
The error most likely occurred in:
> ### Name: predict_marks
> ### Title: Predict values from the mark distribution
> ### Aliases: predict_marks
>
> ### ** Examples
>
> # Simulate a realization
> generating_parameters <- c(2, 8, .02, 2.5, 3, 1, 2.5, .2)
> M_n <- matrix(c(10, 14), ncol = 1)
> generated_locs <- simulate_sc(
+ t_min = 0,
+ t_max = 1,
+ sc_params = generating_parameters,
+ anchor_point = M_n,
+ xy_bounds = c(0, 25, 0, 25)
+ )
>
> # Load the raster files
> raster_paths <- list.files(system.file("extdata", package = "ldmppr"),
+ pattern = "\\.tif$", full.names = TRUE
+ )
> rasters <- lapply(raster_paths, terra::rast)
>
> # Scale the rasters
> scaled_raster_list <- scale_rasters(rasters)
>
> # Load the example mark model
> file_path <- system.file("extdata", "example_mark_model.rds", package = "ldmppr")
> example_mark_model <- readRDS(file_path)
>
> # Unbundle the model
> mark_model <- bundle::unbundle(example_mark_model)
Error in xgboost::xgb.load.raw(object, as_booster = TRUE) :
unused argument (as_booster = TRUE)
Calls: <Anonymous> ... <Anonymous> -> unbundle -> unbundle.bundle -> <Anonymous>
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [155s] ERROR
Error(s) in re-building vignettes:
--- re-building 'ldmppr_howto.Rmd' using rmarkdown
Quitting from ldmppr_howto.Rmd:100-130 [train_mark_model]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `xgboost::xgb.load.raw()`:
! unused argument (as_booster = TRUE)
---
Backtrace:
▆
1. ├─bundle::unbundle(example_mark_model$bundled_model)
2. └─bundle:::unbundle.bundle(example_mark_model$bundled_model)
3. └─x$situate(get_object(x))
4. └─bundle::swap_element(object, "fit")
5. ├─bundle::unbundle(component)
6. └─bundle:::unbundle.bundle(component)
7. └─x$situate(get_object(x))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'ldmppr_howto.Rmd' failed with diagnostics:
unused argument (as_booster = TRUE)
--- failed re-building 'ldmppr_howto.Rmd'
SUMMARY: processing the following file failed:
'ldmppr_howto.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [19s] OK
- checking HTML version of manual ... [6s] OK
- DONE
Status: 2 ERRORs