* using log directory 'd:/Rcompile/CRANpkg/local/3.3/FRegSigCom.Rcheck' * using R version 3.3.3 (2017-03-06) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'FRegSigCom/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'FRegSigCom' version '0.2.1' * 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 'FRegSigCom' can be installed ... OK * checking installed package size ... OK * checking package 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 * 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 ** checking loading without being on the library search path ... OK ** checking use of S3 registration ... 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 loading without being on the library search path ... OK ** checking use of S3 registration ... 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 line endings in C/C++/Fortran sources/headers ... OK * checking compiled code ... OK * checking examples ... ** running examples for arch 'i386' ... ERROR Running examples in 'FRegSigCom-Ex.R' failed The error most likely occurred in: > ### Name: step.ff.interaction > ### Title: Stepwise variable selection procedure for FOF regression models > ### with two-way interactions > ### Aliases: step.ff.interaction > > ### ** Examples > > > library(FRegSigCom) > data(ocean) > > Y=ocean$Salinity > X=list() > X[[1]]=ocean$Potential.density > X[[2]]=ocean$Temperature > X[[3]]=ocean$Oxygen > X[[4]]=ocean$Chloropigment > n.curves=length(X) > ntot=dim(Y)[1] > ntrain=60 > ntest=ntot-ntrain > X.uncent=X > for(i in 1:n.curves){ + X[[i]]=scale(X.uncent[[i]],center=TRUE, scale=FALSE) + } > lengthX=dim(X[[1]])[2] > lengthY=dim(Y)[2] > t.x=seq(0,1,length=lengthX) > t.y=seq(0,1,length=lengthY) > I.train=sample(1:ntot, ntrain) > X.train=list() > X.test=list() > t.x.all=list() > for(j in 1:n.curves){ + X.train[[j]]=X[[j]][I.train,] + X.test[[j]]=X[[j]][-I.train,] + t.x.all[[j]]=t.x + } > Y.train=Y[I.train, ] > Y.test=Y[-I.train, ] > > > ############################### > #model selection > ############################### > > fit.step=step.ff.interaction(X.train, Y.train, t.x.all, t.y) ################################################################## Step 1 ** CV procedure for calculation of CV error** min_cv_error 1e+020 current_cv_error 0.0349587 ** determine effects added or removed from the current model ** the main effecs after this step= 1 2 4 the interaction effecs after this step is empty! ################################################################## Step 2 ** CV procedure for calculation of CV error** min_cv_error 0.0349587 current_cv_error 0.0301336 ** determine effects added or removed from the current model ** the main effecs after this step= 1 2 4 the interaction effecs after this step= (2,2) ################################################################## Step 3 ** CV procedure for calculation of CV error** min_cv_error 0.0301336 current_cv_error 0.0259739 ** determine effects added or removed from the current model ** the main effecs after this step= 1 2 the interaction effecs after this step= (2,2) ################################################################## Step 4 ** CV procedure for calculation of CV error** min_cv_error 0.0259739 current_cv_error 0.0257188 ** determine effects added or removed from the current model ** the main effecs after this step= 1 2 4 the interaction effecs after this step= (2,2) ################################################################## Step 5 ** CV procedure for calculation of CV error** min_cv_error 0.0257188 current_cv_error 0.0259739 ################################################################## finally selected main effecs= 1 2 finally selected interation effecs= (2,2) ################################################################## **CV procedure for nonadaptive fitting** **(used to determine the adaptive constants)** ** running examples for arch 'x64' ... ERROR Running examples in 'FRegSigCom-Ex.R' failed The error most likely occurred in: > ### Name: step.ff.interaction > ### Title: Stepwise variable selection procedure for FOF regression models > ### with two-way interactions > ### Aliases: step.ff.interaction > > ### ** Examples > > > library(FRegSigCom) > data(ocean) > > Y=ocean$Salinity > X=list() > X[[1]]=ocean$Potential.density > X[[2]]=ocean$Temperature > X[[3]]=ocean$Oxygen > X[[4]]=ocean$Chloropigment > n.curves=length(X) > ntot=dim(Y)[1] > ntrain=60 > ntest=ntot-ntrain > X.uncent=X > for(i in 1:n.curves){ + X[[i]]=scale(X.uncent[[i]],center=TRUE, scale=FALSE) + } > lengthX=dim(X[[1]])[2] > lengthY=dim(Y)[2] > t.x=seq(0,1,length=lengthX) > t.y=seq(0,1,length=lengthY) > I.train=sample(1:ntot, ntrain) > X.train=list() > X.test=list() > t.x.all=list() > for(j in 1:n.curves){ + X.train[[j]]=X[[j]][I.train,] + X.test[[j]]=X[[j]][-I.train,] + t.x.all[[j]]=t.x + } > Y.train=Y[I.train, ] > Y.test=Y[-I.train, ] > > > ############################### > #model selection > ############################### > > fit.step=step.ff.interaction(X.train, Y.train, t.x.all, t.y) ################################################################## Step 1 ** CV procedure for calculation of CV error** min_cv_error 1e+020 current_cv_error 0.0349587 ** determine effects added or removed from the current model ** the main effecs after this step= 1 2 4 the interaction effecs after this step is empty! ################################################################## Step 2 ** CV procedure for calculation of CV error** min_cv_error 0.0349587 current_cv_error 0.0301336 ** determine effects added or removed from the current model ** the main effecs after this step= 1 2 4 the interaction effecs after this step= (2,2) ################################################################## Step 3 ** CV procedure for calculation of CV error** min_cv_error 0.0301336 current_cv_error 0.0259739 ** determine effects added or removed from the current model ** the main effecs after this step= 1 2 the interaction effecs after this step= (2,2) ################################################################## Step 4 ** CV procedure for calculation of CV error** min_cv_error 0.0259739 current_cv_error 0.0257188 ** determine effects added or removed from the current model ** the main effecs after this step= 1 2 4 the interaction effecs after this step= (2,2) ################################################################## Step 5 ** CV procedure for calculation of CV error** min_cv_error 0.0257188 current_cv_error 0.0259739 ################################################################## finally selected main effecs= 1 2 finally selected interation effecs= (2,2) ################################################################## **CV procedure for nonadaptive fitting** **(used to determine the adaptive constants)** **CV procedure for adaptive fitting** > Y.pred=pred.ff.interaction(fit.step, X.test) > error.selected=mean((Y.pred-Y.test)^2) > print(c("error.selected=", error.selected)) [1] "error.selected=" "0.000319805983347938" > coef.obj=getcoef.ff.interaction(fit.step) > str(coef.obj) List of 5 $ intercept : * checking PDF version of manual ... OK * DONE Status: 2 ERRORs