* using log directory 'd:/Rcompile/CRANpkg/local/2.4/segmented.Rcheck' * using R version 2.4.1 beta (2006-12-07 r40137) * checking for file 'segmented/DESCRIPTION' ... OK * this is package 'segmented' version '0.1-4' * checking package dependencies ... OK * checking if this is a source package ... OK * checking whether package 'segmented' can be installed ... 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 syntax errors ... OK * checking R files for non-ASCII characters ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... 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 cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * creating segmented-Ex.R ... OK * checking examples ... ERROR Running examples in 'segmented-Ex.R' failed. The error most likely occurred in: > ### * slope.segmented > > flush(stderr()); flush(stdout()) > > ### Name: slope.segmented > ### Title: Summary for slopes of segmented relationships > ### Aliases: slope.segmented > ### Keywords: regression > > ### ** Examples > > ## A segmented relationship with three breakpoints > ## > x<-1:100 > y<-2+1.5*pmax(x-35,0)-1.5*pmax(x-70,0)+rnorm(100,0,5) > dati<-data.frame(x=x,y=y) > out.lm<-lm(y~x,data=dati) > out.seg<-segmented(out.lm,Z=x,psi=c(20,80)) The following object(s) are masked _by_ .GlobalEnv : x y Warning: max number of iterations attained > ## the slopes of the three segments.... > slope.segmented(out.seg) Error in if (object$family$family %in% c("poisson", "binomial")) 1 else if (df.r > : argument is of length zero Execution halted