* using log directory 'd:/Rcompile/CRANpkg/local/2.14/flare.Rcheck' * using R version 2.14.2 (2012-02-29) * using platform: i386-pc-mingw32 (32-bit) * using session charset: ISO8859-1 * checking for file 'flare/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'flare' version '0.9.7' * 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 whether package 'flare' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for portable file names ... OK * checking DESCRIPTION meta-information ... OK * checking top-level 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 * loading checks for arch 'i386' ** 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 * loading checks for arch 'x64' ** 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 for unstated 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 ... NOTE flare.slim: no visible global function definition for '.colMeans' * 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 line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking compiled code ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking examples ... ** running examples for arch 'i386' ... ERROR Running examples in 'flare-Ex.R' failed The error most likely occurred in: > ### Name: flare.slim > ### Title: Sparse Linear Regression using Non-smooth Loss Functions and L1 > ### Regularization > ### Aliases: flare.slim > > ### ** Examples > > ## generate data > set.seed(1) > n=100 > d=200 > d1=10 > rho0=0.3 > lambda=c(3:1)*sqrt(log(d)/n) > Sigma=matrix(0,nrow=d,ncol=d) > Sigma[1:d1,1:d1]=rho0 > diag(Sigma)=1 > mu=rep(0,d) > X=mvrnorm(n=n,mu=mu,Sigma=Sigma) > eps=rt(n=n,df=n-1) > beta=c(rep(sqrt(1/3),3),rep(0,d-3)) > Y=X%*%beta+eps > > ## Regression with "dantzig" and general "lq" respectively > out1=flare.slim(X=X,Y=Y,lambda=lambda,method = "dantzig") Sparse Linear Regression with L1 Regularization. Error in matrix(rep(.colMeans(X, n, d), n), nrow = n, ncol = d, byrow = T) : could not find function ".colMeans" Calls: flare.slim -> matrix Execution halted