- using R version 4.6.1 (2026-06-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-09-29 16:46:36 UTC
- checking for file 'BayesBrainMap/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'BayesBrainMap' 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 'BayesBrainMap' can be installed ... WARNING
Found the following significant warnings:
Note: possible error in 'dual_reg(BOLD, prior$mean, ': argument 4 matches multiple formal arguments
See the install log for details.
Information on the location(s) of code generating the 'Note's can be
obtained by re-running with environment variable R_KEEP_PKG_SOURCE set
to 'yes'.
- checking installed package size ... OK
- checking package 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 ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s] OK
- checking whether the package can be unloaded cleanly ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [2s] 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 ... [15s] NOTE
fit_BBM: warning in dual_reg(BOLD, prior$mean, GSR = FALSE, scale =
FALSE, hpf = 0): partial argument match of 'scale' to 'scale_by'
fit_BBM: possible error in dual_reg(BOLD, prior$mean, GSR = FALSE,
scale = FALSE, hpf = 0): argument 4 matches multiple formal arguments
- 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 examples ... [2s] ERROR
Running examples in 'BayesBrainMap-Ex.R' failed
The error most likely occurred in:
> ### Name: estimate_prior
> ### Title: Estimate prior
> ### Aliases: estimate_prior estimate_prior.cifti estimate_prior.gifti
> ### estimate_prior.nifti
>
> ### ** Examples
>
> nT <- 21
> nV <- 140
> nQ <- 6
> mU <- matrix(rnorm(nV*nQ), nrow=nV)
> mS <- mU %*% diag(seq(nQ, 1)) %*% matrix(rnorm(nQ*nT), nrow=nQ)
> BOLD <- list(B1=mS, B2=mS, B3=mS)
> BOLD <- lapply(BOLD, function(x){x + rnorm(nV*nT, sd=.05)})
> template <- mU
> estimate_prior(BOLD=BOLD, template=mU, FC_nSamp=2000, usePar=FALSE)
Setting `scale_sm_FWHM == 0`.
Data input format: numeric matrix
Image dimensions: 140
Initial in-mask locations: 140
Number of networks: 6
Number of training subjects: 3
Number of covariates: 0
Including Cholesky-based FC prior with 2000 samples (100 random pivots x 20 samples per pivot).
Subject 1 of 3.
Reading in data...
Dual regression... Error in fMRItools::dual_reg(GICA = template, ...) :
argument 3 matches multiple formal arguments
Subject 1 was skipped (error).
Error in fMRItools::dual_reg(GICA = template, ...) :
argument 3 matches multiple formal arguments
Error in estimate_prior(BOLD = BOLD, template = mU, FC_nSamp = 2000, usePar = FALSE) :
Error on first subject. Check data?
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [6s] OK
Running 'run_BayesBrainMap_tests.R' [4s]
Running 'testthat.R' [2s]
- checking PDF version of manual ... [24s] OK
- checking HTML version of manual ... [19s] OK
- DONE
Status: 1 ERROR, 1 WARNING, 1 NOTE