CRAN Package Check Results for Package multigroup

Last updated on 2020-01-27 00:48:09 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.4.4 5.71 33.50 39.21 ERROR
r-devel-linux-x86_64-debian-gcc 0.4.4 4.34 29.51 33.85 NOTE
r-devel-linux-x86_64-fedora-clang 0.4.4 51.86 NOTE
r-devel-linux-x86_64-fedora-gcc 0.4.4 50.31 NOTE
r-devel-windows-ix86+x86_64 0.4.4 13.00 68.00 81.00 NOTE
r-devel-windows-ix86+x86_64-gcc8 0.4.4 11.00 65.00 76.00 NOTE
r-patched-linux-x86_64 0.4.4 4.96 34.55 39.51 NOTE
r-patched-solaris-x86 0.4.4 65.90 NOTE
r-release-linux-x86_64 0.4.4 4.95 34.94 39.89 NOTE
r-release-windows-ix86+x86_64 0.4.4 7.00 46.00 53.00 NOTE
r-release-osx-x86_64 0.4.4 NOTE
r-oldrel-windows-ix86+x86_64 0.4.4 6.00 61.00 67.00 NOTE
r-oldrel-osx-x86_64 0.4.4 NOTE

Check Details

Version: 0.4.4
Check: R code for possible problems
Result: NOTE
    TBWvariance: no visible global function definition for 'model.matrix'
    TBWvariance: no visible global function definition for 'var'
    loadingsplot: no visible global function definition for 'plot'
    loadingsplot: no visible global function definition for 'abline'
    loadingsplot: no visible global function definition for 'arrows'
    loadingsplot: no visible global function definition for 'text'
    loadingsplotXY: no visible global function definition for 'plot'
    loadingsplotXY: no visible global function definition for 'abline'
    loadingsplotXY: no visible global function definition for 'arrows'
    loadingsplotXY: no visible global function definition for 'text'
    mbmgPCA: no visible global function definition for 'rnorm'
    mgPCA: no visible global function definition for 'rnorm'
    mgPLS: no visible global function definition for 'rnorm'
    mgPLS: no visible global function definition for 'cov'
    mgPLS: no visible global function definition for 'coefficients'
    mgPLS: no visible global function definition for 'lm'
    mgPLS: no visible binding for global variable 'var'
    plot.mg : cooll: no visible global function definition for 'hcl'
    plot.mg: no visible global function definition for 'plot'
    plot.mg: no visible global function definition for 'abline'
    plot.mg: no visible global function definition for 'text'
    plot.mg: no visible global function definition for 'dev.new'
    plot.mg: no visible global function definition for 'var'
    scoreplot : cooll: no visible global function definition for 'hcl'
    scoreplot: no visible global function definition for 'var'
    scoreplot: no visible global function definition for 'plot'
    scoreplot: no visible global function definition for 'abline'
    scoreplot: no visible global function definition for 'text'
    summarize: no visible binding for global variable 'var'
    summarize: no visible global function definition for 'aggregate'
    summarize: no visible global function definition for 'model.matrix'
    Undefined global functions or variables:
     abline aggregate arrows coefficients cov dev.new hcl lm model.matrix
     plot rnorm text var
    Consider adding
     importFrom("grDevices", "dev.new", "hcl")
     importFrom("graphics", "abline", "arrows", "plot", "text")
     importFrom("stats", "aggregate", "coefficients", "cov", "lm",
     "model.matrix", "rnorm", "var")
    to your NAMESPACE file.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-devel-windows-ix86+x86_64-gcc8, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 0.4.4
Check: examples
Result: ERROR
    Running examples in 'multigroup-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: mbmgPCA
    > ### Title: multiblock and multigroup Principal Component Analysis
    > ### Aliases: mbmgPCA
    >
    > ### ** Examples
    >
    > data(wine)
    > Select=c(which(wine[,2]=="Env1"),which(wine[,2]=="Env2"),which(wine[,2]=="Reference"))
    > WineData = wine[Select,-c(1,2)]
    > Group <- as.factor(c(rep("Env1",7), rep("Env2",5), rep("Reference",7)))
    > nBlock <- c(5, 3, 10, 9)
    > BlockNames <- c("Olfaction at rest", "Vision", "Olfaction after shaking", "Taste")
    > res = mbmgPCA(Data = WineData, Group, nBlock , ncomp=5)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    multigroup
     --- call from context ---
    transfer_Group(K.Data[[k]], Group)
     --- call from argument ---
    if (class(Data) == "data.frame") {
     Data = as.matrix(Data)
    }
     --- R stacktrace ---
    where 1: transfer_Group(K.Data[[k]], Group)
    where 2: prepare_data(Data, Group, nBlock, Block.name, ScaleGroup, ScaleDataA,
     ScaleDataB, norm)
    where 3: mbmgPCA(Data = WineData, Group, nBlock, ncomp = 5)
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (Data, Group)
    {
     if (class(Data) == "data.frame") {
     Data = as.matrix(Data)
     }
     rownames(Data) = Group
     M = length(levels(Group))
     P = dim(Data)[2]
     n = as.vector(table(Group))
     N = sum(n)
     Data.group = list()
     Xm = split(Data, Group)
     grouprname = split(rownames(Data), Group)
     for (m in 1:M) {
     if (class(Xm[[m]]) != "data.frame") {
     Xm[[m]] = matrix(Xm[[m]], ncol = P)
     }
     colnames(Xm[[m]]) = colnames(Data)
     rownames(Xm[[m]]) = grouprname[[m]]
     }
     Data.group = Xm
     return(Data.group)
    }
    <bytecode: 0x4677028>
    <environment: namespace:multigroup>
     --- function search by body ---
    Function transfer_Group in namespace multigroup has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(Data) == "data.frame") { :
     the condition has length > 1
    Calls: mbmgPCA -> prepare_data -> transfer_Group
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang