CRAN Package Check Results for Package R2Cuba

Last updated on 2017-05-24 05:50:19.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1-0 6.01 21.00 27.01 NOTE
r-devel-linux-x86_64-debian-gcc 1.1-0 6.03 20.17 26.19 NOTE
r-devel-linux-x86_64-fedora-clang 1.1-0 46.54 NOTE --no-stop-on-test-error
r-devel-linux-x86_64-fedora-gcc 1.1-0 45.08 NOTE --no-stop-on-test-error
r-devel-windows-ix86+x86_64 1.1-0 65.00 76.00 141.00 OK
r-patched-linux-x86_64 1.1-0 5.18 19.97 25.14 NOTE
r-patched-solaris-sparc 1.1-0 299.40 OK
r-patched-solaris-x86 1.1-0 60.90 ERROR --no-stop-on-test-error
r-release-linux-x86_64 1.1-0 5.24 20.97 26.20 NOTE
r-release-windows-ix86+x86_64 1.1-0 35.00 58.00 93.00 OK
r-release-osx-x86_64 1.1-0 OK
r-oldrel-windows-ix86+x86_64 1.1-0 40.00 54.00 94.00 OK
r-oldrel-osx-x86_64 1.1-0 OK

Additional issues

clang-ASAN valgrind

Check Details

Version: 1.1-0
Check: compiled code
Result: NOTE
    File ‘R2Cuba/libs/R2Cuba.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-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.1-0
Flags: --no-stop-on-test-error
Check: compiled code
Result: NOTE
    File ‘R2Cuba/libs/R2Cuba.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

Version: 1.1-0
Flags: --no-stop-on-test-error
Check: examples
Result: ERROR
    Running examples in ‘R2Cuba-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: R2Cuba-package
    > ### Title: Multidimensional Numerical Integration
    > ### Aliases: R2Cuba-package R2Cuba
    > ### Keywords: package
    >
    > ### ** Examples
    >
    > integrand <- function(arg, weight) {
    + x <- arg[1]
    + y <- arg[2]
    + z <- arg[3]
    + ff <- sin(x)*cos(y)*exp(z);
    + return(ff)
    + } # end integrand
    > NDIM <-3
    > NCOMP <- 1
    > vegas(NDIM, NCOMP, integrand, rel.tol=1e-3, abs.tol=1e-12)
    Iteration 1: 1000 integrand evaluations so far
    [1] 0.664916 +- 0.0138647 chisq 0 (0 df)
    
     *** caught segfault ***
    address fd06b6e5, cause 'invalid permissions'
    
    Traceback:
     1: .C("Rvegas", as.integer(ndim), as.integer(ncomp), ffintegrand, new.env(), as.double(lower), as.double(upper), as.double(prdbounds), as.double(rel.tol), as.double(abs.tol), as.integer(flags$mersenne.seed), as.integer(nbatch), as.integer(gridno), as.integer(lesflags), as.integer(min.eval), as.integer(max.eval), as.integer(nstart), as.integer(nincrease), as.character(state.file), neval = as.integer(neval), fail = as.integer(fail), integral = as.double(integral), error = as.double(error), prob = as.double(prob), NAOK = TRUE)
     2: vegas(NDIM, NCOMP, integrand, rel.tol = 0.001, abs.tol = 1e-12)
    An irrecoverable exception occurred. R is aborting now ...
Flavor: r-patched-solaris-x86

Version: 1.1-0
Flags: --no-stop-on-test-error
Check: tests
Result: ERROR
     Running ‘Gtilde2.R’
     Comparing ‘Gtilde2.Rout’ to ‘Gtilde2.Rout.save’ ... OK
     Running ‘MWE.R’ [11s/15s]
     Comparing ‘MWE.Rout’ to ‘MWE.Rout.save’ ... OK
     Running ‘cuhre.R’
     Comparing ‘cuhre.Rout’ to ‘cuhre.Rout.save’ ... OK
     Running ‘divonne.R’
     Comparing ‘divonne.Rout’ to ‘divonne.Rout.save’ ... OK
     Running ‘peak.R’
     Comparing ‘peak.Rout’ to ‘peak.Rout.save’ ... OK
     Running ‘suave.R’
     Running ‘vegas.R’
    Running the tests in ‘tests/suave.R’ failed.
    Complete output:
     > #dyn.load("../src/R2Cuba.so");source("../R/suave.R"); source("../R/commoncuba.R")
     > library("R2Cuba")
     > integrand <- function(arg, weight) {
     + x <- arg[1]
     + y <- arg[2]
     + z <- arg[3]
     + # print( weight)
     + ff <- sin(x)*cos(y)*exp(z);
     + return(ff)
     + } # end integrand
     >
     > NDIM <- 3
     > NCOMP <- 1
     > EPSREL <- 1e-3
     > EPSABS <- 1e-12
     > VERBOSE <- 2
     > LAST <- 1
     >
     > suave(NDIM, NCOMP, integrand,
     + rel.tol=EPSREL, abs.tol=EPSABS,
     + flags=list(verbose=0))
     integral: 0.6647464 (+-0.00061)
     nregions: 6; number of evaluations: 6000; probability: 0.001946077
     > # ----------------------------------------
     > # Essai avec ...
     > integrandp <- function(arg, weight, ...) {
     +
     + x <- arg[1]
     + y <- arg[2]
     + z <- arg[3]
     + # print( weight, ...)
     + ff <- sin(x)*cos(y)*exp(z);
     + return(ff)
     + } # fin integrandp
     > suave(NDIM, NCOMP, integrandp, digits=1,
     + rel.tol=EPSREL, abs.tol=EPSABS,
     + flags=list(verbose=0))
     integral: 0.6647464 (+-0.00061)
     nregions: 6; number of evaluations: 6000; probability: 0.001946077
     > # ----------------------------------------
     >
     > # Essai en d<e9>placant les bornes
     > integrand2 <- function(arg, weight) {
     + x <- arg[1]
     + y <- arg[2]
     + z <- arg[3]
     + ff <- sin(x-3)*cos(y-2)*exp(z-1);
     + return(ff)
     + } # End integrand2
     > suave(NDIM, NCOMP, integrand2, lower=c(3,2,1), upper=c(4,3,2), flags=list(verbose=3))
     Suave input parameters:
     ndim 3
     ncomp 1
     rel.tol 0.001
     abs.tol 4.93038e-32
     smooth 0
     pseudo.random 0
     final 0
     verbose 3
     min.eval 0
     max.eval 50000
     nnew 1000
     flatness 50
    
     Region (3.000000) - (4.000000)
     (2.000000) - (3.000000)
     (1.000000) - (2.000000)
     [1] 0.664916 +- 0.0138647 (1000) chisq 0 (0 df)
     Iteration 1: 1000 integrand evaluations so far
     [1] 0.664916 +- 0.0138647 chisq 0 (0 df)
    
     *** caught segfault ***
     address 10, cause 'memory not mapped'
    
     Traceback:
     1: suave(NDIM, NCOMP, integrand2, lower = c(3, 2, 1), upper = c(4, 3, 2), flags = list(verbose = 3))
     An irrecoverable exception occurred. R is aborting now ...
    Running the tests in ‘tests/vegas.R’ failed.
    Complete output:
     > #dyn.load("../src/R2Cuba.so");source("../R/vegas.R"); source("../R/commoncuba.R")
     > library("R2Cuba")
     >
     > # DEMO EXAMPLES
     > # +++++++++++++++++++++++++++++++
     > integrand <- function(arg, weight) {
     +
     + x <- arg[1]
     + y <- arg[2]
     + z <- arg[3]
     + # print( weight)
     + ff <- sin(x)*cos(y)*exp(z);
     + return(ff)
     + } # fin integrand
     > # ----------------------------------------
     >
     > NDIM <- 3
     > NCOMP <- 1
     > EPSREL <- 1e-3
     > EPSABS <- 1e-12
     > VERBOSE <- 0
     >
     > vegas(NDIM, NCOMP, integrand,
     + rel.tol=EPSREL, abs.tol=EPSABS,
     + flags=list(verbose=VERBOSE))
     integral: 0.6648107 (+-0.00049)
     number of evaluations: 10000; probability: 0.08870493
     > # ----------------------------------------
     > # Essai avec ...
     > integrandp <- function(arg, weight, ...) {
     +
     + x <- arg[1]
     + y <- arg[2]
     + z <- arg[3]
     + # print( weight, ...)
     + ff <- sin(x)*cos(y)*exp(z);
     + return(ff)
     + } # fin integrandp
     > vegas(NDIM, NCOMP, integrandp, digits=1,
     + rel.tol=EPSREL, abs.tol=EPSABS,
     + flags=list(verbose=0))
     integral: 0.6648107 (+-0.00049)
     number of evaluations: 10000; probability: 0.08870493
     > # ----------------------------------------
     > # Essai avec state
     > vegas(NDIM, NCOMP, integrand,
     + rel.tol=1e-50, abs.tol=1e-50,
     + flags=list(verbose=VERBOSE), state.file="toto")
     integral: 0.6647079 (+-0.00015)
     number of evaluations: 52000; probability: 0.0120485
     failed with message 'Dimension out of range'
     >
     > vegas(NDIM, NCOMP, integrand,
     + rel.tol=EPSREL, abs.tol=EPSABS,
     + flags=list(verbose=VERBOSE), state.file="toto")
     integral: 0.6646798 (+-0.00014)
     number of evaluations: 59500; probability: 0.01606268
     >
     > # ----------------------------------------
     > # Essai avec mersenne
     > vegas(NDIM, NCOMP, integrand,
     + rel.tol=EPSREL, abs.tol=EPSABS,
     + flags=list(verbose=0, pseudo.random=1, mersenne.seed=10))
     integral: 0.6640216 (+-0.00065)
     number of evaluations: 13500; probability: 0.07234709
     >
     > # ----------------------------------------
     > # Essai avec nbatch
     > vegas(NDIM, NCOMP, integrand,
     + rel.tol=EPSREL, abs.tol=EPSABS,
     + flags=list(verbose=0, vegas.nbatch=500))
     integral: 0.6648107 (+-0.00049)
     number of evaluations: 10000; probability: 0.08870493
     > # ----------------------------------------
     > # Essai avec gridno
     > #dyn.load("../src/cuba.so");source("../R/vegas.R"); source("../R/commoncuba.R")
     > vegas(NDIM, NCOMP, integrand,
     + rel.tol=EPSREL, abs.tol=EPSABS,
     + flags=list(verbose=3, pseudo.random=1, mersenne.seed=10,
     + vegas.gridno=4))
     Vegas input parameters:
     ndim 3
     ncomp 1
     rel.tol 0.001
     abs.tol 1e-12
     smooth 0
     pseudo.random 1
     final 0
     verbose 3
     min.eval 0
     max.eval 50000
     nstart 1000
     nincrease 500
     vegas.gridno 0
     vegas.state ""
     Iteration 1: 1000 integrand evaluations so far
     [1] 0.666187 +- 0.014126 chisq 0 (0 df)
    
     *** caught segfault ***
     address fd06b6e5, cause 'invalid permissions'
    
     Traceback:
     1: vegas(NDIM, NCOMP, integrand, rel.tol = EPSREL, abs.tol = EPSABS, flags = list(verbose = 3, pseudo.random = 1, mersenne.seed = 10, vegas.gridno = 4))
     An irrecoverable exception occurred. R is aborting now ...
Flavor: r-patched-solaris-x86