CRAN Package Check Results for Package clere

Last updated on 2019-12-12 01:52:35 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1.4 108.77 54.07 162.84 ERROR
r-devel-linux-x86_64-debian-gcc 1.1.4 79.31 47.56 126.87 OK
r-devel-linux-x86_64-fedora-clang 1.1.4 234.38 NOTE
r-devel-linux-x86_64-fedora-gcc 1.1.4 235.26 NOTE
r-devel-windows-ix86+x86_64 1.1.4 182.00 146.00 328.00 OK
r-devel-windows-ix86+x86_64-gcc8 1.1.4 194.00 155.00 349.00 OK
r-patched-linux-x86_64 1.1.4 93.07 61.61 154.68 OK
r-patched-solaris-x86 1.1.4 207.00 OK
r-release-linux-x86_64 1.1.4 92.33 61.50 153.83 OK
r-release-windows-ix86+x86_64 1.1.4 172.00 121.00 293.00 OK
r-release-osx-x86_64 1.1.4 NOTE
r-oldrel-windows-ix86+x86_64 1.1.4 141.00 151.00 292.00 OK
r-oldrel-osx-x86_64 1.1.4 NOTE

Check Details

Version: 1.1.4
Check: examples
Result: ERROR
    Running examples in 'clere-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: clere-package
    > ### Title: CLERE methodology for simultaneous variables clustering and
    > ### regression
    > ### Aliases: clere clere-package
    > ### Keywords: clere-package Clere clere package
    >
    > ### ** Examples
    >
    > # Simple example using simulated data
    > # to see how to you the main function clere
    > # library(clere)
    > x <- matrix(rnorm(50 * 100), nrow = 50, ncol = 100)
    > y <- rnorm(50)
    > model <- fitClere(y = y, x = x, g = 2, plotit = FALSE)
    > plot(model)
    > clus <- clusters(model, threshold = NULL)
    > predict(model, newx = x+1)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    clere
     --- call from context ---
    .local(object, ...)
     --- call from argument ---
    if (class(newx) == "matrix") {
     if (ncol(newx) == [email protected]) {
     return([email protected] + rowMeans(newx %*% [email protected],
     na.rm = TRUE))
     }
     else {
     stop(paste0("[Clere:predict] \"newx\" must be a matrix with ",
     [email protected], " columns"), call. = FALSE)
     }
    } else {
     stop("[Clere:predict] \"newx\" is not a matrix", call. = FALSE)
    }
     --- R stacktrace ---
    where 1: .local(object, ...)
    where 2: predict(model, newx = x + 1)
    where 3: predict(model, newx = x + 1)
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (object, newx, ...)
    {
     if (class(newx) == "matrix") {
     if (ncol(newx) == [email protected]) {
     return([email protected] + rowMeans(newx %*% [email protected],
     na.rm = TRUE))
     }
     else {
     stop(paste0("[Clere:predict] \"newx\" must be a matrix with ",
     [email protected], " columns"), call. = FALSE)
     }
     }
     else {
     stop("[Clere:predict] \"newx\" is not a matrix", call. = FALSE)
     }
    }
    <environment: namespace:clere>
     --- function search by body ---
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(newx) == "matrix") { : the condition has length > 1
    Calls: predict -> predict -> .local
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.1.4
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building 'clere.Rnw' using Sweave
    Loading required package: parallel
    Loading required package: lasso2
    R Package to solve regression problems while imposing
     an L1 constraint on the parameters. Based on S-plus Release 2.1
    Copyright (C) 1998, 1999
    Justin Lokhorst <[email protected]>
    Berwin A. Turlach <[email protected]>
    Bill Venables <[email protected]>
    
    Copyright (C) 2002
    Martin Maechler <[email protected]>
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    clere
     --- call from context ---
    .local(object, ...)
     --- call from argument ---
    if (class(newx) == "matrix") {
     if (ncol(newx) == [email protected]) {
     return([email protected] + rowMeans(newx %*% [email protected],
     na.rm = TRUE))
     }
     else {
     stop(paste0("[Clere:predict] \"newx\" must be a matrix with ",
     [email protected], " columns"), call. = FALSE)
     }
    } else {
     stop("[Clere:predict] \"newx\" is not a matrix", call. = FALSE)
    }
     --- R stacktrace ---
    where 1: .local(object, ...)
    where 2: predict(mod, xv)
    where 3: predict(mod, xv)
    where 4: mean((yv - predict(mod, xv))^2)
    where 5: eval(expr, .GlobalEnv)
    where 6: eval(expr, .GlobalEnv)
    where 7: withVisible(eval(expr, .GlobalEnv))
    where 8: doTryCatch(return(expr), name, parentenv, handler)
    where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    where 10: tryCatchList(expr, classes, parentenv, handlers)
    where 11: tryCatch(expr, error = function(e) {
     call <- conditionCall(e)
     if (!is.null(call)) {
     if (identical(call[[1L]], quote(doTryCatch)))
     call <- sys.call(-4L)
     dcall <- deparse(call)[1L]
     prefix <- paste("Error in", dcall, ": ")
     LONG <- 75L
     sm <- strsplit(conditionMessage(e), "\n")[[1L]]
     w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
     if (is.na(w))
     w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
     type = "b")
     if (w > LONG)
     prefix <- paste0(prefix, "\n ")
     }
     else prefix <- "Error : "
     msg <- paste0(prefix, conditionMessage(e), "\n")
     .Internal(seterrmessage(msg[1L]))
     if (!silent && isTRUE(getOption("show.error.messages"))) {
     cat(msg, file = outFile)
     .Internal(printDeferredWarnings())
     }
     invisible(structure(msg, class = "try-error", condition = e))
    })
    where 12: try(withVisible(eval(expr, .GlobalEnv)), silent = TRUE)
    where 13: evalFunc(ce, options)
    where 14: tryCatchList(expr, classes, parentenv, handlers)
    where 15: tryCatch(evalFunc(ce, options), finally = {
     cat("\n")
     sink()
    })
    where 16: driver$runcode(drobj, chunk, chunkopts)
    where 17: utils::Sweave(...)
    where 18: engine$weave(file, quiet = quiet, encoding = enc)
    where 19: doTryCatch(return(expr), name, parentenv, handler)
    where 20: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    where 21: tryCatchList(expr, classes, parentenv, handlers)
    where 22: tryCatch({
     engine$weave(file, quiet = quiet, encoding = enc)
     setwd(startdir)
     output <- find_vignette_product(name, by = "weave", engine = engine)
     if (!have.makefile && vignette_is_tex(output)) {
     texi2pdf(file = output, clean = FALSE, quiet = quiet)
     output <- find_vignette_product(name, by = "texi2pdf",
     engine = engine)
     }
     outputs <- c(outputs, output)
    }, error = function(e) {
     thisOK <<- FALSE
     fails <<- c(fails, file)
     message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s",
     file, conditionMessage(e)))
    })
    where 23: tools:::buildVignettes(dir = "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/clere.Rcheck/vign_test/clere",
     ser_elibs = "/tmp/Rtmp0BzSVn/file39987b5bc9c9.rds")
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (object, newx, ...)
    {
     if (class(newx) == "matrix") {
     if (ncol(newx) == [email protected]) {
     return([email protected] + rowMeans(newx %*% [email protected],
     na.rm = TRUE))
     }
     else {
     stop(paste0("[Clere:predict] \"newx\" must be a matrix with ",
     [email protected], " columns"), call. = FALSE)
     }
     }
     else {
     stop("[Clere:predict] \"newx\" is not a matrix", call. = FALSE)
     }
    }
    <environment: namespace:clere>
     --- function search by body ---
     ----------- END OF FAILURE REPORT --------------
    
    Error: processing vignette 'clere.Rnw' failed with diagnostics:
     chunk 9
    Error in if (class(newx) == "matrix") { : the condition has length > 1
    
    --- failed re-building 'clere.Rnw'
    
    SUMMARY: processing the following file failed:
     'clere.Rnw'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.1.4
Check: installed package size
Result: NOTE
     installed size is 21.7Mb
     sub-directories of 1Mb or more:
     libs 20.8Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-release-osx-x86_64, r-oldrel-osx-x86_64

Version: 1.1.4
Check: compiled code
Result: NOTE
    File ‘clere/libs/clere.so’:
     Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’
    
    It is good practice to register native routines and to disable symbol
    search.
    
    See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc