- using R version 2.11.1 Patched (2010-07-29 r52657)
- using session charset: ISO8859-1
- checking for file 'adegenet/DESCRIPTION' ... OK
- this is package 'adegenet' version '1.2-6'
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking whether package 'adegenet' 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 non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- 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 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 ... 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 data for non-ASCII characters ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking for portable use of $BLAS_LIBS ... OK
- checking examples ... ERROR
Running examples in 'adegenet-Ex.R' failed.
The error most likely occurred in:
> ### * haploGen
>
> flush(stderr()); flush(stdout())
>
> ### Name: haploGen
> ### Title: Simulation of genealogies of haplotypes
> ### Aliases: haploGen print.haploGen [.haploGen labels.haploGen
> ### as.POSIXct.haploGen seqTrack.haploGen haploGen-class
> ### as.seqTrack.haploGen plotHaploGen sample.haploGen
> ### coerce,haploGen,graphNEL-method as,haploGen,graphNEL-method
>
> ### ** Examples
>
> if(require(ape)){
+ ## PERFORM SIMULATIONS
+ x <- haploGen(repro=2)
+ x
+
+ ## PLOT SPATIAL SPREAD
+ plotHaploGen(x, bg="white")
+ title("Spatial dispersion of the haplotypes")
+
+ ## PLOT GENEALOGY
+ if(require(graph) & require(Rgraphviz)){
+ g=as(x, "graphNEL")
+ g
+ renderGraph(layoutGraph(g))
+ }
+
+
+ ## USE SEQTRACK RECONSTRUCTION
+ x.recons <- seqTrack(x)
+ mean(x.recons$ances==x$ances, na.rm=TRUE) # proportion of correct reconstructions
+
+ }
Loading required package: ape
Error in vector("list", n) : invalid 'length' argument
Calls: haploGen ... sapply -> lapply -> as.list -> as.list.DNAbin -> vector
Execution halted