* using log directory 'd:/Rcompile/CRANpkg/local/3.3/agridat.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 'agridat/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'agridat' version '1.13' * checking package namespace information ... OK * checking package dependencies ... NOTE Package suggested but not available for checking: 'gge' * 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 'agridat' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 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 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 sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'agridat-Ex.R' failed The error most likely occurred in: > ### Name: crossa.wheat > ### Title: Multi-environment trial of wheat for 18 genotypes at 25 > ### locations > ### Aliases: crossa.wheat > ### Keywords: datasets > > ### ** Examples > > > data(crossa.wheat) > dat <- crossa.wheat > > # AMMI biplot. Fig 3 of Crossa et al. > if(require(agricolae)){ + m1 <- with(dat, AMMI(E=loc, G=gen, R=1, Y=yield)) + b1 <- m1$biplot[,1:4] + b1$PC1 <- -1 * b1$PC1 # Flip vertical + plot(b1$yield, b1$PC1, cex=0.0, + text(b1$yield, b1$PC1, cex=.5, labels=row.names(b1),col="brown"), + main="crossa.wheat AMMI biplot", xlab="Average yield", ylab="PC1", frame=TRUE) + mn <- mean(b1$yield) + abline(h=0, v=mn, col='wheat') + + g1 <- subset(b1,type=="GEN") + text(g1$yield, g1$PC1, rownames(g1), col="darkgreen", cex=.5) + + e1 <- subset(b1,type=="ENV") + arrows(mn, 0, + 0.95*(e1$yield - mn) + mn, 0.95*e1$PC1, + col= "brown", lwd=1.8,length=0.1) + } Loading required package: agricolae > > # GGB example > library(agridat) > data(crossa.wheat) > dat2 <- crossa.wheat > > # FIXME: The loc grouping is now in the data > > # Define mega-environment groups of locations > dat2$eg <- ifelse(is.element(dat2$loc, + c("KN","NB","PA","BJ","IL","TC", + "JM","PI","AS","ID","SC","SS", + "SJ","MS","MG","MM")), "Grp1", "Grp2") > > library(gge) Error in library(gge) : there is no package called 'gge' Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [1s] OK Running 'testthat.R' [1s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [2s] WARNING Error in re-building vignettes: ... Quitting from lines 44-53 (agridat_examples.Rmd) Error: processing vignette 'agridat_examples.Rmd' failed with diagnostics: there is no package called 'gge' Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR, 1 WARNING, 1 NOTE