CRAN Package Check Results for Maintainer ‘Dirk Eddelbuettel <edd at debian.org>’

Last updated on 2017-03-23 19:50:40.

Package ERROR WARN NOTE OK
anytime 2 1 10
AsioHeaders 13
BH 9 4
digest 1 12
drat 13
gaussfacts 13
gcbd 2 4 4
gettz 5 8
gunsales 13
inline 13
littler 8
nanotime 1 12
pkgKitten 13
random 13
RApiSerialize 13
Rblpapi 9 2
Rcpp 13
RcppAnnoy 5 8
RcppAPT 1 2 2
RcppArmadillo 10 3
RcppBDT 6 7
RcppCCTZ 3 5 5
RcppClassic 1 5 7
RcppClassicExamples 13
RcppCNPy 5 8
RcppDE 5 8
RcppEigen 7 6
RcppExamples 5 8
RcppGetconf 2 5 3
RcppGSL 3 10
RcppRedis 1 10
RcppSMC 13
RcppStreams 6 7
RcppTOML 1 5 6
RcppXts 13
RcppZiggurat 7 6
RDieHarder 2 6
rfoaas 13
RInside 13
rmsfact 13
RProtoBuf 6 5
RPushbullet 13
RQuantLib 1 2 3 2
RVowpalWabbit 1 3 4
sanitizers 5 8
tint 3 10
x13binary 2 11

Package anytime

Current CRAN status: ERROR: 2, NOTE: 1, OK: 10

Version: 0.2.1
Check: compiled code
Result: NOTE
    File ‘anytime/libs/anytime.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.
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.2.2
Check: tests
Result: ERROR
     Running ‘allFormats.R’
    Running the tests in ‘tests/allFormats.R’ failed.
    Complete output:
     > options(digits.secs=6, width=70)
     >
     > library(anytime)
     >
     > ref <- format(as.POSIXct(c("2016-09-01 10:11:12", "2016-09-01 10:11:12.345678"),
     + "%Y-%m-%d %H:%M:%0S"))
     Warning messages:
     1: In strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
     unknown timezone '%Y-%m-%d %H:%M:%0S'
     2: In as.POSIXct.POSIXlt(x) : unknown timezone '%Y-%m-%d %H:%M:%0S'
     3: In strptime(x, f, tz = tz) : unknown timezone '%Y-%m-%d %H:%M:%0S'
     4: In as.POSIXct.POSIXlt(as.POSIXlt(x, tz, ...), tz, ...) :
     unknown timezone '%Y-%m-%d %H:%M:%0S'
     5: In as.POSIXlt.POSIXct(x, tz) : unknown timezone '%Y-%m-%d %H:%M:%0S'
     >
     >
     > stopifnot(ref == format(anytime(c("2016-09-01 10:11:12", "2016-09-01 10:11:12.345678"))))
     Error: ref == format(anytime(c("2016-09-01 10:11:12", "2016-09-01 10:11:12.345678"))) are not all TRUE
     Execution halted
Flavors: r-patched-solaris-sparc, r-patched-solaris-x86

Package AsioHeaders

Current CRAN status: OK: 13

Package BH

Current CRAN status: NOTE: 9, OK: 4

Version: 1.62.0-1
Flags: --no-stop-on-test-error
Check: installed package size
Result: NOTE
     installed size is 126.8Mb
     sub-directories of 1Mb or more:
     include 126.8Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-macos-x86_64-clang

Version: 1.62.0-1
Check: installed package size
Result: NOTE
     installed size is 125.9Mb
     sub-directories of 1Mb or more:
     include 125.0Mb
Flavors: r-devel-windows-ix86+x86_64, r-patched-solaris-sparc, r-patched-solaris-x86, r-release-osx-x86_64-mavericks, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Package digest

Current CRAN status: WARN: 1, OK: 12

Version: 0.6.12
Check: whether package can be installed
Result: WARN
    Found the following significant warnings:
     digest.c:181:9: warning: ISO C does not support the 'I64' ms_printf length modifier [-Wformat=]
     digest.c:396:9: warning: ISO C does not support the 'I64' ms_printf length modifier [-Wformat=]
Flavor: r-devel-windows-ix86+x86_64

Package drat

Current CRAN status: OK: 13

Package gaussfacts

Current CRAN status: OK: 13

Package gcbd

Current CRAN status: WARN: 2, NOTE: 4, OK: 4

Version: 0.2.6
Flags: --no-vignettes --no-stop-on-test-error
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘gputools’
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-macos-x86_64-clang

Version: 0.2.6
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘gputools’
Flavors: r-patched-solaris-sparc, r-patched-solaris-x86, r-release-osx-x86_64-mavericks

Version: 0.2.6
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    Warning in packageDescription("gputools") :
     no package 'gputools' was found
    Error: processing vignette 'gcbd.Rnw' failed with diagnostics:
    at gcbd.Rnw:860, subscript out of bounds
    Execution halted
Flavors: r-patched-solaris-sparc, r-patched-solaris-x86

Version: 0.2.6
Check: re-building of vignette outputs
Result: NOTE
    Error in re-building vignettes:
     ...
    Warning in packageDescription("gputools") :
     no package 'gputools' was found
    Error: processing vignette 'gcbd.Rnw' failed with diagnostics:
    at gcbd.Rnw:860, subscript out of bounds
    Execution halted
Flavor: r-release-osx-x86_64-mavericks

Package gettz

Current CRAN status: NOTE: 5, OK: 8

Version: 0.0.3
Check: compiled code
Result: NOTE
    File ‘gettz/libs/gettz.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

Version: 0.0.3
Flags: --no-stop-on-test-error
Check: compiled code
Result: NOTE
    File ‘gettz/libs/gettz.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, r-devel-macos-x86_64-clang

Package gunsales

Current CRAN status: OK: 13

Package inline

Current CRAN status: OK: 13

Package littler

Current CRAN status: OK: 8

Package nanotime

Current CRAN status: ERROR: 1, OK: 12

Version: 0.1.1
Check: package dependencies
Result: ERROR
    Package required but not available: 'RcppCCTZ'
    
    See section 'The DESCRIPTION file' in the 'Writing R Extensions'
    manual.
Flavor: r-oldrel-windows-ix86+x86_64

Package pkgKitten

Current CRAN status: OK: 13

Package random

Current CRAN status: OK: 13

Package RApiSerialize

Current CRAN status: OK: 13

Package Rblpapi

Current CRAN status: NOTE: 9, OK: 2

Version: 0.3.5
Check: compiled code
Result: NOTE
    File ‘Rblpapi/libs/Rblpapi.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

Version: 0.3.5
Flags: --no-stop-on-test-error
Check: installed package size
Result: NOTE
     installed size is 13.5Mb
     sub-directories of 1Mb or more:
     blp 7.1Mb
     libs 5.5Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-macos-x86_64-clang

Version: 0.3.5
Flags: --no-stop-on-test-error
Check: compiled code
Result: NOTE
    File ‘Rblpapi/libs/Rblpapi.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, r-devel-macos-x86_64-clang

Version: 0.3.5
Check: installed package size
Result: NOTE
     installed size is 10.6Mb
     sub-directories of 1Mb or more:
     libs 9.7Mb
Flavors: r-devel-windows-ix86+x86_64, r-release-osx-x86_64-mavericks, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Package Rcpp

Current CRAN status: NOTE: 13

Memtest notes: clang-UBSAN

Version: 0.12.10
Check: foreign function calls
Result: NOTE
    Registration problem:
     symbol ‘symbol’ in the local frame:
     .Call(symbol)
    See chapter ‘System and foreign language interfaces’ 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: 0.12.10
Flags: --no-stop-on-test-error
Check: installed package size
Result: NOTE
     installed size is 13.2Mb
     sub-directories of 1Mb or more:
     doc 1.7Mb
     include 6.3Mb
     libs 3.5Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-macos-x86_64-clang

Version: 0.12.10
Flags: --no-stop-on-test-error
Check: foreign function calls
Result: NOTE
    Registration problem:
     symbol ‘symbol’ in the local frame:
     .Call(symbol)
    See chapter ‘System and foreign language interfaces’ in the ‘Writing R
    Extensions’ manual.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-macos-x86_64-clang

Version: 0.12.10
Check: installed package size
Result: NOTE
     installed size is 11.4Mb
     sub-directories of 1Mb or more:
     doc 1.7Mb
     include 6.3Mb
     libs 2.0Mb
Flavors: r-devel-windows-ix86+x86_64, r-patched-solaris-sparc, r-patched-solaris-x86, r-release-osx-x86_64-mavericks, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Version: 0.12.10
Check: re-building of vignette outputs
Result: NOTE
    Error in re-building vignettes:
     ...
    Warning in grepl("(Rerun to get|biblatex.*\\(re\\)run)", readLines(log, :
     input string 379 is invalid in this locale
    Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, :
     Running 'texi2dvi' on 'Rcpp-introduction.tex' failed.
    LaTeX errors:
    ! LaTeX Error: Missing \begin{document}.
    
    See the LaTeX manual or LaTeX Companion for explanation.
    Type H <return> for immediate help.
     ...
    ! Extra }, or forgotten \endgroup.
    l.21 ...^E}۽c<86>HgI^^[]x<bb><f7>ώ<d6>a<8b>Mӄ<87><89><ac><e3><c2><c2>^^Bclnn^^N}
     p<dc><c3>^^X<83><92>@g<ce>9<ec>><bc>-<c3>0|>_<ab><d5>""<c6>...
    I've deleted a group-closing symbol because it seems to be
    spurious, as in `$x}$'. But perhaps the } is legitimate and
    ! Missing $ inserted.
    <inserted text>
     $
    l.22 ...<ba><ae><b7>Z-8=<ed>v۲,8^^@^^Hm,<cb>"<a2><95><95>^^U<9f><cf><d7>n<b7><8b><c5>b8^^\^
     XX "EQЧR<a9><e8><ba>.<cb>2F&<a2>b<b1>^^X^^H...
    ! Please use \mathaccent for accents in math mode.
    \add@accent ...@spacefactor \spacefactor }\accent
    
    Calls: buildVignettes -> texi2pdf -> texi2dvi
    Execution halted
Flavor: r-release-osx-x86_64-mavericks

Package RcppAnnoy

Current CRAN status: NOTE: 5, OK: 8

Memtest notes: gcc-UBSAN

Version: 0.0.8
Check: compiled code
Result: NOTE
    File ‘RcppAnnoy/libs/RcppAnnoy.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

Version: 0.0.8
Flags: --no-stop-on-test-error
Check: compiled code
Result: NOTE
    File ‘RcppAnnoy/libs/RcppAnnoy.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, r-devel-macos-x86_64-clang

Package RcppAPT

Current CRAN status: ERROR: 1, NOTE: 2, OK: 2

Version: 0.0.3
Check: compiled code
Result: NOTE
    File ‘RcppAPT/libs/RcppAPT.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

Version: 0.0.3
Check: whether package can be installed
Result: ERROR
    Installation failed.
Flavor: r-release-osx-x86_64-mavericks

Package RcppArmadillo

Current CRAN status: NOTE: 10, OK: 3

Version: 0.7.700.0.0
Check: compiled code
Result: NOTE
    File ‘RcppArmadillo/libs/RcppArmadillo.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

Version: 0.7.700.0.0
Flags: --no-stop-on-test-error
Check: installed package size
Result: NOTE
     installed size is 6.6Mb
     sub-directories of 1Mb or more:
     include 4.7Mb
     libs 1.1Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-macos-x86_64-clang

Version: 0.7.700.0.0
Flags: --no-stop-on-test-error
Check: compiled code
Result: NOTE
    File ‘RcppArmadillo/libs/RcppArmadillo.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, r-devel-macos-x86_64-clang

Version: 0.7.700.0.0
Check: installed package size
Result: NOTE
     installed size is 7.2Mb
     sub-directories of 1Mb or more:
     include 4.9Mb
     libs 1.6Mb
Flavors: r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-osx-x86_64-mavericks, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Package RcppBDT

Current CRAN status: NOTE: 6, OK: 7

Version: 0.2.3
Check: compiled code
Result: NOTE
    File ‘RcppBDT/libs/RcppBDT.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

Version: 0.2.3
Flags: --no-stop-on-test-error
Check: installed package size
Result: NOTE
     installed size is 7.9Mb
     sub-directories of 1Mb or more:
     libs 7.7Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.2.3
Flags: --no-stop-on-test-error
Check: compiled code
Result: NOTE
    File ‘RcppBDT/libs/RcppBDT.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, r-devel-macos-x86_64-clang

Version: 0.2.3
Check: installed package size
Result: NOTE
     installed size is 7.2Mb
     sub-directories of 1Mb or more:
     libs 7.0Mb
Flavor: r-release-osx-x86_64-mavericks

Package RcppCCTZ

Current CRAN status: ERROR: 3, NOTE: 5, OK: 5

Version: 0.2.1
Check: compiled code
Result: NOTE
    File ‘RcppCCTZ/libs/RcppCCTZ.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

Version: 0.2.1
Flags: --no-stop-on-test-error
Check: compiled code
Result: NOTE
    File ‘RcppCCTZ/libs/RcppCCTZ.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, r-devel-macos-x86_64-clang

Version: 0.2.1
Check: examples
Result: ERROR
    Running examples in ‘RcppCCTZ-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: toTz
    > ### Title: Shift datetime object from one timezone to another
    > ### Aliases: toTz
    >
    > ### ** Examples
    >
    > toTz(Sys.time(), "America/New_York", "Europe/London")
    Error in toTz(Sys.time(), "America/New_York", "Europe/London") :
     Bad 'from' timezone
    Calls: toTz -> .Call
    Execution halted
Flavors: r-patched-solaris-sparc, r-patched-solaris-x86

Version: 0.2.1
Check: tests
Result: ERROR
     Running ‘simpleTests.R’
    Running the tests in ‘tests/simpleTests.R’ failed.
    Complete output:
     >
     > library(RcppCCTZ)
     >
     > ord <- "America/Chicago"
     > lax <- "America/Los_Angeles"
     > lga <- "America/New_York"
     > htr <- "Europe/London"
     > utc <- "UTC"
     >
     > now <- ISOdatetime(2016, 11, 29, 12, 00, 00, tz="UTC")
     >
     > format(toTz(now, utc, lax), tz=lax)
     /usr/share/zoneinfo/America/Los_Angeles: No such file or directory
     Error in toTz(now, utc, lax) : Bad 'to' timezone
     Calls: format -> toTz -> .Call
     Execution halted
Flavors: r-patched-solaris-sparc, r-patched-solaris-x86

Version: 0.2.1
Check: whether package can be installed
Result: ERROR
    Installation failed.
Flavor: r-oldrel-windows-ix86+x86_64

Package RcppClassic

Current CRAN status: ERROR: 1, NOTE: 5, OK: 7

Version: 0.9.6
Check: compiled code
Result: NOTE
    File ‘RcppClassic/libs/RcppClassic.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

Version: 0.9.6
Flags: --no-stop-on-test-error
Check: installed package size
Result: NOTE
     installed size is 7.1Mb
     sub-directories of 1Mb or more:
     lib 5.1Mb
     libs 1.5Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.9.6
Flags: --no-stop-on-test-error
Check: compiled code
Result: NOTE
    File ‘RcppClassic/libs/RcppClassic.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, r-devel-macos-x86_64-clang

Version: 0.9.6
Check: tests
Result: ERROR
     Running ‘doRUnit.R’ [10m/10m]
    Running the tests in ‘tests/doRUnit.R’ failed.
    Complete output:
     > #### doRUnit.R --- Run RUnit tests
     > ####------------------------------------------------------------------------
     >
     > ### borrowed from package fUtilities in RMetrics
     > ### http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/pkg/fUtilities/tests/doRUnit.R?rev=1958&root=rmetrics&view=markup
     >
     > ### Originally follows Gregor Gojanc's example in CRAN package 'gdata'
     > ### and the corresponding section in the R Wiki:
     > ### http://wiki.r-project.org/rwiki/doku.php?id=developers:runit
     >
     > ### MM: Vastly changed: This should also be "runnable" for *installed*
     > ## package which has no ./tests/
     > ## ----> put the bulk of the code e.g. in ../inst/unitTests/runTests.R :
     >
     > if( identical( .Platform$OS.type, "windows" ) && identical( .Platform$r_arch, "x64" ) ){
     + print( "unit tests not run on windows 64 (workaround alert)" )
     + } else {
     + if(require("RUnit", quietly = TRUE)) {
     + pkg <- "RcppClassic"
     +
     + require( pkg, character.only=TRUE)
     +
     + path <- system.file("unitTests", package = pkg)
     +
     + stopifnot(file.exists(path), file.info(path.expand(path))$isdir)
     +
     + # without this, we get unit test failures
     + Sys.setenv( R_TESTS = "" )
     +
     + Rcpp.unit.test.output.dir <- getwd()
     +
     + source(file.path(path, "runTests.R"), echo = TRUE)
     +
     + } else {
     + print( "package RUnit not available, cannot run unit tests" )
     + }
     + }
     Loading required package: RcppClassic
    
     > pkg <- "RcppClassic"
    
     > if (!require("inline", character.only = TRUE, quietly = TRUE)) {
     + stop("The inline package is required to run RcppClassic unit tests")
     + }
    
     > if (compareVersion(packageDescription("inline")[["Version"]],
     + "0.3.4.4") < 0) {
     + stop("RcppClassic unit tests need at least the version ..." ... [TRUNCATED]
    
     > if (require("RUnit", quietly = TRUE)) {
     + is_local <- function() {
     + if (exists("argv", globalenv()) && "--local" %in% argv)
     + .... [TRUNCATED]
    
    
     Executing test function test.RcppDate.get.functions ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68932819180d.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP get_functions( ) ;
     24: SEXP RcppDate_operators( ) ;
     25: SEXP RcppDate_wrap( ) ;
     26: SEXP RcppDatetime_functions( SEXP x) ;
     27: SEXP RcppDatetime_operators( SEXP x) ;
     28: SEXP RcppDatetime_wrap( ) ;
     29: }
     30:
     31: // definition
     32:
     33: SEXP get_functions( ){
     34: BEGIN_RCPP
     35: RcppDate dt = RcppDate(12,31,1999);
     36: RcppResultSet rs;
     37: rs.add("month", dt.getMonth());
     38: rs.add("day", dt.getDay());
     39: rs.add("year", dt.getYear());
     40: rs.add("julian",dt.getJulian());
     41: return rs.getReturnList();
     42: END_RCPP
     43: }
     44:
     45:
     46: SEXP RcppDate_operators( ){
     47: BEGIN_RCPP
     48: RcppDate d1 = RcppDate(12,31,1999);
     49: RcppDate d2 = d1 + 1;
     50: RcppResultSet rs;
     51: rs.add("diff", d2 - d1);
     52: rs.add("bigger", d2 > d1);
     53: rs.add("smaller", d2 < d1);
     54: rs.add("equal", d2 == d1);
     55: rs.add("ge", d2 >= d1);
     56: rs.add("le", d2 <= d1);
     57: return rs.getReturnList();
     58: END_RCPP
     59: }
     60:
     61:
     62: SEXP RcppDate_wrap( ){
     63: BEGIN_RCPP
     64: RcppDate dt = RcppDate(12,31,1999);
     65: return wrap(dt);
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP RcppDatetime_functions( SEXP x ){
     71: BEGIN_RCPP
     72: RcppDatetime dt = RcppDatetime(x);
     73: RcppResultSet rs;
     74: rs.add("year", dt.getYear());
     75: rs.add("month", dt.getMonth());
     76: rs.add("day", dt.getDay());
     77: rs.add("wday", dt.getWeekday());
     78: rs.add("hour", dt.getHour());
     79: rs.add("minute", dt.getMinute());
     80: rs.add("second", dt.getSecond());
     81: rs.add("microsec", dt.getMicroSec());
     82: return rs.getReturnList();
     83: END_RCPP
     84: }
     85:
     86:
     87: SEXP RcppDatetime_operators( SEXP x ){
     88: BEGIN_RCPP
     89: RcppDatetime d1 = RcppDatetime(946774923.123456);
     90: //RcppDatetime d1 = RcppDatetime(1152338523.456789);
     91: // as.POSIXct("2006-07-08 01:02:03.456789")
     92: RcppDatetime d2 = d1 + 60*60;
     93: RcppResultSet rs;
     94: rs.add("diff", d2 - d1);
     95: rs.add("bigger", d2 > d1);
     96: rs.add("smaller", d2 < d1);
     97: rs.add("equal", d2 == d1);
     98: rs.add("ge", d2 >= d1);
     99: rs.add("le", d2 <= d1);
     100: return rs.getReturnList();
     101: END_RCPP
     102: }
     103:
     104:
     105: SEXP RcppDatetime_wrap( ){
     106: BEGIN_RCPP
     107: RcppDatetime dt = RcppDatetime(981162123.123456);
     108: return wrap(dt);
     109: END_RCPP
     110: }
     111:
     112:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68932819180d.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68932819180d.cpp 2> file68932819180d.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppDate.operators ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68936a8b7509.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP get_functions( ) ;
     24: SEXP RcppDate_operators( ) ;
     25: SEXP RcppDate_wrap( ) ;
     26: SEXP RcppDatetime_functions( SEXP x) ;
     27: SEXP RcppDatetime_operators( SEXP x) ;
     28: SEXP RcppDatetime_wrap( ) ;
     29: }
     30:
     31: // definition
     32:
     33: SEXP get_functions( ){
     34: BEGIN_RCPP
     35: RcppDate dt = RcppDate(12,31,1999);
     36: RcppResultSet rs;
     37: rs.add("month", dt.getMonth());
     38: rs.add("day", dt.getDay());
     39: rs.add("year", dt.getYear());
     40: rs.add("julian",dt.getJulian());
     41: return rs.getReturnList();
     42: END_RCPP
     43: }
     44:
     45:
     46: SEXP RcppDate_operators( ){
     47: BEGIN_RCPP
     48: RcppDate d1 = RcppDate(12,31,1999);
     49: RcppDate d2 = d1 + 1;
     50: RcppResultSet rs;
     51: rs.add("diff", d2 - d1);
     52: rs.add("bigger", d2 > d1);
     53: rs.add("smaller", d2 < d1);
     54: rs.add("equal", d2 == d1);
     55: rs.add("ge", d2 >= d1);
     56: rs.add("le", d2 <= d1);
     57: return rs.getReturnList();
     58: END_RCPP
     59: }
     60:
     61:
     62: SEXP RcppDate_wrap( ){
     63: BEGIN_RCPP
     64: RcppDate dt = RcppDate(12,31,1999);
     65: return wrap(dt);
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP RcppDatetime_functions( SEXP x ){
     71: BEGIN_RCPP
     72: RcppDatetime dt = RcppDatetime(x);
     73: RcppResultSet rs;
     74: rs.add("year", dt.getYear());
     75: rs.add("month", dt.getMonth());
     76: rs.add("day", dt.getDay());
     77: rs.add("wday", dt.getWeekday());
     78: rs.add("hour", dt.getHour());
     79: rs.add("minute", dt.getMinute());
     80: rs.add("second", dt.getSecond());
     81: rs.add("microsec", dt.getMicroSec());
     82: return rs.getReturnList();
     83: END_RCPP
     84: }
     85:
     86:
     87: SEXP RcppDatetime_operators( SEXP x ){
     88: BEGIN_RCPP
     89: RcppDatetime d1 = RcppDatetime(946774923.123456);
     90: //RcppDatetime d1 = RcppDatetime(1152338523.456789);
     91: // as.POSIXct("2006-07-08 01:02:03.456789")
     92: RcppDatetime d2 = d1 + 60*60;
     93: RcppResultSet rs;
     94: rs.add("diff", d2 - d1);
     95: rs.add("bigger", d2 > d1);
     96: rs.add("smaller", d2 < d1);
     97: rs.add("equal", d2 == d1);
     98: rs.add("ge", d2 >= d1);
     99: rs.add("le", d2 <= d1);
     100: return rs.getReturnList();
     101: END_RCPP
     102: }
     103:
     104:
     105: SEXP RcppDatetime_wrap( ){
     106: BEGIN_RCPP
     107: RcppDatetime dt = RcppDatetime(981162123.123456);
     108: return wrap(dt);
     109: END_RCPP
     110: }
     111:
     112:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68936a8b7509.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68936a8b7509.cpp 2> file68936a8b7509.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppDate.wrap ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689361f01fc3.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP get_functions( ) ;
     24: SEXP RcppDate_operators( ) ;
     25: SEXP RcppDate_wrap( ) ;
     26: SEXP RcppDatetime_functions( SEXP x) ;
     27: SEXP RcppDatetime_operators( SEXP x) ;
     28: SEXP RcppDatetime_wrap( ) ;
     29: }
     30:
     31: // definition
     32:
     33: SEXP get_functions( ){
     34: BEGIN_RCPP
     35: RcppDate dt = RcppDate(12,31,1999);
     36: RcppResultSet rs;
     37: rs.add("month", dt.getMonth());
     38: rs.add("day", dt.getDay());
     39: rs.add("year", dt.getYear());
     40: rs.add("julian",dt.getJulian());
     41: return rs.getReturnList();
     42: END_RCPP
     43: }
     44:
     45:
     46: SEXP RcppDate_operators( ){
     47: BEGIN_RCPP
     48: RcppDate d1 = RcppDate(12,31,1999);
     49: RcppDate d2 = d1 + 1;
     50: RcppResultSet rs;
     51: rs.add("diff", d2 - d1);
     52: rs.add("bigger", d2 > d1);
     53: rs.add("smaller", d2 < d1);
     54: rs.add("equal", d2 == d1);
     55: rs.add("ge", d2 >= d1);
     56: rs.add("le", d2 <= d1);
     57: return rs.getReturnList();
     58: END_RCPP
     59: }
     60:
     61:
     62: SEXP RcppDate_wrap( ){
     63: BEGIN_RCPP
     64: RcppDate dt = RcppDate(12,31,1999);
     65: return wrap(dt);
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP RcppDatetime_functions( SEXP x ){
     71: BEGIN_RCPP
     72: RcppDatetime dt = RcppDatetime(x);
     73: RcppResultSet rs;
     74: rs.add("year", dt.getYear());
     75: rs.add("month", dt.getMonth());
     76: rs.add("day", dt.getDay());
     77: rs.add("wday", dt.getWeekday());
     78: rs.add("hour", dt.getHour());
     79: rs.add("minute", dt.getMinute());
     80: rs.add("second", dt.getSecond());
     81: rs.add("microsec", dt.getMicroSec());
     82: return rs.getReturnList();
     83: END_RCPP
     84: }
     85:
     86:
     87: SEXP RcppDatetime_operators( SEXP x ){
     88: BEGIN_RCPP
     89: RcppDatetime d1 = RcppDatetime(946774923.123456);
     90: //RcppDatetime d1 = RcppDatetime(1152338523.456789);
     91: // as.POSIXct("2006-07-08 01:02:03.456789")
     92: RcppDatetime d2 = d1 + 60*60;
     93: RcppResultSet rs;
     94: rs.add("diff", d2 - d1);
     95: rs.add("bigger", d2 > d1);
     96: rs.add("smaller", d2 < d1);
     97: rs.add("equal", d2 == d1);
     98: rs.add("ge", d2 >= d1);
     99: rs.add("le", d2 <= d1);
     100: return rs.getReturnList();
     101: END_RCPP
     102: }
     103:
     104:
     105: SEXP RcppDatetime_wrap( ){
     106: BEGIN_RCPP
     107: RcppDatetime dt = RcppDatetime(981162123.123456);
     108: return wrap(dt);
     109: END_RCPP
     110: }
     111:
     112:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689361f01fc3.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689361f01fc3.cpp 2> file689361f01fc3.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppDatetime.operators ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689354fe3c93.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP get_functions( ) ;
     24: SEXP RcppDate_operators( ) ;
     25: SEXP RcppDate_wrap( ) ;
     26: SEXP RcppDatetime_functions( SEXP x) ;
     27: SEXP RcppDatetime_operators( SEXP x) ;
     28: SEXP RcppDatetime_wrap( ) ;
     29: }
     30:
     31: // definition
     32:
     33: SEXP get_functions( ){
     34: BEGIN_RCPP
     35: RcppDate dt = RcppDate(12,31,1999);
     36: RcppResultSet rs;
     37: rs.add("month", dt.getMonth());
     38: rs.add("day", dt.getDay());
     39: rs.add("year", dt.getYear());
     40: rs.add("julian",dt.getJulian());
     41: return rs.getReturnList();
     42: END_RCPP
     43: }
     44:
     45:
     46: SEXP RcppDate_operators( ){
     47: BEGIN_RCPP
     48: RcppDate d1 = RcppDate(12,31,1999);
     49: RcppDate d2 = d1 + 1;
     50: RcppResultSet rs;
     51: rs.add("diff", d2 - d1);
     52: rs.add("bigger", d2 > d1);
     53: rs.add("smaller", d2 < d1);
     54: rs.add("equal", d2 == d1);
     55: rs.add("ge", d2 >= d1);
     56: rs.add("le", d2 <= d1);
     57: return rs.getReturnList();
     58: END_RCPP
     59: }
     60:
     61:
     62: SEXP RcppDate_wrap( ){
     63: BEGIN_RCPP
     64: RcppDate dt = RcppDate(12,31,1999);
     65: return wrap(dt);
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP RcppDatetime_functions( SEXP x ){
     71: BEGIN_RCPP
     72: RcppDatetime dt = RcppDatetime(x);
     73: RcppResultSet rs;
     74: rs.add("year", dt.getYear());
     75: rs.add("month", dt.getMonth());
     76: rs.add("day", dt.getDay());
     77: rs.add("wday", dt.getWeekday());
     78: rs.add("hour", dt.getHour());
     79: rs.add("minute", dt.getMinute());
     80: rs.add("second", dt.getSecond());
     81: rs.add("microsec", dt.getMicroSec());
     82: return rs.getReturnList();
     83: END_RCPP
     84: }
     85:
     86:
     87: SEXP RcppDatetime_operators( SEXP x ){
     88: BEGIN_RCPP
     89: RcppDatetime d1 = RcppDatetime(946774923.123456);
     90: //RcppDatetime d1 = RcppDatetime(1152338523.456789);
     91: // as.POSIXct("2006-07-08 01:02:03.456789")
     92: RcppDatetime d2 = d1 + 60*60;
     93: RcppResultSet rs;
     94: rs.add("diff", d2 - d1);
     95: rs.add("bigger", d2 > d1);
     96: rs.add("smaller", d2 < d1);
     97: rs.add("equal", d2 == d1);
     98: rs.add("ge", d2 >= d1);
     99: rs.add("le", d2 <= d1);
     100: return rs.getReturnList();
     101: END_RCPP
     102: }
     103:
     104:
     105: SEXP RcppDatetime_wrap( ){
     106: BEGIN_RCPP
     107: RcppDatetime dt = RcppDatetime(981162123.123456);
     108: return wrap(dt);
     109: END_RCPP
     110: }
     111:
     112:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689354fe3c93.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689354fe3c93.cpp 2> file689354fe3c93.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppDatetime.wrap ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689370f73cee.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP get_functions( ) ;
     24: SEXP RcppDate_operators( ) ;
     25: SEXP RcppDate_wrap( ) ;
     26: SEXP RcppDatetime_functions( SEXP x) ;
     27: SEXP RcppDatetime_operators( SEXP x) ;
     28: SEXP RcppDatetime_wrap( ) ;
     29: }
     30:
     31: // definition
     32:
     33: SEXP get_functions( ){
     34: BEGIN_RCPP
     35: RcppDate dt = RcppDate(12,31,1999);
     36: RcppResultSet rs;
     37: rs.add("month", dt.getMonth());
     38: rs.add("day", dt.getDay());
     39: rs.add("year", dt.getYear());
     40: rs.add("julian",dt.getJulian());
     41: return rs.getReturnList();
     42: END_RCPP
     43: }
     44:
     45:
     46: SEXP RcppDate_operators( ){
     47: BEGIN_RCPP
     48: RcppDate d1 = RcppDate(12,31,1999);
     49: RcppDate d2 = d1 + 1;
     50: RcppResultSet rs;
     51: rs.add("diff", d2 - d1);
     52: rs.add("bigger", d2 > d1);
     53: rs.add("smaller", d2 < d1);
     54: rs.add("equal", d2 == d1);
     55: rs.add("ge", d2 >= d1);
     56: rs.add("le", d2 <= d1);
     57: return rs.getReturnList();
     58: END_RCPP
     59: }
     60:
     61:
     62: SEXP RcppDate_wrap( ){
     63: BEGIN_RCPP
     64: RcppDate dt = RcppDate(12,31,1999);
     65: return wrap(dt);
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP RcppDatetime_functions( SEXP x ){
     71: BEGIN_RCPP
     72: RcppDatetime dt = RcppDatetime(x);
     73: RcppResultSet rs;
     74: rs.add("year", dt.getYear());
     75: rs.add("month", dt.getMonth());
     76: rs.add("day", dt.getDay());
     77: rs.add("wday", dt.getWeekday());
     78: rs.add("hour", dt.getHour());
     79: rs.add("minute", dt.getMinute());
     80: rs.add("second", dt.getSecond());
     81: rs.add("microsec", dt.getMicroSec());
     82: return rs.getReturnList();
     83: END_RCPP
     84: }
     85:
     86:
     87: SEXP RcppDatetime_operators( SEXP x ){
     88: BEGIN_RCPP
     89: RcppDatetime d1 = RcppDatetime(946774923.123456);
     90: //RcppDatetime d1 = RcppDatetime(1152338523.456789);
     91: // as.POSIXct("2006-07-08 01:02:03.456789")
     92: RcppDatetime d2 = d1 + 60*60;
     93: RcppResultSet rs;
     94: rs.add("diff", d2 - d1);
     95: rs.add("bigger", d2 > d1);
     96: rs.add("smaller", d2 < d1);
     97: rs.add("equal", d2 == d1);
     98: rs.add("ge", d2 >= d1);
     99: rs.add("le", d2 <= d1);
     100: return rs.getReturnList();
     101: END_RCPP
     102: }
     103:
     104:
     105: SEXP RcppDatetime_wrap( ){
     106: BEGIN_RCPP
     107: RcppDatetime dt = RcppDatetime(981162123.123456);
     108: return wrap(dt);
     109: END_RCPP
     110: }
     111:
     112:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689370f73cee.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689370f73cee.cpp 2> file689370f73cee.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppMatrix.double ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689350e13633.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689350e13633.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689350e13633.cpp 2> file689350e13633.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppMatrix.double.na.nan ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68933bdf2f44.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68933bdf2f44.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68933bdf2f44.cpp 2> file68933bdf2f44.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppMatrix.int ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689351f84566.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689351f84566.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689351f84566.cpp 2> file689351f84566.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppMatrixView.double ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68934a5c6994.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68934a5c6994.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68934a5c6994.cpp 2> file68934a5c6994.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppMatrixView.int ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68931814264f.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68931814264f.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68931814264f.cpp 2> file68931814264f.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppStringVector.begin ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689331a1a91.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689331a1a91.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689331a1a91.cpp 2> file689331a1a91.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppStringVector.classic ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689345eb3166.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689345eb3166.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689345eb3166.cpp 2> file689345eb3166.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppStringVector.end ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68934c9d1660.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68934c9d1660.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68934c9d1660.cpp 2> file68934c9d1660.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppStringVector.wrap ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68939b52de0.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68939b52de0.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68939b52de0.cpp 2> file68939b52de0.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppVector.double ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68933bf73ce3.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68933bf73ce3.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68933bf73ce3.cpp 2> file68933bf73ce3.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppVector.double.na.nan ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689333865edd.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689333865edd.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689333865edd.cpp 2> file689333865edd.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppVector.int ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689369ca38c3.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689369ca38c3.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689369ca38c3.cpp 2> file689369ca38c3.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppVectorView.double ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893556f3754.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893556f3754.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file6893556f3754.cpp 2> file6893556f3754.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppVectorView.int ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893d201340.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppMatrix_int( SEXP x) ;
     24: SEXP RcppMatrix_double( SEXP x) ;
     25: SEXP RcppMatrix_double_na_nan( SEXP x) ;
     26: SEXP RcppMatrixView_int( SEXP x) ;
     27: SEXP RcppMatrixView_double( SEXP x) ;
     28: SEXP RcppVector_int( SEXP x) ;
     29: SEXP RcppVector_double( SEXP x) ;
     30: SEXP RcppVector_double_na_nan( SEXP x) ;
     31: SEXP RcppVectorView_int( SEXP x) ;
     32: SEXP RcppVectorView_double( SEXP x) ;
     33: SEXP RcppStringVector_classic( SEXP x) ;
     34: SEXP RcppStringVector_wrap( SEXP x) ;
     35: SEXP RcppStringVector_begin( SEXP x) ;
     36: SEXP RcppStringVector_end( SEXP x) ;
     37: }
     38:
     39: // definition
     40:
     41: SEXP RcppMatrix_int( SEXP x ){
     42: BEGIN_RCPP
     43: RcppMatrix<int> m(x);
     44: RcppResultSet rs;
     45: rs.add("dim1", m.getDim1());
     46: rs.add("dim2", m.getDim2());
     47: rs.add("rows", m.rows());
     48: rs.add("cols", m.cols());
     49: rs.add("p22", m(1,1));
     50: std::vector<std::vector<int> > mm = m.stlMatrix();
     51: rs.add("m", mm);
     52: return rs.getReturnList();
     53: END_RCPP
     54: }
     55:
     56:
     57: SEXP RcppMatrix_double( SEXP x ){
     58: BEGIN_RCPP
     59: RcppMatrix<double> m(x);
     60: RcppResultSet rs;
     61: rs.add("dim1", m.getDim1());
     62: rs.add("dim2", m.getDim2());
     63: rs.add("rows", m.rows());
     64: rs.add("cols", m.cols());
     65: rs.add("p22", m(1,1));
     66: std::vector<std::vector<double> > mm = m.stlMatrix();
     67: rs.add("m", mm);
     68: return rs.getReturnList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppMatrix_double_na_nan( SEXP x ){
     74: BEGIN_RCPP
     75: RcppMatrix<double> m(x);
     76: RcppResultSet rs;
     77: rs.add("na_21", R_IsNA(m(1,0)));
     78: rs.add("na_22", R_IsNA(m(1,1)));
     79: rs.add("nan_31", R_IsNaN(m(2,0)));
     80: rs.add("nan_32", R_IsNaN(m(2,1)));
     81: return rs.getReturnList();
     82: END_RCPP
     83: }
     84:
     85:
     86: SEXP RcppMatrixView_int( SEXP x ){
     87: BEGIN_RCPP
     88: RcppMatrixView<int> m(x);
     89: RcppResultSet rs;
     90: rs.add("dim1", m.dim1());
     91: rs.add("dim2", m.dim2());
     92: rs.add("rows", m.rows());
     93: rs.add("cols", m.cols());
     94: rs.add("p22", m(1,1));
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP RcppMatrixView_double( SEXP x ){
     101: BEGIN_RCPP
     102: RcppMatrixView<double> m(x);
     103: RcppResultSet rs;
     104: rs.add("dim1", m.dim1());
     105: rs.add("dim2", m.dim2());
     106: rs.add("rows", m.rows());
     107: rs.add("cols", m.cols());
     108: rs.add("p22", m(1,1));
     109: return rs.getReturnList();
     110: END_RCPP
     111: }
     112:
     113:
     114: SEXP RcppVector_int( SEXP x ){
     115: BEGIN_RCPP
     116: RcppVector<int> m(x);
     117: RcppResultSet rs;
     118: rs.add("size", m.size());
     119: rs.add("p2", m(1));
     120: std::vector<int> v = m.stlVector();
     121: rs.add("v", v);
     122: return rs.getReturnList();
     123: END_RCPP
     124: }
     125:
     126:
     127: SEXP RcppVector_double( SEXP x ){
     128: BEGIN_RCPP
     129: RcppVector<double> m(x);
     130: RcppResultSet rs;
     131: rs.add("size", m.size());
     132: rs.add("p2", m(1));
     133: std::vector<double> v = m.stlVector();
     134: rs.add("v", v);
     135: return rs.getReturnList();
     136: END_RCPP
     137: }
     138:
     139:
     140: SEXP RcppVector_double_na_nan( SEXP x ){
     141: BEGIN_RCPP
     142: RcppVector<double> m(x);
     143: RcppResultSet rs;
     144: rs.add("na_2", R_IsNA(m(1)));
     145: rs.add("na_3", R_IsNA(m(2)));
     146: rs.add("nan_4", R_IsNaN(m(3)));
     147: rs.add("nan_5", R_IsNaN(m(4)));
     148: return rs.getReturnList();
     149: END_RCPP
     150: }
     151:
     152:
     153: SEXP RcppVectorView_int( SEXP x ){
     154: BEGIN_RCPP
     155: RcppVectorView<int> m(x);
     156: RcppResultSet rs;
     157: rs.add("size", m.size());
     158: rs.add("p2", m(1));
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppVectorView_double( SEXP x ){
     165: BEGIN_RCPP
     166: RcppVectorView<double> m(x);
     167: RcppResultSet rs;
     168: rs.add("size", m.size());
     169: rs.add("p2", m(1));
     170: return rs.getReturnList();
     171: END_RCPP
     172: }
     173:
     174:
     175: SEXP RcppStringVector_classic( SEXP x ){
     176: BEGIN_RCPP
     177: RcppStringVector s = RcppStringVector(x);
     178: RcppResultSet rs;
     179: rs.add("string", s);
     180: return rs.getReturnList();
     181: END_RCPP
     182: }
     183:
     184:
     185: SEXP RcppStringVector_wrap( SEXP x ){
     186: BEGIN_RCPP
     187: RcppStringVector s = RcppStringVector(x);
     188: return wrap(s);
     189: END_RCPP
     190: }
     191:
     192:
     193: SEXP RcppStringVector_begin( SEXP x ){
     194: BEGIN_RCPP
     195: RcppStringVector s = RcppStringVector(x);
     196: return wrap(*s.begin());
     197: END_RCPP
     198: }
     199:
     200:
     201: SEXP RcppStringVector_end( SEXP x ){
     202: BEGIN_RCPP
     203: RcppStringVector s = RcppStringVector(x);
     204: return wrap(s(s.size()-1));
     205: END_RCPP
     206: }
     207:
     208:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893d201340.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file6893d201340.cpp 2> file6893d201340.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppFrame ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893495360be.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppFrame_( ) ;
     24: SEXP RcppList_( ) ;
     25: SEXP RcppParams_Double( SEXP x) ;
     26: SEXP RcppParams_Int( SEXP x) ;
     27: SEXP RcppParams_String( SEXP x) ;
     28: SEXP RcppParams_Bool( SEXP x) ;
     29: SEXP RcppParams_Date( SEXP x) ;
     30: SEXP RcppParams_Datetime( SEXP x) ;
     31: }
     32:
     33: // definition
     34:
     35: SEXP RcppFrame_( ){
     36: BEGIN_RCPP
     37: std::vector<std::string> names;
     38: names.push_back("A");
     39: names.push_back("B");
     40: names.push_back("C");
     41: RcppFrame fr(names);
     42:
     43: std::vector<ColDatum> colDatumVector(3);
     44: colDatumVector[0].setDoubleValue(1.23);
     45: colDatumVector[1].setIntValue(42);
     46: colDatumVector[2].setLogicalValue(0);
     47: fr.addRow(colDatumVector);
     48:
     49: colDatumVector[0].setDoubleValue(4.56);
     50: colDatumVector[1].setIntValue(21);
     51: colDatumVector[2].setLogicalValue(1);
     52: fr.addRow(colDatumVector);
     53:
     54: RcppResultSet rs;
     55: rs.add("data.frame", fr);
     56: return rs.getReturnList();
     57: END_RCPP
     58: }
     59:
     60:
     61: SEXP RcppList_( ){
     62: BEGIN_RCPP
     63: RcppList l;
     64: l.setSize(3);
     65: l.append("foo", 1);
     66: l.append("bar", 2.0);
     67: l.append("biz", "xyz");
     68: return l.getList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppParams_Double( SEXP x ){
     74: BEGIN_RCPP
     75: double y = 2 * RcppParams(x).getDoubleValue("val");
     76: return Rcpp::wrap(y);
     77: END_RCPP
     78: }
     79:
     80:
     81: SEXP RcppParams_Int( SEXP x ){
     82: BEGIN_RCPP
     83: int y = 2 * RcppParams(x).getIntValue("val");
     84: return Rcpp::wrap(y);
     85: END_RCPP
     86: }
     87:
     88:
     89: SEXP RcppParams_String( SEXP x ){
     90: BEGIN_RCPP
     91: std::string y = RcppParams(x).getStringValue("val");
     92: y = y + y; // trivial string operation
     93: return Rcpp::wrap(y);
     94: END_RCPP
     95: }
     96:
     97:
     98: SEXP RcppParams_Bool( SEXP x ){
     99: BEGIN_RCPP
     100: bool y = RcppParams(x).getBoolValue("val");
     101: return Rcpp::wrap(y);
     102: END_RCPP
     103: }
     104:
     105:
     106: SEXP RcppParams_Date( SEXP x ){
     107: BEGIN_RCPP
     108: RcppDate y = RcppParams(x).getDateValue("val");
     109: RcppResultSet rs;
     110: rs.add("date", y);
     111: return rs.getReturnList();
     112: END_RCPP
     113: }
     114:
     115:
     116: SEXP RcppParams_Datetime( SEXP x ){
     117: BEGIN_RCPP
     118: RcppDatetime y = RcppParams(x).getDatetimeValue("val");
     119: RcppResultSet rs;
     120: rs.add("datetime", y);
     121: return rs.getReturnList();
     122: END_RCPP
     123: }
     124:
     125:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893495360be.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file6893495360be.cpp 2> file6893495360be.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppList ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893693058b8.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppFrame_( ) ;
     24: SEXP RcppList_( ) ;
     25: SEXP RcppParams_Double( SEXP x) ;
     26: SEXP RcppParams_Int( SEXP x) ;
     27: SEXP RcppParams_String( SEXP x) ;
     28: SEXP RcppParams_Bool( SEXP x) ;
     29: SEXP RcppParams_Date( SEXP x) ;
     30: SEXP RcppParams_Datetime( SEXP x) ;
     31: }
     32:
     33: // definition
     34:
     35: SEXP RcppFrame_( ){
     36: BEGIN_RCPP
     37: std::vector<std::string> names;
     38: names.push_back("A");
     39: names.push_back("B");
     40: names.push_back("C");
     41: RcppFrame fr(names);
     42:
     43: std::vector<ColDatum> colDatumVector(3);
     44: colDatumVector[0].setDoubleValue(1.23);
     45: colDatumVector[1].setIntValue(42);
     46: colDatumVector[2].setLogicalValue(0);
     47: fr.addRow(colDatumVector);
     48:
     49: colDatumVector[0].setDoubleValue(4.56);
     50: colDatumVector[1].setIntValue(21);
     51: colDatumVector[2].setLogicalValue(1);
     52: fr.addRow(colDatumVector);
     53:
     54: RcppResultSet rs;
     55: rs.add("data.frame", fr);
     56: return rs.getReturnList();
     57: END_RCPP
     58: }
     59:
     60:
     61: SEXP RcppList_( ){
     62: BEGIN_RCPP
     63: RcppList l;
     64: l.setSize(3);
     65: l.append("foo", 1);
     66: l.append("bar", 2.0);
     67: l.append("biz", "xyz");
     68: return l.getList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppParams_Double( SEXP x ){
     74: BEGIN_RCPP
     75: double y = 2 * RcppParams(x).getDoubleValue("val");
     76: return Rcpp::wrap(y);
     77: END_RCPP
     78: }
     79:
     80:
     81: SEXP RcppParams_Int( SEXP x ){
     82: BEGIN_RCPP
     83: int y = 2 * RcppParams(x).getIntValue("val");
     84: return Rcpp::wrap(y);
     85: END_RCPP
     86: }
     87:
     88:
     89: SEXP RcppParams_String( SEXP x ){
     90: BEGIN_RCPP
     91: std::string y = RcppParams(x).getStringValue("val");
     92: y = y + y; // trivial string operation
     93: return Rcpp::wrap(y);
     94: END_RCPP
     95: }
     96:
     97:
     98: SEXP RcppParams_Bool( SEXP x ){
     99: BEGIN_RCPP
     100: bool y = RcppParams(x).getBoolValue("val");
     101: return Rcpp::wrap(y);
     102: END_RCPP
     103: }
     104:
     105:
     106: SEXP RcppParams_Date( SEXP x ){
     107: BEGIN_RCPP
     108: RcppDate y = RcppParams(x).getDateValue("val");
     109: RcppResultSet rs;
     110: rs.add("date", y);
     111: return rs.getReturnList();
     112: END_RCPP
     113: }
     114:
     115:
     116: SEXP RcppParams_Datetime( SEXP x ){
     117: BEGIN_RCPP
     118: RcppDatetime y = RcppParams(x).getDatetimeValue("val");
     119: RcppResultSet rs;
     120: rs.add("datetime", y);
     121: return rs.getReturnList();
     122: END_RCPP
     123: }
     124:
     125:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893693058b8.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file6893693058b8.cpp 2> file6893693058b8.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppParams.Bool ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893388985.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppFrame_( ) ;
     24: SEXP RcppList_( ) ;
     25: SEXP RcppParams_Double( SEXP x) ;
     26: SEXP RcppParams_Int( SEXP x) ;
     27: SEXP RcppParams_String( SEXP x) ;
     28: SEXP RcppParams_Bool( SEXP x) ;
     29: SEXP RcppParams_Date( SEXP x) ;
     30: SEXP RcppParams_Datetime( SEXP x) ;
     31: }
     32:
     33: // definition
     34:
     35: SEXP RcppFrame_( ){
     36: BEGIN_RCPP
     37: std::vector<std::string> names;
     38: names.push_back("A");
     39: names.push_back("B");
     40: names.push_back("C");
     41: RcppFrame fr(names);
     42:
     43: std::vector<ColDatum> colDatumVector(3);
     44: colDatumVector[0].setDoubleValue(1.23);
     45: colDatumVector[1].setIntValue(42);
     46: colDatumVector[2].setLogicalValue(0);
     47: fr.addRow(colDatumVector);
     48:
     49: colDatumVector[0].setDoubleValue(4.56);
     50: colDatumVector[1].setIntValue(21);
     51: colDatumVector[2].setLogicalValue(1);
     52: fr.addRow(colDatumVector);
     53:
     54: RcppResultSet rs;
     55: rs.add("data.frame", fr);
     56: return rs.getReturnList();
     57: END_RCPP
     58: }
     59:
     60:
     61: SEXP RcppList_( ){
     62: BEGIN_RCPP
     63: RcppList l;
     64: l.setSize(3);
     65: l.append("foo", 1);
     66: l.append("bar", 2.0);
     67: l.append("biz", "xyz");
     68: return l.getList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppParams_Double( SEXP x ){
     74: BEGIN_RCPP
     75: double y = 2 * RcppParams(x).getDoubleValue("val");
     76: return Rcpp::wrap(y);
     77: END_RCPP
     78: }
     79:
     80:
     81: SEXP RcppParams_Int( SEXP x ){
     82: BEGIN_RCPP
     83: int y = 2 * RcppParams(x).getIntValue("val");
     84: return Rcpp::wrap(y);
     85: END_RCPP
     86: }
     87:
     88:
     89: SEXP RcppParams_String( SEXP x ){
     90: BEGIN_RCPP
     91: std::string y = RcppParams(x).getStringValue("val");
     92: y = y + y; // trivial string operation
     93: return Rcpp::wrap(y);
     94: END_RCPP
     95: }
     96:
     97:
     98: SEXP RcppParams_Bool( SEXP x ){
     99: BEGIN_RCPP
     100: bool y = RcppParams(x).getBoolValue("val");
     101: return Rcpp::wrap(y);
     102: END_RCPP
     103: }
     104:
     105:
     106: SEXP RcppParams_Date( SEXP x ){
     107: BEGIN_RCPP
     108: RcppDate y = RcppParams(x).getDateValue("val");
     109: RcppResultSet rs;
     110: rs.add("date", y);
     111: return rs.getReturnList();
     112: END_RCPP
     113: }
     114:
     115:
     116: SEXP RcppParams_Datetime( SEXP x ){
     117: BEGIN_RCPP
     118: RcppDatetime y = RcppParams(x).getDatetimeValue("val");
     119: RcppResultSet rs;
     120: rs.add("datetime", y);
     121: return rs.getReturnList();
     122: END_RCPP
     123: }
     124:
     125:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893388985.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file6893388985.cpp 2> file6893388985.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppParams.Date ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689344589f8.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppFrame_( ) ;
     24: SEXP RcppList_( ) ;
     25: SEXP RcppParams_Double( SEXP x) ;
     26: SEXP RcppParams_Int( SEXP x) ;
     27: SEXP RcppParams_String( SEXP x) ;
     28: SEXP RcppParams_Bool( SEXP x) ;
     29: SEXP RcppParams_Date( SEXP x) ;
     30: SEXP RcppParams_Datetime( SEXP x) ;
     31: }
     32:
     33: // definition
     34:
     35: SEXP RcppFrame_( ){
     36: BEGIN_RCPP
     37: std::vector<std::string> names;
     38: names.push_back("A");
     39: names.push_back("B");
     40: names.push_back("C");
     41: RcppFrame fr(names);
     42:
     43: std::vector<ColDatum> colDatumVector(3);
     44: colDatumVector[0].setDoubleValue(1.23);
     45: colDatumVector[1].setIntValue(42);
     46: colDatumVector[2].setLogicalValue(0);
     47: fr.addRow(colDatumVector);
     48:
     49: colDatumVector[0].setDoubleValue(4.56);
     50: colDatumVector[1].setIntValue(21);
     51: colDatumVector[2].setLogicalValue(1);
     52: fr.addRow(colDatumVector);
     53:
     54: RcppResultSet rs;
     55: rs.add("data.frame", fr);
     56: return rs.getReturnList();
     57: END_RCPP
     58: }
     59:
     60:
     61: SEXP RcppList_( ){
     62: BEGIN_RCPP
     63: RcppList l;
     64: l.setSize(3);
     65: l.append("foo", 1);
     66: l.append("bar", 2.0);
     67: l.append("biz", "xyz");
     68: return l.getList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppParams_Double( SEXP x ){
     74: BEGIN_RCPP
     75: double y = 2 * RcppParams(x).getDoubleValue("val");
     76: return Rcpp::wrap(y);
     77: END_RCPP
     78: }
     79:
     80:
     81: SEXP RcppParams_Int( SEXP x ){
     82: BEGIN_RCPP
     83: int y = 2 * RcppParams(x).getIntValue("val");
     84: return Rcpp::wrap(y);
     85: END_RCPP
     86: }
     87:
     88:
     89: SEXP RcppParams_String( SEXP x ){
     90: BEGIN_RCPP
     91: std::string y = RcppParams(x).getStringValue("val");
     92: y = y + y; // trivial string operation
     93: return Rcpp::wrap(y);
     94: END_RCPP
     95: }
     96:
     97:
     98: SEXP RcppParams_Bool( SEXP x ){
     99: BEGIN_RCPP
     100: bool y = RcppParams(x).getBoolValue("val");
     101: return Rcpp::wrap(y);
     102: END_RCPP
     103: }
     104:
     105:
     106: SEXP RcppParams_Date( SEXP x ){
     107: BEGIN_RCPP
     108: RcppDate y = RcppParams(x).getDateValue("val");
     109: RcppResultSet rs;
     110: rs.add("date", y);
     111: return rs.getReturnList();
     112: END_RCPP
     113: }
     114:
     115:
     116: SEXP RcppParams_Datetime( SEXP x ){
     117: BEGIN_RCPP
     118: RcppDatetime y = RcppParams(x).getDatetimeValue("val");
     119: RcppResultSet rs;
     120: rs.add("datetime", y);
     121: return rs.getReturnList();
     122: END_RCPP
     123: }
     124:
     125:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689344589f8.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689344589f8.cpp 2> file689344589f8.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppParams.Datetime ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893136682b.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppFrame_( ) ;
     24: SEXP RcppList_( ) ;
     25: SEXP RcppParams_Double( SEXP x) ;
     26: SEXP RcppParams_Int( SEXP x) ;
     27: SEXP RcppParams_String( SEXP x) ;
     28: SEXP RcppParams_Bool( SEXP x) ;
     29: SEXP RcppParams_Date( SEXP x) ;
     30: SEXP RcppParams_Datetime( SEXP x) ;
     31: }
     32:
     33: // definition
     34:
     35: SEXP RcppFrame_( ){
     36: BEGIN_RCPP
     37: std::vector<std::string> names;
     38: names.push_back("A");
     39: names.push_back("B");
     40: names.push_back("C");
     41: RcppFrame fr(names);
     42:
     43: std::vector<ColDatum> colDatumVector(3);
     44: colDatumVector[0].setDoubleValue(1.23);
     45: colDatumVector[1].setIntValue(42);
     46: colDatumVector[2].setLogicalValue(0);
     47: fr.addRow(colDatumVector);
     48:
     49: colDatumVector[0].setDoubleValue(4.56);
     50: colDatumVector[1].setIntValue(21);
     51: colDatumVector[2].setLogicalValue(1);
     52: fr.addRow(colDatumVector);
     53:
     54: RcppResultSet rs;
     55: rs.add("data.frame", fr);
     56: return rs.getReturnList();
     57: END_RCPP
     58: }
     59:
     60:
     61: SEXP RcppList_( ){
     62: BEGIN_RCPP
     63: RcppList l;
     64: l.setSize(3);
     65: l.append("foo", 1);
     66: l.append("bar", 2.0);
     67: l.append("biz", "xyz");
     68: return l.getList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppParams_Double( SEXP x ){
     74: BEGIN_RCPP
     75: double y = 2 * RcppParams(x).getDoubleValue("val");
     76: return Rcpp::wrap(y);
     77: END_RCPP
     78: }
     79:
     80:
     81: SEXP RcppParams_Int( SEXP x ){
     82: BEGIN_RCPP
     83: int y = 2 * RcppParams(x).getIntValue("val");
     84: return Rcpp::wrap(y);
     85: END_RCPP
     86: }
     87:
     88:
     89: SEXP RcppParams_String( SEXP x ){
     90: BEGIN_RCPP
     91: std::string y = RcppParams(x).getStringValue("val");
     92: y = y + y; // trivial string operation
     93: return Rcpp::wrap(y);
     94: END_RCPP
     95: }
     96:
     97:
     98: SEXP RcppParams_Bool( SEXP x ){
     99: BEGIN_RCPP
     100: bool y = RcppParams(x).getBoolValue("val");
     101: return Rcpp::wrap(y);
     102: END_RCPP
     103: }
     104:
     105:
     106: SEXP RcppParams_Date( SEXP x ){
     107: BEGIN_RCPP
     108: RcppDate y = RcppParams(x).getDateValue("val");
     109: RcppResultSet rs;
     110: rs.add("date", y);
     111: return rs.getReturnList();
     112: END_RCPP
     113: }
     114:
     115:
     116: SEXP RcppParams_Datetime( SEXP x ){
     117: BEGIN_RCPP
     118: RcppDatetime y = RcppParams(x).getDatetimeValue("val");
     119: RcppResultSet rs;
     120: rs.add("datetime", y);
     121: return rs.getReturnList();
     122: END_RCPP
     123: }
     124:
     125:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893136682b.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file6893136682b.cpp 2> file6893136682b.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppParams.Double ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689352d95646.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppFrame_( ) ;
     24: SEXP RcppList_( ) ;
     25: SEXP RcppParams_Double( SEXP x) ;
     26: SEXP RcppParams_Int( SEXP x) ;
     27: SEXP RcppParams_String( SEXP x) ;
     28: SEXP RcppParams_Bool( SEXP x) ;
     29: SEXP RcppParams_Date( SEXP x) ;
     30: SEXP RcppParams_Datetime( SEXP x) ;
     31: }
     32:
     33: // definition
     34:
     35: SEXP RcppFrame_( ){
     36: BEGIN_RCPP
     37: std::vector<std::string> names;
     38: names.push_back("A");
     39: names.push_back("B");
     40: names.push_back("C");
     41: RcppFrame fr(names);
     42:
     43: std::vector<ColDatum> colDatumVector(3);
     44: colDatumVector[0].setDoubleValue(1.23);
     45: colDatumVector[1].setIntValue(42);
     46: colDatumVector[2].setLogicalValue(0);
     47: fr.addRow(colDatumVector);
     48:
     49: colDatumVector[0].setDoubleValue(4.56);
     50: colDatumVector[1].setIntValue(21);
     51: colDatumVector[2].setLogicalValue(1);
     52: fr.addRow(colDatumVector);
     53:
     54: RcppResultSet rs;
     55: rs.add("data.frame", fr);
     56: return rs.getReturnList();
     57: END_RCPP
     58: }
     59:
     60:
     61: SEXP RcppList_( ){
     62: BEGIN_RCPP
     63: RcppList l;
     64: l.setSize(3);
     65: l.append("foo", 1);
     66: l.append("bar", 2.0);
     67: l.append("biz", "xyz");
     68: return l.getList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppParams_Double( SEXP x ){
     74: BEGIN_RCPP
     75: double y = 2 * RcppParams(x).getDoubleValue("val");
     76: return Rcpp::wrap(y);
     77: END_RCPP
     78: }
     79:
     80:
     81: SEXP RcppParams_Int( SEXP x ){
     82: BEGIN_RCPP
     83: int y = 2 * RcppParams(x).getIntValue("val");
     84: return Rcpp::wrap(y);
     85: END_RCPP
     86: }
     87:
     88:
     89: SEXP RcppParams_String( SEXP x ){
     90: BEGIN_RCPP
     91: std::string y = RcppParams(x).getStringValue("val");
     92: y = y + y; // trivial string operation
     93: return Rcpp::wrap(y);
     94: END_RCPP
     95: }
     96:
     97:
     98: SEXP RcppParams_Bool( SEXP x ){
     99: BEGIN_RCPP
     100: bool y = RcppParams(x).getBoolValue("val");
     101: return Rcpp::wrap(y);
     102: END_RCPP
     103: }
     104:
     105:
     106: SEXP RcppParams_Date( SEXP x ){
     107: BEGIN_RCPP
     108: RcppDate y = RcppParams(x).getDateValue("val");
     109: RcppResultSet rs;
     110: rs.add("date", y);
     111: return rs.getReturnList();
     112: END_RCPP
     113: }
     114:
     115:
     116: SEXP RcppParams_Datetime( SEXP x ){
     117: BEGIN_RCPP
     118: RcppDatetime y = RcppParams(x).getDatetimeValue("val");
     119: RcppResultSet rs;
     120: rs.add("datetime", y);
     121: return rs.getReturnList();
     122: END_RCPP
     123: }
     124:
     125:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689352d95646.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689352d95646.cpp 2> file689352d95646.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppParams.Int ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689315681c3b.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppFrame_( ) ;
     24: SEXP RcppList_( ) ;
     25: SEXP RcppParams_Double( SEXP x) ;
     26: SEXP RcppParams_Int( SEXP x) ;
     27: SEXP RcppParams_String( SEXP x) ;
     28: SEXP RcppParams_Bool( SEXP x) ;
     29: SEXP RcppParams_Date( SEXP x) ;
     30: SEXP RcppParams_Datetime( SEXP x) ;
     31: }
     32:
     33: // definition
     34:
     35: SEXP RcppFrame_( ){
     36: BEGIN_RCPP
     37: std::vector<std::string> names;
     38: names.push_back("A");
     39: names.push_back("B");
     40: names.push_back("C");
     41: RcppFrame fr(names);
     42:
     43: std::vector<ColDatum> colDatumVector(3);
     44: colDatumVector[0].setDoubleValue(1.23);
     45: colDatumVector[1].setIntValue(42);
     46: colDatumVector[2].setLogicalValue(0);
     47: fr.addRow(colDatumVector);
     48:
     49: colDatumVector[0].setDoubleValue(4.56);
     50: colDatumVector[1].setIntValue(21);
     51: colDatumVector[2].setLogicalValue(1);
     52: fr.addRow(colDatumVector);
     53:
     54: RcppResultSet rs;
     55: rs.add("data.frame", fr);
     56: return rs.getReturnList();
     57: END_RCPP
     58: }
     59:
     60:
     61: SEXP RcppList_( ){
     62: BEGIN_RCPP
     63: RcppList l;
     64: l.setSize(3);
     65: l.append("foo", 1);
     66: l.append("bar", 2.0);
     67: l.append("biz", "xyz");
     68: return l.getList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppParams_Double( SEXP x ){
     74: BEGIN_RCPP
     75: double y = 2 * RcppParams(x).getDoubleValue("val");
     76: return Rcpp::wrap(y);
     77: END_RCPP
     78: }
     79:
     80:
     81: SEXP RcppParams_Int( SEXP x ){
     82: BEGIN_RCPP
     83: int y = 2 * RcppParams(x).getIntValue("val");
     84: return Rcpp::wrap(y);
     85: END_RCPP
     86: }
     87:
     88:
     89: SEXP RcppParams_String( SEXP x ){
     90: BEGIN_RCPP
     91: std::string y = RcppParams(x).getStringValue("val");
     92: y = y + y; // trivial string operation
     93: return Rcpp::wrap(y);
     94: END_RCPP
     95: }
     96:
     97:
     98: SEXP RcppParams_Bool( SEXP x ){
     99: BEGIN_RCPP
     100: bool y = RcppParams(x).getBoolValue("val");
     101: return Rcpp::wrap(y);
     102: END_RCPP
     103: }
     104:
     105:
     106: SEXP RcppParams_Date( SEXP x ){
     107: BEGIN_RCPP
     108: RcppDate y = RcppParams(x).getDateValue("val");
     109: RcppResultSet rs;
     110: rs.add("date", y);
     111: return rs.getReturnList();
     112: END_RCPP
     113: }
     114:
     115:
     116: SEXP RcppParams_Datetime( SEXP x ){
     117: BEGIN_RCPP
     118: RcppDatetime y = RcppParams(x).getDatetimeValue("val");
     119: RcppResultSet rs;
     120: rs.add("datetime", y);
     121: return rs.getReturnList();
     122: END_RCPP
     123: }
     124:
     125:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689315681c3b.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689315681c3b.cpp 2> file689315681c3b.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppParams.String ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689311546a2a.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP RcppFrame_( ) ;
     24: SEXP RcppList_( ) ;
     25: SEXP RcppParams_Double( SEXP x) ;
     26: SEXP RcppParams_Int( SEXP x) ;
     27: SEXP RcppParams_String( SEXP x) ;
     28: SEXP RcppParams_Bool( SEXP x) ;
     29: SEXP RcppParams_Date( SEXP x) ;
     30: SEXP RcppParams_Datetime( SEXP x) ;
     31: }
     32:
     33: // definition
     34:
     35: SEXP RcppFrame_( ){
     36: BEGIN_RCPP
     37: std::vector<std::string> names;
     38: names.push_back("A");
     39: names.push_back("B");
     40: names.push_back("C");
     41: RcppFrame fr(names);
     42:
     43: std::vector<ColDatum> colDatumVector(3);
     44: colDatumVector[0].setDoubleValue(1.23);
     45: colDatumVector[1].setIntValue(42);
     46: colDatumVector[2].setLogicalValue(0);
     47: fr.addRow(colDatumVector);
     48:
     49: colDatumVector[0].setDoubleValue(4.56);
     50: colDatumVector[1].setIntValue(21);
     51: colDatumVector[2].setLogicalValue(1);
     52: fr.addRow(colDatumVector);
     53:
     54: RcppResultSet rs;
     55: rs.add("data.frame", fr);
     56: return rs.getReturnList();
     57: END_RCPP
     58: }
     59:
     60:
     61: SEXP RcppList_( ){
     62: BEGIN_RCPP
     63: RcppList l;
     64: l.setSize(3);
     65: l.append("foo", 1);
     66: l.append("bar", 2.0);
     67: l.append("biz", "xyz");
     68: return l.getList();
     69: END_RCPP
     70: }
     71:
     72:
     73: SEXP RcppParams_Double( SEXP x ){
     74: BEGIN_RCPP
     75: double y = 2 * RcppParams(x).getDoubleValue("val");
     76: return Rcpp::wrap(y);
     77: END_RCPP
     78: }
     79:
     80:
     81: SEXP RcppParams_Int( SEXP x ){
     82: BEGIN_RCPP
     83: int y = 2 * RcppParams(x).getIntValue("val");
     84: return Rcpp::wrap(y);
     85: END_RCPP
     86: }
     87:
     88:
     89: SEXP RcppParams_String( SEXP x ){
     90: BEGIN_RCPP
     91: std::string y = RcppParams(x).getStringValue("val");
     92: y = y + y; // trivial string operation
     93: return Rcpp::wrap(y);
     94: END_RCPP
     95: }
     96:
     97:
     98: SEXP RcppParams_Bool( SEXP x ){
     99: BEGIN_RCPP
     100: bool y = RcppParams(x).getBoolValue("val");
     101: return Rcpp::wrap(y);
     102: END_RCPP
     103: }
     104:
     105:
     106: SEXP RcppParams_Date( SEXP x ){
     107: BEGIN_RCPP
     108: RcppDate y = RcppParams(x).getDateValue("val");
     109: RcppResultSet rs;
     110: rs.add("date", y);
     111: return rs.getReturnList();
     112: END_RCPP
     113: }
     114:
     115:
     116: SEXP RcppParams_Datetime( SEXP x ){
     117: BEGIN_RCPP
     118: RcppDatetime y = RcppParams(x).getDatetimeValue("val");
     119: RcppResultSet rs;
     120: rs.add("datetime", y);
     121: return rs.getReturnList();
     122: END_RCPP
     123: }
     124:
     125:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689311546a2a.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689311546a2a.cpp 2> file689311546a2a.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RObject.asStdVectorIntResultsSet ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68932ff35df0.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68932ff35df0.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68932ff35df0.cpp 2> file68932ff35df0.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.RcppDate ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68934b085f01.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68934b085f01.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68934b085f01.cpp 2> file68934b085f01.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.RcppDateVector ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68937b0c23a6.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68937b0c23a6.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68937b0c23a6.cpp 2> file68937b0c23a6.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.RcppDatetime ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689347c9173f.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689347c9173f.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689347c9173f.cpp 2> file689347c9173f.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.RcppDatetimeVector ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68934a62c04.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68934a62c04.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68934a62c04.cpp 2> file68934a62c04.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.RcppFrame ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68935dbf1387.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68935dbf1387.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68935dbf1387.cpp 2> file68935dbf1387.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.RcppMatrix.double ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68931c9017e7.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68931c9017e7.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68931c9017e7.cpp 2> file68931c9017e7.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.RcppMatrix.int ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689362e4c6c.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689362e4c6c.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689362e4c6c.cpp 2> file689362e4c6c.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.RcppStringVector ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893784b370d.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file6893784b370d.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file6893784b370d.cpp 2> file6893784b370d.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.RcppVector.double ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68933a3b5d05.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68933a3b5d05.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68933a3b5d05.cpp 2> file68933a3b5d05.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.RcppVector.int ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689338ac7386.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689338ac7386.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689338ac7386.cpp 2> file689338ac7386.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.SEXP ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689378d1a33.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689378d1a33.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689378d1a33.cpp 2> file689378d1a33.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.double ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68932d367db.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68932d367db.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68932d367db.cpp 2> file68932d367db.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.double.matrix ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68935e7572b1.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68935e7572b1.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68935e7572b1.cpp 2> file68935e7572b1.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.double.vector ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689371356bfb.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689371356bfb.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file689371356bfb.cpp 2> file689371356bfb.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.int ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68931e3673e0.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68931e3673e0.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68931e3673e0.cpp 2> file68931e3673e0.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.int.matrix ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68933e9b24e9.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){
     287: BEGIN_RCPP
     288: RcppFrame y(x);
     289: RcppResultSet rs;
     290: rs.add("", y);
     291: return rs.getReturnList();
     292: END_RCPP
     293: }
     294:
     295:
     296: SEXP SEXP_( SEXP x ){
     297: BEGIN_RCPP
     298: RcppResultSet rs;
     299: rs.add("", x, false);
     300: return rs.getReturnList();
     301: END_RCPP
     302: }
     303:
     304:
     Error in compileCode(f, code, language = language, verbose = verbose) :
     Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file68933e9b24e9.o'
     Current working directory /tmp/Rtmp2days0
     In addition: Warning message:
     running command '/home/ripley/R/cc/bin/R CMD SHLIB file68933e9b24e9.cpp 2> file68933e9b24e9.cpp.err.txt' had status 1 and error message 'Illegal seek'
    
    
     Executing test function test.RcppResultSet.int.vector ... "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
     "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
     Compilation aborted, too many Error messages.
     make: Fatal error: Command failed for target `file689332a1f50.o'
     Current working directory /tmp/Rtmp2days0
    
     ERROR(s) during compilation: source code errors or compiler configuration errors!
    
     Program source:
     1:
     2: // includes from the plugin
     3: #include <RcppClassic.h>
     4: #include <Rcpp.h>
     5:
     6:
     7: #ifndef BEGIN_RCPP
     8: #define BEGIN_RCPP
     9: #endif
     10:
     11: #ifndef END_RCPP
     12: #define END_RCPP
     13: #endif
     14:
     15: using namespace Rcpp;
     16:
     17:
     18: // user includes
     19:
     20:
     21: // declarations
     22: extern "C" {
     23: SEXP double_( ) ;
     24: SEXP int_( ) ;
     25: SEXP string_( ) ;
     26: SEXP double_vector( ) ;
     27: SEXP int_vector( ) ;
     28: SEXP double_matrix( ) ;
     29: SEXP int_matrix( ) ;
     30: SEXP RcppDate_( ) ;
     31: SEXP RcppDateVector_( SEXP x) ;
     32: SEXP RcppDatetime_( SEXP x) ;
     33: SEXP RcppDatetimeVector_( SEXP x) ;
     34: SEXP RcppStringVector_( SEXP x) ;
     35: SEXP std_vector_double( ) ;
     36: SEXP std_vector_int( ) ;
     37: SEXP std_vector_std_vector_double( ) ;
     38: SEXP std_vector_std_vector_int( ) ;
     39: SEXP std_vector_std_vector_string( ) ;
     40: SEXP RcppVector_int( SEXP x) ;
     41: SEXP RcppVector_double( SEXP x) ;
     42: SEXP RcppMatrix_int( SEXP x) ;
     43: SEXP RcppMatrix_double( SEXP x) ;
     44: SEXP RcppFrame_( SEXP x) ;
     45: SEXP SEXP_( SEXP x) ;
     46: }
     47:
     48: // definition
     49:
     50: SEXP double_( ){
     51: BEGIN_RCPP
     52: double y = 1.23456;
     53: RcppResultSet rs;
     54: rs.add("foo", y);
     55: return rs.getReturnList();
     56: END_RCPP
     57: }
     58:
     59:
     60: SEXP int_( ){
     61: BEGIN_RCPP
     62: int y = 42;
     63: RcppResultSet rs;
     64: rs.add("foo", y);
     65: return rs.getReturnList();
     66: END_RCPP
     67: }
     68:
     69:
     70: SEXP string_( ){
     71: BEGIN_RCPP
     72: std::string y = "hello unit tests";
     73: RcppResultSet rs;
     74: rs.add("foo", y);
     75: return rs.getReturnList();
     76: END_RCPP
     77: }
     78:
     79:
     80: SEXP double_vector( ){
     81: BEGIN_RCPP
     82: double y[3] = { 1.1, 2.2, 3.3 };
     83: RcppResultSet rs;
     84: rs.add("foo", y, 3);
     85: return rs.getReturnList();
     86: END_RCPP
     87: }
     88:
     89:
     90: SEXP int_vector( ){
     91: BEGIN_RCPP
     92: int y[3] = { 11, 22, 33 };
     93: RcppResultSet rs;
     94: rs.add("foo", y, 3);
     95: return rs.getReturnList();
     96: END_RCPP
     97: }
     98:
     99:
     100: SEXP double_matrix( ){
     101: BEGIN_RCPP
     102: double r1[2] = { 1.1, 2.2 };
     103: double r2[2] = { 3.3, 4.4 };
     104: double *y[2] = { r1, r2 };
     105: RcppResultSet rs;
     106: rs.add("foo", y, 2, 2);
     107: return rs.getReturnList();
     108: END_RCPP
     109: }
     110:
     111:
     112: SEXP int_matrix( ){
     113: BEGIN_RCPP
     114: int r1[2] = { 11, 22 };
     115: int r2[2] = { 33, 44 };
     116: int *y[2] = { r1, r2 };
     117: RcppResultSet rs;
     118: rs.add("foo", y, 2, 2);
     119: return rs.getReturnList();
     120: END_RCPP
     121: }
     122:
     123:
     124: SEXP RcppDate_( ){
     125: BEGIN_RCPP
     126: RcppDate y(01,01,2000); // silly North American mon-day-year
     127: RcppResultSet rs;
     128: rs.add("foo", y);
     129: return rs.getReturnList();
     130: END_RCPP
     131: }
     132:
     133:
     134: SEXP RcppDateVector_( SEXP x ){
     135: BEGIN_RCPP
     136: RcppDateVector y(x);
     137: RcppResultSet rs;
     138: rs.add("foo", y);
     139: return rs.getReturnList();
     140: END_RCPP
     141: }
     142:
     143:
     144: SEXP RcppDatetime_( SEXP x ){
     145: BEGIN_RCPP
     146: RcppDatetime y(x);
     147: RcppResultSet rs;
     148: rs.add("foo", y);
     149: return rs.getReturnList();
     150: END_RCPP
     151: }
     152:
     153:
     154: SEXP RcppDatetimeVector_( SEXP x ){
     155: BEGIN_RCPP
     156: RcppDatetimeVector y(x);
     157: RcppResultSet rs;
     158: rs.add("foo", y);
     159: return rs.getReturnList();
     160: END_RCPP
     161: }
     162:
     163:
     164: SEXP RcppStringVector_( SEXP x ){
     165: BEGIN_RCPP
     166: RcppStringVector y(x);
     167: RcppResultSet rs;
     168: rs.add("foo", y);
     169: return rs.getReturnList();
     170: END_RCPP
     171: }
     172:
     173:
     174: SEXP std_vector_double( ){
     175: BEGIN_RCPP
     176: std::vector<double> y;
     177: y.push_back(1.1);
     178: y.push_back(2.2);
     179: y.push_back(3.3);
     180: RcppResultSet rs;
     181: rs.add("foo", y);
     182: return rs.getReturnList();
     183: END_RCPP
     184: }
     185:
     186:
     187: SEXP std_vector_int( ){
     188: BEGIN_RCPP
     189: std::vector<int> y;
     190: y.push_back(11);
     191: y.push_back(22);
     192: y.push_back(33);
     193: RcppResultSet rs;
     194: rs.add("foo", y);
     195: return rs.getReturnList();
     196: END_RCPP
     197: }
     198:
     199:
     200: SEXP std_vector_std_vector_double( ){
     201: BEGIN_RCPP
     202: std::vector<double> yy;
     203: yy.push_back(1.1);
     204: yy.push_back(2.2);
     205: yy.push_back(3.3);
     206: std::vector< std::vector<double> > y;
     207: y.push_back(yy);
     208: y.push_back(yy);
     209: RcppResultSet rs;
     210: rs.add("foo", y);
     211: return rs.getReturnList();
     212: END_RCPP
     213: }
     214:
     215:
     216: SEXP std_vector_std_vector_int( ){
     217: BEGIN_RCPP
     218: std::vector<int> yy;
     219: yy.push_back(11);
     220: yy.push_back(22);
     221: yy.push_back(33);
     222: std::vector< std::vector<int> > y;
     223: y.push_back(yy);
     224: y.push_back(yy);
     225: RcppResultSet rs;
     226: rs.add("foo", y);
     227: return rs.getReturnList();
     228: END_RCPP
     229: }
     230:
     231:
     232: SEXP std_vector_std_vector_string( ){
     233: BEGIN_RCPP
     234: std::string a("hello");
     235: std::string b("goodbye");
     236: std::vector< std::string > y;
     237: y.push_back(a);
     238: y.push_back(b);
     239: RcppResultSet rs;
     240: rs.add("foo", y);
     241: return rs.getReturnList();
     242: END_RCPP
     243: }
     244:
     245:
     246: SEXP RcppVector_int( SEXP x ){
     247: BEGIN_RCPP
     248: RcppVector<int> y(x);
     249: RcppResultSet rs;
     250: rs.add("foo", y);
     251: return rs.getReturnList();
     252: END_RCPP
     253: }
     254:
     255:
     256: SEXP RcppVector_double( SEXP x ){
     257: BEGIN_RCPP
     258: RcppVector<double> y(x);
     259: RcppResultSet rs;
     260: rs.add("foo", y);
     261: return rs.getReturnList();
     262: END_RCPP
     263: }
     264:
     265:
     266: SEXP RcppMatrix_int( SEXP x ){
     267: BEGIN_RCPP
     268: RcppMatrix<int> y(x);
     269: RcppResultSet rs;
     270: rs.add("foo", y);
     271: return rs.getReturnList();
     272: END_RCPP
     273: }
     274:
     275:
     276: SEXP RcppMatrix_double( SEXP x ){
     277: BEGIN_RCPP
     278: RcppMatrix<double> y(x);
     279: RcppResultSet rs;
     280: rs.add("foo", y);
     281: return rs.getReturnList();
     282: END_RCPP
     283: }
     284:
     285:
     286: SEXP RcppFrame_( SEXP x ){