Running examples in ‘RMOA-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: predict.MOA_trainedmodel
> ### Title: Predict using a MOA classifier, MOA regressor or MOA recommender
> ###   on a new dataset
> ### Aliases: predict.MOA_trainedmodel
> 
> ### ** Examples
> 
> ## Hoeffdingtree
> hdt <- HoeffdingTree(numericEstimator = "GaussianNumericAttributeClassObserver")
> data(iris)
> ## Make a training set
> iris <- factorise(iris)
> traintest <- list()
> traintest$trainidx <- sample(nrow(iris), size=nrow(iris)/2)
> traintest$trainingset <- iris[traintest$trainidx, ]
> traintest$testset <- iris[-traintest$trainidx, ]
> irisdatastream <- datastream_dataframe(data=traintest$trainingset)
> ## Train the model
> hdtreetrained <- trainMOA(model = hdt, 
+  Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width, 
+  data = irisdatastream)
> 
> ## Score the model on the holdoutset
> scores <- predict(hdtreetrained, 
+    newdata=traintest$testset[, c("Sepal.Length","Sepal.Width","Petal.Length","Petal.Width")], 
+    type="response")
> str(scores)
 chr [1:75] "setosa" "setosa" "setosa" "setosa" "setosa" "setosa" "setosa" ...
> table(scores, traintest$testset$Species)
            
scores       setosa versicolor virginica
  setosa         22          0         0
  versicolor      0         28         2
  virginica       0          2        21
> scores <- predict(hdtreetrained, newdata=traintest$testset, type="votes")
> head(scores)
        setosa   versicolor    virginica
[1,] 2.1116956 5.814254e-24 3.626837e-23
[2,] 1.0692703 3.750871e-24 4.501561e-24
[3,] 0.9214671 1.344403e-22 2.681703e-23
[4,] 2.0708417 7.756787e-25 1.596365e-23
[5,] 2.3213611 8.046016e-23 9.878775e-23
[6,] 0.2389012 1.283804e-23 3.152946e-24
> 
> ## Prediction based on recommendation engine
> require(recommenderlab)
Loading required package: recommenderlab
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘recommenderlab’
> data(MovieLense)
Warning in data(MovieLense) : data set ‘MovieLense’ not found
> x <- getData.frame(MovieLense)
Error in getData.frame(MovieLense) : 
  could not find function "getData.frame"
Execution halted