CRAN Package Check Results for Package aglm

Last updated on 2022-01-25 22:56:49 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.4.0 7.94 158.40 166.34 OK
r-devel-linux-x86_64-debian-gcc 0.4.0 8.59 126.42 135.01 OK
r-devel-linux-x86_64-fedora-clang 0.4.0 195.44 NOTE
r-devel-linux-x86_64-fedora-gcc 0.4.0 193.45 NOTE
r-devel-windows-x86_64-new-UL 0.4.0 29.00 180.00 209.00 OK
r-devel-windows-x86_64-new-TK 0.4.0 ERROR
r-patched-linux-x86_64 0.4.0 11.51 150.74 162.25 OK
r-release-linux-x86_64 0.4.0 8.81 147.70 156.51 OK
r-release-macos-arm64 0.4.0 NOTE
r-release-macos-x86_64 0.4.0 NOTE
r-release-windows-ix86+x86_64 0.4.0 23.00 178.00 201.00 OK
r-oldrel-macos-x86_64 0.4.0 NOTE
r-oldrel-windows-ix86+x86_64 0.4.0 24.00 175.00 199.00 OK

Check Details

Version: 0.4.0
Check: dependencies in R code
Result: NOTE
    Namespace in Imports field not imported from: ‘mathjaxr’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64-new-TK, r-release-macos-arm64, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 0.4.0
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: 'faraway'
Flavor: r-devel-windows-x86_64-new-TK

Version: 0.4.0
Check: examples
Result: ERROR
    Running examples in 'aglm-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: aglm
    > ### Title: Fit an AGLM model with no cross-validation
    > ### Aliases: aglm
    >
    > ### ** Examples
    >
    >
    > #################### Gaussian case ####################
    >
    > library(MASS) # For Boston
    > library(aglm)
    >
    > ## Read data
    > xy <- Boston # xy is a data.frame to be processed.
    > colnames(xy)[ncol(xy)] <- "y" # Let medv be the objective variable, y.
    >
    > ## Split data into train and test
    > n <- nrow(xy) # Sample size.
    > set.seed(2018) # For reproducibility.
    > test.id <- sample(n, round(n/4)) # ID numbders for test data.
    > test <- xy[test.id,] # test is the data.frame for testing.
    > train <- xy[-test.id,] # train is the data.frame for training.
    > x <- train[-ncol(xy)]
    > y <- train$y
    > newx <- test[-ncol(xy)]
    > y_true <- test$y
    >
    > ## Fit the model
    > model <- aglm(x, y) # alpha=1 (the default value)
    >
    > ## Predict for various alpha and lambda
    > lambda <- 0.1
    > y_pred <- predict(model, newx=newx, s=lambda)
    > rmse <- sqrt(mean((y_true - y_pred)^2))
    > cat(sprintf("RMSE for lambda=%.2f: %.5f \n\n", lambda, rmse))
    RMSE for lambda=0.10: 4.73502
    
    >
    > lambda <- 1.0
    > y_pred <- predict(model, newx=newx, s=lambda)
    > rmse <- sqrt(mean((y_true - y_pred)^2))
    > cat(sprintf("RMSE for lambda=%.2f: %.5f \n\n", lambda, rmse))
    RMSE for lambda=1.00: 5.70778
    
    >
    > alpha <- 0
    > model <- aglm(x, y, alpha=alpha)
    >
    > lambda <- 0.1
    > y_pred <- predict(model, newx=newx, s=lambda)
    > rmse <- sqrt(mean((y_true - y_pred)^2))
    > cat(sprintf("RMSE for alpha=%.2f and lambda=%.2f: %.5f \n\n", alpha, lambda, rmse))
    RMSE for alpha=0.00 and lambda=0.10: 5.15538
    
    >
    > #################### Binomial case ####################
    >
    > library(aglm)
    > library(faraway)
    Error in library(faraway) : there is no package called 'faraway'
    Execution halted
Flavor: r-devel-windows-x86_64-new-TK