CRAN Package Check Results for Package NCutYX

Last updated on 2019-05-26 11:51:01 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0 26.22 64.37 90.59 OK
r-devel-linux-x86_64-debian-gcc 0.1.0 21.15 48.08 69.23 OK
r-devel-linux-x86_64-fedora-clang 0.1.0 115.84 NOTE
r-devel-linux-x86_64-fedora-gcc 0.1.0 107.32 NOTE
r-devel-windows-ix86+x86_64 0.1.0 50.00 120.00 170.00 OK
r-patched-linux-x86_64 0.1.0 OK
r-patched-solaris-x86 0.1.0 114.40 ERROR
r-release-linux-x86_64 0.1.0 25.63 62.39 88.02 OK
r-release-windows-ix86+x86_64 0.1.0 64.00 154.00 218.00 OK
r-release-osx-x86_64 0.1.0 NOTE
r-oldrel-windows-ix86+x86_64 0.1.0 62.00 143.00 205.00 OK
r-oldrel-osx-x86_64 0.1.0 NOTE

Check Details

Version: 0.1.0
Check: installed package size
Result: NOTE
     installed size is 5.9Mb
     sub-directories of 1Mb or more:
     data 1.5Mb
     libs 3.6Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-release-osx-x86_64, r-oldrel-osx-x86_64

Version: 0.1.0
Check: dependencies in R code
Result: NOTE
    Namespaces in Imports field not imported from:
     ‘MASS’ ‘fields’ ‘mvtnorm’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-osx-x86_64, r-oldrel-osx-x86_64

Version: 0.1.0
Check: examples
Result: ERROR
    Running examples in ‘NCutYX-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: ancut
    > ### Title: Cluster the Columns of Y into K Groups with the Help of External
    > ### Features X.
    > ### Aliases: ancut
    >
    > ### ** Examples
    >
    > #This sets up the initial parameters for the simulation.
    > library(MASS)#for mvrnorm
    > library(fields)
    Loading required package: spam
    Loading required package: dotCall64
    Loading required package: grid
    Spam version 2.2-2 (2019-03-07) is loaded.
    Type 'help( Spam)' or 'demo( spam)' for a short introduction
    and overview of this package.
    Help for individual functions is also obtained by adding the
    suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
    
    Attaching package: ‘spam’
    
    The following objects are masked from ‘package:base’:
    
     backsolve, forwardsolve
    
    Loading required package: maps
    See https://github.com/NCAR/Fields for
     an extensive vignette, other supplements and source code
    > n=30 #Sample size
    > B=50 #Number of iterations in the simulated annealing algorithm.
    > L=10000 #Temperature coefficient.
    > p=50 #Number of columns of Y.
    > q=p #Number of columns of X.
    > h1=0.15
    > h2=0.25
    >
    > S=matrix(0.2,q,q)
    > S[1:(q/2),(q/2+1):q]=0
    > S[(q/2+1):q,1:(q/2)]=0
    > S=S-diag(diag(S))+diag(q)
    >
    > mu=rep(0,q)
    >
    > W0=matrix(1,p,p)
    > W0[1:(p/2),1:(p/2)]=0
    > W0[(p/2+1):p,(p/2+1):p]=0
    > Denum=sum(W0)
    >
    > B2=matrix(0,q,p)
    > for (i in 1:(p/2)){
    + B2[1:(q/2),i]=runif(q/2,h1,h2)
    + in1=sample.int(q/2,6)
    + B2[-in1,i]=0
    + }
    >
    > for (i in (p/2+1):p){
    + B2[(q/2+1):q,i]=runif(q/2,h1,h2)
    + in2=sample(seq(q/2+1,q),6)
    + B2[-in2,i]=0
    + }
    >
    > X=mvrnorm(n, mu, S)
    > Z=X%*%B2
    > Y=Z+matrix(rnorm(n*p,0,1),n,p)
    > #Our method
    > Res=ancut(Y=Y,X=X,B=B,L=L,alpha=0,ncv=3)
    Error in if (J2 > J) { : missing value where TRUE/FALSE needed
    Calls: ancut
    Execution halted
Flavor: r-patched-solaris-x86