- using R Under development (unstable) (2025-09-03 r88788 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'BKTR/DESCRIPTION' ... OK
- this is package 'BKTR' version '0.2.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 'BKTR' 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 ... [4s] 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 ... [4s] OK
- checking whether the namespace can be unloaded cleanly ... [4s] OK
- checking loading without being on the library search path ... [4s] 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 ... [9s] OK
- checking Rd files ... [2s] 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 sizes of PDF files under 'inst/doc' ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [4s] ERROR
Running examples in 'BKTR-Ex.R' failed
The error most likely occurred in:
> ### Name: BKTRRegressor
> ### Title: R6 class encapsulating the BKTR regression elements
> ### Aliases: BKTRRegressor
>
> ### ** Examples
>
> ## Don't show:
> if (torch::torch_is_installed()) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ # Create a BIXI data collection instance containing multiple dataframes
+ bixi_data <- BixiData$new(is_light = TRUE) # Use light version for example
+
+ # Create a BKTRRegressor instance
+ bktr_regressor <- BKTRRegressor$new(
+ formula = nb_departure ~ 1 + mean_temp_c + area_park,
+ data_df <- bixi_data$data_df,
+ spatial_positions_df = bixi_data$spatial_positions_df,
+ temporal_positions_df = bixi_data$temporal_positions_df,
+ burn_in_iter = 5, sampling_iter = 10) # For example only (too few iterations)
+
+ # Launch the MCMC sampling
+ bktr_regressor$mcmc_sampling()
+
+ # Get the summary of the bktr regressor
+ summary(bktr_regressor)
+
+ # Get estimated response variables for missing values
+ bktr_regressor$imputed_y_estimates
+
+ # Get the list of sampled betas for given spatial, temporal and feature labels
+ bktr_regressor$get_iterations_betas(
+ spatial_label = bixi_data$spatial_positions_df$location[1],
+ temporal_label = bixi_data$temporal_positions_df$time[1],
+ feature_label = 'mean_temp_c')
+
+ # Get the summary of all betas for the 'mean_temp_c' feature
+ bktr_regressor$get_beta_summary_df(feature_labels = 'mean_temp_c')
+ ## Don't show:
+ }) # examplesIf
> bixi_data <- BixiData$new(is_light = TRUE)
> bktr_regressor <- BKTRRegressor$new(formula = nb_departure ~ 1 + mean_temp_c +
+ area_park, data_df <- bixi_data$data_df, spatial_positions_df = bixi_data$spatial_positions_df,
+ temporal_positions_df = bixi_data$temporal_positions_df, burn_in_iter = 5, sampling_iter = 10)
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [1s] OK
- checking PDF version of manual ... [22s] OK
- checking HTML version of manual ... [8s] OK
- DONE
Status: 1 ERROR