############################################################################## ############################################################################## ### ### Running command: ### ### F:\biocbuild\bbs-3.17-bioc\R\bin\R.exe CMD check --no-multiarch --install=check:AlpsNMR.install-out.txt --library=F:\biocbuild\bbs-3.17-bioc\R\library --no-vignettes --timings AlpsNMR_4.1.4.tar.gz ### ############################################################################## ############################################################################## * using log directory 'F:/biocbuild/bbs-3.17-bioc-rtools43/meat/AlpsNMR.Rcheck' * using R Under development (unstable) (2022-12-25 r83502 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 10.4.0 GNU Fortran (GCC) 10.4.0 * running under: Windows Server x64 (build 20348) * using session charset: UTF-8 * using option '--no-vignettes' * checking for file 'AlpsNMR/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'AlpsNMR' version '4.1.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 'AlpsNMR' 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 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 ... OK * checking Rd files ... 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 data for ASCII and uncompressed saves ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'AlpsNMR-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: bp_kfold_VIP_analysis > ### Title: K-fold bootstrap and permutation over PLS-VIP > ### Aliases: bp_kfold_VIP_analysis > > ### ** Examples > > # Data analysis for a table of integrated peaks > set.seed(42) > ## Generate an artificial nmr_dataset_peak_table: > ### Generate artificial metadata: > num_samples <- 64 # use an even number in this example > num_peaks <- 10 > metadata <- data.frame( + NMRExperiment = as.character(1:num_samples), + Condition = sample(rep(c("A", "B"), times = num_samples / 2), num_samples) + ) > > ### The matrix with peaks > peak_means <- runif(n = num_peaks, min = 300, max = 600) > peak_sd <- runif(n = num_peaks, min = 30, max = 60) > peak_matrix <- mapply(function(mu, sd) rnorm(num_samples, mu, sd), + mu = peak_means, sd = peak_sd + ) > colnames(peak_matrix) <- paste0("Peak", 1:num_peaks) > rownames(peak_matrix) <- paste0("Sample", 1:num_samples) > > ## Artificial differences depending on the condition: > peak_matrix[metadata$Condition == "A", "Peak2"] <- + peak_matrix[metadata$Condition == "A", "Peak2"] + 70 > > peak_matrix[metadata$Condition == "A", "Peak6"] <- + peak_matrix[metadata$Condition == "A", "Peak6"] - 60 > > ### The nmr_dataset_peak_table > peak_table <- new_nmr_dataset_peak_table( + peak_table = peak_matrix, + metadata = list(external = metadata) + ) > > ## We will use bootstrap and permutation method for VIPs selection > ## in a a k-fold cross validation > bp_results <- bp_kfold_VIP_analysis(peak_table, # Data to be analized + y_column = "Condition", # Label + k = 2, + nbootstrap = 5 + ) Warning in perf.mixo_plsda(model, newdata = x_test) : Values in '$choice.ncomp' will reflect component count with the minimum error rate rather than the best based on a one-way t.test Warning in perf.mixo_plsda(model, newdata = x_test) : Values in '$choice.ncomp' will reflect component count with the minimum error rate rather than the best based on a one-way t.test Warning in perf.mixo_plsda(model, newdata = x_test) : Values in '$choice.ncomp' will reflect component count with the minimum error rate rather than the best based on a one-way t.test Warning in perf.mixo_plsda(model, newdata = x_test) : Values in '$choice.ncomp' will reflect component count with the minimum error rate rather than the best based on a one-way t.test Error: BiocParallel errors 1 remote errors, element index: 2 1 unevaluated and other errors first remote error: Error in ncomp_opt[measure, ijk] <- which(t(rowMeans(mat.error.rate[[measure_i]][[ijk]])) == : number of items to replace is not a multiple of replacement length Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... Running 'testthat.R' OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking running R code from vignettes ... SKIPPED * checking re-building of vignette outputs ... SKIPPED * checking PDF version of manual ... OK * DONE Status: 1 ERROR See 'F:/biocbuild/bbs-3.17-bioc-rtools43/meat/AlpsNMR.Rcheck/00check.log' for details.