* using log directory ‘/data/gannet/ripley/R/packages/tests-Suggests/BayesMassBal.Rcheck’ * using R Under development (unstable) (2024-08-23 r87043) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-14 (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Fedora Linux 36 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘BayesMassBal/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘BayesMassBal’ version ‘1.1.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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘BayesMassBal’ can be installed ... [14s/19s] 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 ... 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 ... [23s/29s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [9s/14s] ERROR Running examples in ‘BayesMassBal-Ex.R’ failed The error most likely occurred in: > ### Name: mainEff > ### Title: Main Effects > ### Aliases: mainEff > > ### ** Examples > > > ## Importing Data, generating BMB object > y <- importObservations(file = system.file("extdata", "twonode_example.csv", + package = "BayesMassBal"), + header = TRUE, csv.params = list(sep = ";")) > > C <- matrix(c(1,-1,0,-1,0,0,1,-1,0,-1), byrow = TRUE, ncol = 5, nrow = 2) > X <- constrainProcess(C = C) > > BMB_example <- BMB(X = X, y = y, cov.structure = "indep", + BTE = c(10,200,1), lml = FALSE, verb=0) > > fn_example <- function(X,ybal){ + cu.frac <- 63.546/183.5 + feed.mass <- ybal$CuFeS2[1] + ybal$gangue[1] + ## Concentrate mass per ton feed + con.mass <- (ybal$CuFeS2[3] + ybal$gangue[3])/feed.mass + ## Copper mass per ton feed + cu.mass <- (ybal$CuFeS2[3]*cu.frac)/feed.mass + gam <- c(-1,-1/feed.mass,cu.mass,-con.mass,-cu.mass,-con.mass) + f <- X %*% gam + return(f) + } > > rangex <- matrix(c(4.00 ,6.25,1125,1875,3880,9080,20,60,96,208,20.0,62.5), + ncol = 6, nrow = 2) > > mE_example <- mainEff(BMB_example, fn = "fn_example",rangex = rangex,xj = 3, N = 15, res = 4) Warning in mainEff(BMB_example, fn = "fn_example", rangex = rangex, xj = 3, : The tgp package is required Error in LHS(res, r.x) : could not find function "LHS" Calls: mainEff Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘spelling.R’ Running ‘testthat.R’ [7s/10s] OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [8s/11s] OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/data/gannet/ripley/R/packages/tests-Suggests/BayesMassBal.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 2:48.30, 113.09 + 13.29