Package check result: ERROR Check: CRAN incoming feasibility, Result: NOTE Maintainer: ‘Jan Lisec ’ Uses the non-portable package: ‘xcms’ Check: examples, Result: ERROR Running examples in ‘MetabolomicsBasics-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: ReplaceMissingValues > ### Title: ReplaceMissingValues. > ### Aliases: ReplaceMissingValues > > ### ** Examples > > # load raw data and sample description > raw <- MetabolomicsBasics::raw > sam <- MetabolomicsBasics::sam > > idx <- apply(raw, 2, CheckForOutliers, group = sam$GT, n_sd = 5, method = "logical") > sum(idx) # 215 values would be classified as outlier using a five-sigma band [1] 215 > old_vals <- raw[idx] # keep outlier values for comparison > raw_filt <- raw > raw_filt[idx] <- NA > raw_means <- apply(raw, 2, function(x) { + sapply(split(x, sam$GT), mean, na.rm = TRUE)[as.numeric(sam$GT)] + })[idx] > raw_repl <- ReplaceMissingValues(x = raw_filt) Warning in verify_suggested("mixOmics", default = x) : The use of this function requires package mixOmics. Please install. ...replacing missing values in a data matrix of m x n = 120 x 112(=13440)Error in loadNamespace(x) : there is no package called ‘mixOmics’ Calls: ReplaceMissingValues ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted