CRAN Package Check Results for Package R2Cuba

Last updated on 2018-07-15 08:48:47 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1-0 9.59 33.75 43.34 NOTE
r-devel-linux-x86_64-debian-gcc 1.1-0 7.23 25.93 33.16 NOTE
r-devel-linux-x86_64-fedora-clang 1.1-0 49.98 NOTE
r-devel-linux-x86_64-fedora-gcc 1.1-0 47.40 WARN
r-devel-windows-ix86+x86_64 1.1-0 48.00 68.00 116.00 OK
r-patched-linux-x86_64 1.1-0 9.08 32.31 41.39 NOTE
r-patched-solaris-x86 1.1-0 68.80 ERROR
r-release-linux-x86_64 1.1-0 8.73 32.26 40.99 NOTE
r-release-windows-ix86+x86_64 1.1-0 47.00 87.00 134.00 OK
r-release-osx-x86_64 1.1-0 OK
r-oldrel-windows-ix86+x86_64 1.1-0 35.00 70.00 105.00 OK
r-oldrel-osx-x86_64 1.1-0 OK

Additional issues

clang-ASAN gcc-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-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.1-0
Check: whether package can be installed
Result: WARN
    Found the following significant warnings:
     vegas_Vegas.c:164:5: warning: ‘strncpy’ specified bound 128 equals destination size [-Wstringop-truncation]
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.1-0
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 fd0d6190, cause 'memory not mapped'
    
    Traceback:
     1: 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
Check: tests
Result: ERROR
     Running ‘Gtilde2.R’
     Comparing ‘Gtilde2.Rout’ to ‘Gtilde2.Rout.save’ ... OK
     Running ‘MWE.R’ [13s/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 fd0d6190, cause 'memory not mapped'
    
     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