CRAN Package Check Results for Package rstan

Last updated on 2019-12-06 00:50:11 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.19.2 712.09 731.29 1443.38 ERROR
r-devel-linux-x86_64-debian-gcc 2.19.2 645.19 619.93 1265.12 NOTE
r-devel-linux-x86_64-fedora-clang 2.19.2 1909.99 NOTE
r-devel-linux-x86_64-fedora-gcc 2.19.2 1432.06 NOTE
r-devel-windows-ix86+x86_64 2.19.2 1257.00 856.00 2113.00 NOTE
r-devel-windows-ix86+x86_64-gcc8 2.19.2 1318.00 907.00 2225.00 NOTE
r-patched-linux-x86_64 2.19.2 680.59 706.74 1387.33 NOTE
r-patched-solaris-x86 2.19.2 1640.60 NOTE
r-release-linux-x86_64 2.19.2 679.46 710.79 1390.25 NOTE
r-release-windows-ix86+x86_64 2.19.2 1330.00 663.00 1993.00 NOTE
r-release-osx-x86_64 2.19.2 NOTE
r-oldrel-windows-ix86+x86_64 2.19.2 1260.00 734.00 1994.00 NOTE
r-oldrel-osx-x86_64 2.19.2 NOTE

Check Details

Version: 2.19.2
Check: for GNU extensions in Makefiles
Result: NOTE
    GNU make is a SystemRequirements.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-devel-windows-ix86+x86_64-gcc8, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 2.19.2
Check: examples
Result: ERROR
    Running examples in 'rstan-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: extract_sparse_parts
    > ### Title: Extract the compressed representation of a sparse matrix
    > ### Aliases: extract_sparse_parts
    >
    > ### ** Examples
    >
    > A <- rbind(
    + c(19L, 27L, 0L, 0L),
    + c( 0L, 0L, 0L, 0L),
    + c( 0L, 0L, 0L, 52L),
    + c(81L, 0L, 95L, 33L)
    + )
    > str(extract_sparse_parts(A))
    Loading required namespace: Matrix
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    rstan
     --- call from context ---
    extract_sparse_parts(A)
     --- call from argument ---
    if (class(A) == "matrix") A <- Matrix::Matrix(A, sparse = TRUE)
     --- R stacktrace ---
    where 1: extract_sparse_parts(A)
    where 2: str(extract_sparse_parts(A))
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (A)
    {
     if (!requireNamespace("Matrix"))
     stop("You have to install the Matrix package to call 'extract_sparse_parts'")
     if (class(A) == "matrix")
     A <- Matrix::Matrix(A, sparse = TRUE)
     A <- Matrix::t(A)
     A <- as(A, "dgCMatrix")
     return(.Call(extract_sparse_components, A))
    }
    <bytecode: 0x4db8440>
    <environment: namespace:rstan>
     --- function search by body ---
    Function extract_sparse_parts in namespace rstan has this body.
     ----------- END OF FAILURE REPORT --------------
    Fatal error: the condition has length > 1
Flavor: r-devel-linux-x86_64-debian-clang

Version: 2.19.2
Check: tests
Result: ERROR
     Running 'doRUnit.R' [5s/7s]
    Running the tests in 'tests/doRUnit.R' failed.
    Complete output:
     >
     > ## unit tests will not be done if RUnit is not available
     > if(!require("RUnit", quietly = TRUE)) {
     + warning("cannot run unit tests -- package RUnit is not available")
     + q('no');
     + }
     >
     >
     > pkg <- "rstan"
     >
     > path <- system.file(package = pkg, "unitTests")
     > source(file.path(path, "runRunitTests.R"), echo = TRUE)
    
     > pkg <- "rstan"
    
     > if (!require("RUnit", quietly = TRUE)) {
     + stop("Package Runit is not found.")
     + }
    
     > if (exists("path")) {
     + reportfile <- file.path(getwd(), "report")
     + } else {
     + path <- getwd()
     + reportfile <- file.path(path, "report" .... [TRUNCATED]
    
     > stopifnot(file.exists(path), file.info(path.expand(path))$isdir)
    
     > library(package = pkg, character.only = TRUE)
     Loading required package: StanHeaders
     Loading required package: ggplot2
     rstan (Version 2.19.2, GitRev: 2e1f913d3ca3)
     For execution on a local, multicore CPU with excess RAM we recommend calling
     options(mc.cores = parallel::detectCores()).
     To avoid recompilation of unchanged Stan programs, we recommend calling
     rstan_options(auto_write = TRUE)
    
     > rstantest <- defineTestSuite("rstantest", dirs = path,
     + testFileRegexp = "^runit.+\\.R", testFuncRegexp = "^test_+",
     + rngKind = "Marsagl ..." ... [TRUNCATED]
    
     > testsres <- runTestSuite(rstantest)
    
    
     Executing test function test_ess2 ... Read 34 items
     Read 34 items
     done successfully.
    
    
    
     Executing test function test_essnrhat ... done successfully.
    
    
    
     Executing test function test_seq_perm ... done successfully.
    
    
    
     Executing test function test_extract_sparse_parts ... Loading required namespace: Matrix
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     rstan
     --- call from context ---
     rstan::extract_sparse_parts(A)
     --- call from argument ---
     if (class(A) == "matrix") A <- Matrix::Matrix(A, sparse = TRUE)
     --- R stacktrace ---
     where 1: rstan::extract_sparse_parts(A)
     where 2: func()
     where 3: system.time(func(), gcFirst = RUnitEnv$.gcBeforeTest)
     where 4: doTryCatch(return(expr), name, parentenv, handler)
     where 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 6: tryCatchList(expr, classes, parentenv, handlers)
     where 7: 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 8: try(system.time(func(), gcFirst = RUnitEnv$.gcBeforeTest))
     where 9: .executeTestCase(funcName, envir = sandbox, setUpFunc = .setUp,
     tearDownFunc = .tearDown)
     where 10: .sourceTestFile(testFile, testSuite$testFuncRegexp)
     where 11: runTestSuite(rstantest)
     where 12: eval(ei, envir)
     where 13: eval(ei, envir)
     where 14: withVisible(eval(ei, envir))
     where 15: source(file.path(path, "runRunitTests.R"), echo = TRUE)
    
     --- value of length: 2 type: logical ---
     [1] TRUE FALSE
     --- function from context ---
     function (A)
     {
     if (!requireNamespace("Matrix"))
     stop("You have to install the Matrix package to call 'extract_sparse_parts'")
     if (class(A) == "matrix")
     A <- Matrix::Matrix(A, sparse = TRUE)
     A <- Matrix::t(A)
     A <- as(A, "dgCMatrix")
     return(.Call(extract_sparse_components, A))
     }
     <bytecode: 0x5591130>
     <environment: namespace:rstan>
     --- function search by body ---
     Function extract_sparse_parts in namespace rstan has this body.
     ----------- END OF FAILURE REPORT --------------
     Fatal error: the condition has length > 1
Flavor: r-devel-linux-x86_64-debian-clang

Version: 2.19.2
Check: installed package size
Result: NOTE
     installed size is 172.6Mb
     sub-directories of 1Mb or more:
     libs 169.8Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-devel-windows-ix86+x86_64-gcc8, r-patched-solaris-x86, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64