- using R version 3.5.0 RC (2018-04-16 r74618)
- using platform: x86_64-pc-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘rda/DESCRIPTION’ ... OK
- this is package ‘rda’ version ‘1.0.2-2’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘rda’ can be installed ... 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
- 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 ... NOTE
Found the following apparent S3 methods exported but not registered:
plot.rdacv predict.rda
See section ‘Registering S3 methods’ in the ‘Writing R Extensions’
manual.
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [5s/7s] NOTE
Drda1: no visible global function definition for ‘model.matrix’
permute.rows: no visible global function definition for ‘runif’
plot.rdacv: no visible global function definition for ‘par’
rda.plotmat: no visible global function definition for ‘par’
rda.plotmat: no visible global function definition for ‘plot’
rda.plotmat: no visible global function definition for ‘layout’
rda.plotmat: no visible global function definition for ‘image’
rda.plotmat: no visible global function definition for ‘terrain.colors’
rda.plotmat: no visible global function definition for ‘axis’
rda.plotmat: no visible global function definition for ‘points’
rda.plotmat: no visible global function definition for ‘legend’
rda1: no visible global function definition for ‘model.matrix’
Undefined global functions or variables:
axis image layout legend model.matrix par plot points runif
terrain.colors
Consider adding
importFrom("grDevices", "terrain.colors")
importFrom("graphics", "axis", "image", "layout", "legend", "par",
"plot", "points")
importFrom("stats", "model.matrix", "runif")
to your NAMESPACE file.
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 examples ... ERROR
Running examples in ‘rda-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: predict.rda
> ### Title: RDA Prediction Function
> ### Aliases: predict.rda
>
> ### ** Examples
>
> data(colon)
> colon.x <- t(colon.x)
>
> ## divide the data set into a training set and a test
> ## set using a ratio of 2:1.
> tr.index <- sample(1:62, 40)
> fit <- rda(colon.x[, tr.index], colon.y[tr.index])
>
> ## predict the class labels of the test set at alpha=0.1
> ## and delta=0.5
> ynew <- predict(fit, x=colon.x[, tr.index], y=colon.y[tr.index],
+ xnew=colon.x[, -tr.index], alpha=0.1, delta=0.5)
Error in UseMethod("predict") :
no applicable method for 'predict' applied to an object of class "rda"
Calls: predict
Execution halted
- checking PDF version of manual ... OK
- DONE
Status: 1 ERROR, 2 NOTEs