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

Last updated on 2017-05-24 19:47:43.

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

Package anytime

Current CRAN status: ERROR: 2, OK: 11

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
Flavor: r-patched-solaris-sparc

Version: 0.2.2
Flags: --no-stop-on-test-error
Check: tests
Result: ERROR
     Running ‘allFormats.R’
     Running ‘bulkTest.R’
     Running ‘gh_issue_12.R’
     Running ‘gh_issue_33.R’
     Running ‘gh_issue_5.R’
     Running ‘gh_issue_56.R’
     Running ‘gh_issues_36_51.R’
     Running ‘simpleTests.R’
     Running ‘utilities.R’
     Running ‘validate.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
    Running the tests in ‘tests/bulkTest.R’ failed.
    Complete output:
     >
     > ## we still have weird issues with some timezones so some testing needed
     > ## and while Boost Date_Time instantiates the formats relative to a locale
     > ## it remains tricky to change TZ on the fly
     >
     > library(anytime)
     >
     > verbose <- FALSE
     >
     > tzvec <- c( # courtesy of CCTZ
     + "Africa/Abidjan",
     + "Africa/Accra",
     + "Africa/Addis_Ababa",
     + "Africa/Algiers",
     + "Africa/Asmara",
     + "Africa/Asmera",
     + "Africa/Bamako",
     + "Africa/Bangui",
     + "Africa/Banjul",
     + "Africa/Bissau",
     + "Africa/Blantyre",
     + "Africa/Brazzaville",
     + "Africa/Bujumbura",
     + "Africa/Cairo",
     + "Africa/Casablanca",
     + "Africa/Ceuta",
     + "Africa/Conakry",
     + "Africa/Dakar",
     + "Africa/Dar_es_Salaam",
     + "Africa/Djibouti",
     + "Africa/Douala",
     + "Africa/El_Aaiun",
     + "Africa/Freetown",
     + "Africa/Gaborone",
     + "Africa/Harare",
     + "Africa/Johannesburg",
     + "Africa/Juba",
     + "Africa/Kampala",
     + "Africa/Khartoum",
     + "Africa/Kigali",
     + "Africa/Kinshasa",
     + "Africa/Lagos",
     + "Africa/Libreville",
     + "Africa/Lome",
     + "Africa/Luanda",
     + "Africa/Lubumbashi",
     + "Africa/Lusaka",
     + "Africa/Malabo",
     + "Africa/Maputo",
     + "Africa/Maseru",
     + "Africa/Mbabane",
     + "Africa/Mogadishu",
     + "Africa/Monrovia",
     + "Africa/Nairobi",
     + "Africa/Ndjamena",
     + "Africa/Niamey",
     + "Africa/Nouakchott",
     + "Africa/Ouagadougou",
     + "Africa/Porto-Novo",
     + "Africa/Sao_Tome",
     + "Africa/Timbuktu",
     + "Africa/Tripoli",
     + "Africa/Tunis",
     + "Africa/Windhoek",
     + "America/Adak",
     + "America/Anchorage",
     + "America/Anguilla",
     + "America/Antigua",
     + "America/Araguaina",
     + "America/Argentina/Buenos_Aires",
     + "America/Argentina/Catamarca",
     + "America/Argentina/ComodRivadavia",
     + "America/Argentina/Cordoba",
     + "America/Argentina/Jujuy",
     + "America/Argentina/La_Rioja",
     + "America/Argentina/Mendoza",
     + "America/Argentina/Rio_Gallegos",
     + "America/Argentina/Salta",
     + "America/Argentina/San_Juan",
     + "America/Argentina/San_Luis",
     + "America/Argentina/Tucuman",
     + "America/Argentina/Ushuaia",
     + "America/Aruba",
     + "America/Asuncion",
     + "America/Atikokan",
     + "America/Atka",
     + "America/Bahia",
     + "America/Bahia_Banderas",
     + "America/Barbados",
     + "America/Belem",
     + "America/Belize",
     + "America/Blanc-Sablon",
     + "America/Boa_Vista",
     + "America/Bogota",
     + "America/Boise",
     + "America/Buenos_Aires",
     + "America/Cambridge_Bay",
     + "America/Campo_Grande",
     + "America/Cancun",
     + "America/Caracas",
     + "America/Catamarca",
     + "America/Cayenne",
     + "America/Cayman",
     + "America/Chicago",
     + "America/Chihuahua",
     + "America/Coral_Harbour",
     + "America/Cordoba",
     + "America/Costa_Rica",
     + "America/Creston",
     + "America/Cuiaba",
     + "America/Curacao",
     + "America/Danmarkshavn",
     + "America/Dawson",
     + "America/Dawson_Creek",
     + "America/Denver",
     + "America/Detroit",
     + "America/Dominica",
     + "America/Edmonton",
     + "America/Eirunepe",
     + "America/El_Salvador",
     + "America/Ensenada",
     + "America/Fort_Wayne",
     + "America/Fortaleza",
     + "America/Glace_Bay",
     + "America/Godthab",
     + "America/Goose_Bay",
     + "America/Grand_Turk",
     + "America/Grenada",
     + "America/Guadeloupe",
     + "America/Guatemala",
     + "America/Guayaquil",
     + "America/Guyana",
     + "America/Halifax",
     + "America/Havana",
     + "America/Hermosillo",
     + "America/Indiana/Indianapolis",
     + "America/Indiana/Knox",
     + "America/Indiana/Marengo",
     + "America/Indiana/Petersburg",
     + "America/Indiana/Tell_City",
     + "America/Indiana/Vevay",
     + "America/Indiana/Vincennes",
     + "America/Indiana/Winamac",
     + "America/Indianapolis",
     + "America/Inuvik",
     + "America/Iqaluit",
     + "America/Jamaica",
     + "America/Jujuy",
     + "America/Juneau",
     + "America/Kentucky/Louisville",
     + "America/Kentucky/Monticello",
     + "America/Knox_IN",
     + "America/Kralendijk",
     + "America/La_Paz",
     + "America/Lima",
     + "America/Los_Angeles",
     + "America/Louisville",
     + "America/Lower_Princes",
     + "America/Maceio",
     + "America/Managua",
     + "America/Manaus",
     + "America/Marigot",
     + "America/Martinique",
     + "America/Matamoros",
     + "America/Mazatlan",
     + "America/Mendoza",
     + "America/Menominee",
     + "America/Merida",
     + "America/Metlakatla",
     + "America/Mexico_City",
     + "America/Miquelon",
     + "America/Moncton",
     + "America/Monterrey",
     + "America/Montevideo",
     + "America/Montreal",
     + "America/Montserrat",
     + "America/Nassau",
     + "America/New_York",
     + "America/Nipigon",
     + "America/Nome",
     + "America/Noronha",
     + "America/North_Dakota/Beulah",
     + "America/North_Dakota/Center",
     + "America/North_Dakota/New_Salem",
     + "America/Ojinaga",
     + "America/Panama",
     + "America/Pangnirtung",
     + "America/Paramaribo",
     + "America/Phoenix",
     + "America/Port-au-Prince",
     + "America/Port_of_Spain",
     + "America/Porto_Acre",
     + "America/Porto_Velho",
     + "America/Puerto_Rico",
     + "America/Rainy_River",
     + "America/Rankin_Inlet",
     + "America/Recife",
     + "America/Regina",
     + "America/Resolute",
     + "America/Rio_Branco",
     + "America/Rosario",
     + "America/Santa_Isabel",
     + "America/Santarem",
     + "America/Santiago",
     + "America/Santo_Domingo",
     + "America/Sao_Paulo",
     + "America/Scoresbysund",
     + "America/Shiprock",
     + "America/Sitka",
     + "America/St_Barthelemy",
     + "America/St_Johns",
     + "America/St_Kitts",
     + "America/St_Lucia",
     + "America/St_Thomas",
     + "America/St_Vincent",
     + "America/Swift_Current",
     + "America/Tegucigalpa",
     + "America/Thule",
     + "America/Thunder_Bay",
     + "America/Tijuana",
     + "America/Toronto",
     + "America/Tortola",
     + "America/Vancouver",
     + "America/Virgin",
     + "America/Whitehorse",
     + "America/Winnipeg",
     + "America/Yakutat",
     + "America/Yellowknife",
     + "Antarctica/Casey",
     + "Antarctica/Davis",
     + "Antarctica/DumontDUrville",
     + "Antarctica/Macquarie",
     + "Antarctica/Mawson",
     + "Antarctica/McMurdo",
     + "Antarctica/Palmer",
     + "Antarctica/Rothera",
     + "Antarctica/South_Pole",
     + "Antarctica/Syowa",
     + "Antarctica/Troll",
     + "Antarctica/Vostok",
     + "Arctic/Longyearbyen",
     + "Asia/Aden",
     + "Asia/Almaty",
     + "Asia/Amman",
     + "Asia/Anadyr",
     + "Asia/Aqtau",
     + "Asia/Aqtobe",
     + "Asia/Ashgabat",
     + "Asia/Ashkhabad",
     + "Asia/Baghdad",
     + "Asia/Bahrain",
     + "Asia/Baku",
     + "Asia/Bangkok",
     + "Asia/Beirut",
     + "Asia/Bishkek",
     + "Asia/Brunei",
     + "Asia/Calcutta",
     + "Asia/Chita",
     + "Asia/Choibalsan",
     + "Asia/Chongqing",
     + "Asia/Chungking",
     + "Asia/Colombo",
     + "Asia/Dacca",
     + "Asia/Damascus",
     + "Asia/Dhaka",
     + "Asia/Dili",
     + "Asia/Dubai",
     + "Asia/Dushanbe",
     + "Asia/Gaza",
     + "Asia/Harbin",
     + "Asia/Hebron",
     + "Asia/Ho_Chi_Minh",
     + "Asia/Hong_Kong",
     + "Asia/Hovd",
     + "Asia/Irkutsk",
     + "Asia/Istanbul",
     + "Asia/Jakarta",
     + "Asia/Jayapura",
     + "Asia/Jerusalem",
     + "Asia/Kabul",
     + "Asia/Kamchatka",
     + "Asia/Karachi",
     + "Asia/Kashgar",
     + "Asia/Kathmandu",
     + "Asia/Katmandu",
     + "Asia/Khandyga",
     + "Asia/Kolkata",
     + "Asia/Krasnoyarsk",
     + "Asia/Kuala_Lumpur",
     + "Asia/Kuching",
     + "Asia/Kuwait",
     + "Asia/Macao",
     + "Asia/Macau",
     + "Asia/Magadan",
     + "Asia/Makassar",
     + "Asia/Manila",
     + "Asia/Muscat",
     + "Asia/Nicosia",
     + "Asia/Novokuznetsk",
     + "Asia/Novosibirsk",
     + "Asia/Omsk",
     + "Asia/Oral",
     + "Asia/Phnom_Penh",
     + "Asia/Pontianak",
     + "Asia/Pyongyang",
     + "Asia/Qatar",
     + "Asia/Qyzylorda",
     + "Asia/Rangoon",
     + "Asia/Riyadh",
     + "Asia/Saigon",
     + "Asia/Sakhalin",
     + "Asia/Samarkand",
     + "Asia/Seoul",
     + "Asia/Shanghai",
     + "Asia/Singapore",
     + "Asia/Srednekolymsk",
     + "Asia/Taipei",
     + "Asia/Tashkent",
     + "Asia/Tbilisi",
     + "Asia/Tehran",
     + "Asia/Tel_Aviv",
     + "Asia/Thimbu",
     + "Asia/Thimphu",
     + "Asia/Tokyo",
     + "Asia/Ujung_Pandang",
     + "Asia/Ulaanbaatar",
     + "Asia/Ulan_Bator",
     + "Asia/Urumqi",
     + "Asia/Ust-Nera",
     + "Asia/Vientiane",
     + "Asia/Vladivostok",
     + "Asia/Yakutsk",
     + "Asia/Yekaterinburg",
     + "Asia/Yerevan",
     + "Atlantic/Azores",
     + "Atlantic/Bermuda",
     + "Atlantic/Canary",
     + "Atlantic/Cape_Verde",
     + "Atlantic/Faeroe",
     + "Atlantic/Faroe",
     + "Atlantic/Jan_Mayen",
     + "Atlantic/Madeira",
     + "Atlantic/Reykjavik",
     + "Atlantic/South_Georgia",
     + "Atlantic/St_Helena",
     + "Atlantic/Stanley",
     + "Australia/ACT",
     + "Australia/Adelaide",
     + "Australia/Brisbane",
     + "Australia/Broken_Hill",
     + "Australia/Canberra",
     + "Australia/Currie",
     + "Australia/Darwin",
     + "Australia/Eucla",
     + "Australia/Hobart",
     + "Australia/LHI",
     + "Australia/Lindeman",
     + "Australia/Lord_Howe",
     + "Australia/Melbourne",
     + "Australia/NSW",
     + "Australia/North",
     + "Australia/Perth",
     + "Australia/Queensland",
     + "Australia/South",
     + "Australia/Sydney",
     + "Australia/Tasmania",
     + "Australia/Victoria",
     + "Australia/West",
     + "Australia/Yancowinna",
     + "Brazil/Acre",
     + "Brazil/DeNoronha",
     + "Brazil/East",
     + "Brazil/West",
     + "CET",
     + "CST6CDT",
     + "Canada/Atlantic",
     + "Canada/Central",
     + "Canada/East-Saskatchewan",
     + "Canada/Eastern",
     + "Canada/Mountain",
     + "Canada/Newfoundland",
     + "Canada/Pacific",
     + "Canada/Saskatchewan",
     + "Canada/Yukon",
     + "Chile/Continental",
     + "Chile/EasterIsland",
     + "Cuba",
     + "EET",
     + "EST",
     + "EST5EDT",
     + "Egypt",
     + "Eire",
     + "Etc/GMT",
     + "Etc/GMT+0",
     + "Etc/GMT+1",
     + "Etc/GMT+10",
     + "Etc/GMT+11",
     + "Etc/GMT+12",
     + "Etc/GMT+2",
     + "Etc/GMT+3",
     + "Etc/GMT+4",
     + "Etc/GMT+5",
     + "Etc/GMT+6",
     + "Etc/GMT+7",
     + "Etc/GMT+8",
     + "Etc/GMT+9",
     + "Etc/GMT-0",
     + "Etc/GMT-1",
     + "Etc/GMT-10",
     + "Etc/GMT-11",
     + "Etc/GMT-12",
     + "Etc/GMT-13",
     + "Etc/GMT-14",
     + "Etc/GMT-2",
     + "Etc/GMT-3",
     + "Etc/GMT-4",
     + "Etc/GMT-5",
     + "Etc/GMT-6",
     + "Etc/GMT-7",
     + "Etc/GMT-8",
     + "Etc/GMT-9",
     + "Etc/GMT0",
     + "Etc/Greenwich",
     + "Etc/UCT",
     + "Etc/UTC",
     + "Etc/Universal",
     + "Etc/Zulu",
     + "Europe/Amsterdam",
     + "Europe/Andorra",
     + "Europe/Athens",
     + "Europe/Belfast",
     + "Europe/Belgrade",
     + "Europe/Berlin",
     + "Europe/Bratislava",
     + "Europe/Brussels",
     + "Europe/Bucharest",
     + "Europe/Budapest",
     + "Europe/Busingen",
     + "Europe/Chisinau",
     + "Europe/Copenhagen",
     + "Europe/Dublin",
     + "Europe/Gibraltar",
     + "Europe/Guernsey",
     + "Europe/Helsinki",
     + "Europe/Isle_of_Man",
     + "Europe/Istanbul",
     + "Europe/Jersey",
     + "Europe/Kaliningrad",
     + "Europe/Kiev",
     + "Europe/Lisbon",
     + "Europe/Ljubljana",
     + "Europe/London",
     + "Europe/Luxembourg",
     + "Europe/Madrid",
     + "Europe/Malta",
     + "Europe/Mariehamn",
     + "Europe/Minsk",
     + "Europe/Monaco",
     + "Europe/Moscow",
     + "Europe/Nicosia",
     + "Europe/Oslo",
     + "Europe/Paris",
     + "Europe/Podgorica",
     + "Europe/Prague",
     + "Europe/Riga",
     + "Europe/Rome",
     + "Europe/Samara",
     + "Europe/San_Marino",
     + "Europe/Sarajevo",
     + "Europe/Simferopol",
     + "Europe/Skopje",
     + "Europe/Sofia",
     + "Europe/Stockholm",
     + "Europe/Tallinn",
     + "Europe/Tirane",
     + "Europe/Tiraspol",
     + "Europe/Uzhgorod",
     + "Europe/Vaduz",
     + "Europe/Vatican",
     + "Europe/Vienna",
     + "Europe/Vilnius",
     + "Europe/Volgograd",
     + "Europe/Warsaw",
     + "Europe/Zagreb",
     + "Europe/Zaporozhye",
     + "Europe/Zurich",
     + "GB",
     + "GB-Eire",
     + "GMT",
     + "GMT+0",
     + "GMT-0",
     + "GMT0",
     + "Greenwich",
     + "HST",
     + "Hongkong",
     + "Iceland",
     + "Indian/Antananarivo",
     + "Indian/Chagos",
     + "Indian/Christmas",
     + "Indian/Cocos",
     + "Indian/Comoro",
     + "Indian/Kerguelen",
     + "Indian/Mahe",
     + "Indian/Maldives",
     + "Indian/Mauritius",
     + "Indian/Mayotte",
     + "Indian/Reunion",
     + "Iran",
     + "Israel",
     + "Jamaica",
     + "Japan",
     + "Kwajalein",
     + "Libya",
     + "MET",
     + "MST",
     + "MST7MDT",
     + "Mexico/BajaNorte",
     + "Mexico/BajaSur",
     + "Mexico/General",
     + "NZ",
     + "NZ-CHAT",
     + "Navajo",
     + "PRC",
     + "PST8PDT",
     + "Pacific/Apia",
     + "Pacific/Auckland",
     + "Pacific/Bougainville",
     + "Pacific/Chatham",
     + "Pacific/Chuuk",
     + "Pacific/Easter",
     + "Pacific/Efate",
     + "Pacific/Enderbury",
     + "Pacific/Fakaofo",
     + "Pacific/Fiji",
     + "Pacific/Funafuti",
     + "Pacific/Galapagos",
     + "Pacific/Gambier",
     + "Pacific/Guadalcanal",
     + "Pacific/Guam",
     + "Pacific/Honolulu",
     + "Pacific/Johnston",
     + "Pacific/Kiritimati",
     + "Pacific/Kosrae",
     + "Pacific/Kwajalein",
     + "Pacific/Majuro",
     + "Pacific/Marquesas",
     + "Pacific/Midway",
     + "Pacific/Nauru",
     + "Pacific/Niue",
     + "Pacific/Norfolk",
     + "Pacific/Noumea",
     + "Pacific/Pago_Pago",
     + "Pacific/Palau",
     + "Pacific/Pitcairn",
     + "Pacific/Pohnpei",
     + "Pacific/Ponape",
     + "Pacific/Port_Moresby",
     + "Pacific/Rarotonga",
     + "Pacific/Saipan",
     + "Pacific/Samoa",
     + "Pacific/Tahiti",
     + "Pacific/Tarawa",
     + "Pacific/Tongatapu",
     + "Pacific/Truk",
     + "Pacific/Wake",
     + "Pacific/Wallis",
     + "Pacific/Yap",
     + "Poland",
     + "Portugal",
     + "ROC",
     + "ROK",
     + "Singapore",
     + "Turkey",
     + "UCT",
     + "US/Alaska",
     + "US/Aleutian",
     + "US/Arizona",
     + "US/Central",
     + "US/East-Indiana",
     + "US/Eastern",
     + "US/Hawaii",
     + "US/Indiana-Starke",
     + "US/Michigan",
     + "US/Mountain",
     + "US/Pacific",
     + "US/Pacific-New",
     + "US/Samoa",
     + "UTC",
     + "Universal",
     + "W-SU",
     + "WET",
     + "Zulu"
     + )
     >
     > fullPOSIXctEx <- function(tstr) {
     + for (tz in tzvec) {
     + ## for anytime, the returned POSIXct object has the 'target' timezone (default is local)
     + at <- format( anytime(tstr, tz=tz) )
     + ## for as.POSIXct, we give tz when we format
     + pt <- format(as.POSIXct(tstr ), tz=tz)
     + if (verbose) cat(at, " -- ", pt, " -- ", tz, "\n")
     + stopifnot(all.equal(at, pt))
     + }
     + }
     >
     > fullDateEx <- function(tstr) {
     + for (tz in tzvec) {
     + at <- format(anydate(tstr))
     + pt <- format(as.Date(tstr))
     + if (verbose) cat(at, " -- ", pt, " -- ", tz, "\n")
     + stopifnot(all.equal(at, pt))
     + }
     + }
     >
     > fullPOSIXctEx("2016-07-11 12:13:14") # test summer
     Error: at and pt are not equal:
     1 string mismatch
     Execution halted
    Running the tests in ‘tests/simpleTests.R’ failed.
    Complete output:
     >
     > options(digits.secs=6)
     >
     > library(anytime)
     >
     > ref <- as.POSIXct(as.POSIXlt(format(as.Date("2016-01-01")+0:2)))
     >
     > ## Dates: Integer
     > stopifnot(ref == anytime(20160101L + 0:2))
     Error: ref == anytime(20160101L + 0:2) are not all TRUE
     Execution halted
Flavor: 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

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

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: NOTE: 1, OK: 12

Version: 0.1.2
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘git2r’
Flavor: r-release-osx-x86_64

Version: 0.1.2
Check: Rd cross-references
Result: NOTE
    Package unavailable to check Rd xrefs: ‘git2r’
Flavor: r-release-osx-x86_64

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

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, r-oldrel-osx-x86_64

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
Flavors: r-release-osx-x86_64, r-oldrel-osx-x86_64

Package gettz

Current CRAN status: NOTE: 6, OK: 7

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, r-patched-linux-x86_64, r-release-linux-x86_64

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

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: OK: 13

Package pkgKitten

Current CRAN status: OK: 13

Package random

Current CRAN status: NOTE: 1, OK: 12

Version: 0.2.6
Check: re-building of vignette outputs
Result: NOTE
    Error in re-building vignettes:
     ...
    Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, :
     Running 'texi2dvi' on 'random-essay.tex' failed.
    LaTeX errors:
    ! LaTeX Error: File `vmargin.sty' not found.
    
    Type X to quit or <RETURN> to proceed,
    or enter new name. (Default extension: sty)
    
    ! Emergency stop.
    <read *>
    
    l.4 \setpapersize
     {USletter} % use USletter paper^^M
    ! ==> Fatal error occurred, no output PDF file produced!
    Calls: buildVignettes -> texi2pdf -> texi2dvi
    Execution halted
Flavor: r-release-osx-x86_64

Package RApiDatetime

Current CRAN status: OK: 13

Package RApiSerialize

Current CRAN status: OK: 13

Package Rblpapi

Current CRAN status: NOTE: 7, OK: 4

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

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

Package Rcpp

Current CRAN status: NOTE: 13

Additional issues

clang-UBSAN

Version: 0.12.11
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.11
Flags: --no-stop-on-test-error
Check: installed package size
Result: NOTE
     installed size is 13.5Mb
     sub-directories of 1Mb or more:
     doc 1.7Mb
     include 6.4Mb
     libs 3.7Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-sparc, r-patched-solaris-x86

Version: 0.12.11
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

Version: 0.12.11
Check: installed package size
Result: NOTE
     installed size is 11.5Mb
     sub-directories of 1Mb or more:
     doc 1.7Mb
     include 6.3Mb
     libs 2.0Mb
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-osx-x86_64

Version: 0.12.11
Check: re-building of vignette outputs
Result: NOTE
    Error in re-building vignettes:
     ...
    Loading required package: inline
    
    Attaching package: ‘inline’
    
    The following object is masked from ‘package:Rcpp’:
    
     registerPlugin
    
    Loading required package: highlight
    Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, :
     Running 'texi2dvi' on 'Rcpp-FAQ.tex' failed.
    LaTeX errors:
    ! LaTeX Error: File `vmargin.sty' not found.
    
    Type X to quit or <RETURN> to proceed,
    or enter new name. (Default extension: sty)
    
    ! Emergency stop.
    <read *>
    
    l.383 \setmargrb
     {0.75in}{0.75in}{0.75in}{0.75in}^^M
    ! ==> Fatal error occurred, no output PDF file produced!
    Calls: buildVignettes -> texi2pdf -> texi2dvi
    Execution halted
Flavor: r-release-osx-x86_64

Version: 0.12.10
Check: installed package size
Result: NOTE
     installed size is 11.3Mb
     sub-directories of 1Mb or more:
     doc 1.7Mb
     include 6.2Mb
     libs 2.0Mb
Flavor: r-oldrel-windows-ix86+x86_64

Version: 0.12.11
Check: dependencies in R code
Result: NOTE
    Missing or unexported object: ‘tools::package_native_routine_registration_skeleton’
Flavor: r-oldrel-osx-x86_64

Version: 0.12.11
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-oldrel-osx-x86_64

Package RcppAnnoy

Current CRAN status: NOTE: 6, OK: 7

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, r-patched-linux-x86_64, r-release-linux-x86_64

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

Package RcppAPT

Current CRAN status: ERROR: 2, NOTE: 4

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, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.0.3
Check: whether package can be installed
Result: ERROR
    Installation failed.
Flavors: r-release-osx-x86_64, r-oldrel-osx-x86_64

Package RcppArmadillo

Current CRAN status: ERROR: 5, NOTE: 6, OK: 2

Version: 0.7.800.2.0
Check: tests
Result: ERROR
     Running ‘doRUnit.R’ [55s/56s]
    Running the tests in ‘tests/doRUnit.R’ failed.
    Last 13 lines of output:
     test.sparse.list: (1 checks) ... OK (0 seconds)
     test.sparse.multiplication: (1 checks) ... OK (0 seconds)
     test.sparse.sqrt: (1 checks) ... OK (0 seconds)
     test.sparse.square: (1 checks) ... OK (0 seconds)
     test.sparse.transpose: (1 checks) ... OK (0 seconds)
     >
     > ## Return success or failure to R CMD CHECK
     > if (getErrors(tests)$nFail > 0) {
     + stop("TEST FAILED!")
     + }
     > if (getErrors(tests)$nErr > 0) {
     + stop("TEST HAD ERRORS!")
     + }
     Error: TEST HAD ERRORS!
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.7.800.2.0
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
    #endif // TINYFORMAT_H_INCLUDED
     ^
    1 warning generated.
    In file included from sample.cpp:23:
    In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:31:
    In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/RcppArmadilloForward.h:26:
    In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include/RcppCommon.h:70:
    /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
    #endif // TINYFORMAT_H_INCLUDED
     ^
    1 warning generated.
    In file included from sparse.cpp:23:
    In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:31:
    In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/RcppArmadilloForward.h:26:
    In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include/RcppCommon.h:70:
    /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
    #endif // TINYFORMAT_H_INCLUDED
     ^
    1 warning generated.
    
    Error: processing vignette ‘RcppArmadillo-unitTests.Rnw’ failed with diagnostics:
     chunk 2 (label = unitTesting)
    Error in eval(expr, .GlobalEnv) : unit test problems: 1 errors
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.7.800.2.0
Check: tests
Result: ERROR
     Running ‘doRUnit.R’ [58s/59s]
    Running the tests in ‘tests/doRUnit.R’ failed.
    Last 13 lines of output:
     test.sparse.list: (1 checks) ... OK (0 seconds)
     test.sparse.multiplication: (1 checks) ... OK (0 seconds)
     test.sparse.sqrt: (1 checks) ... OK (0 seconds)
     test.sparse.square: (1 checks) ... OK (0 seconds)
     test.sparse.transpose: (1 checks) ... OK (0 seconds)
     >
     > ## Return success or failure to R CMD CHECK
     > if (getErrors(tests)$nFail > 0) {
     + stop("TEST FAILED!")
     + }
     > if (getErrors(tests)$nErr > 0) {
     + stop("TEST HAD ERRORS!")
     + }
     Error: TEST HAD ERRORS!
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.7.800.2.0
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    rmultinom.cpp: In function ‘Rcpp::IntegerVector rmultinomC(int, int, Rcpp::NumericVector)’:
    rmultinom.cpp:13:44: error: invalid initialization of non-const reference of type ‘arma::vec& {aka arma::Col<double>&}’ from an rvalue of type ‘arma::vec {aka arma::Col<double>}’
     RcppArmadillo::FixProb(fixprob, 1, true);
     ^
    In file included from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/armadillo_bits/Col_meat.hpp:1723:0,
     from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/armadillo:564,
     from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadilloForward.h:46,
     from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:31,
     from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadilloExtensions/rmultinom.h:28,
     from rmultinom.cpp:2:
    /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo/Col_meat.h:28:8: note: after user-defined conversion: arma::Col<eT>::Col(const Rcpp::VectorBase<RTYPE, NA, VECTOR>&) [with int RTYPE = 14; bool NA = true; VECTOR = Rcpp::Vector<14, Rcpp::PreserveStorage>; eT = double]
     inline Col<eT>::Col( const Rcpp::VectorBase<RTYPE,NA,VECTOR>& X )
     ^~~~~~~
    In file included from rmultinom.cpp:3:0:
    /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadilloExtensions/fixprob.h:29:14: note: initializing argument 1 of ‘void Rcpp::RcppArmadillo::FixProb(arma::vec&, int, bool)’
     void FixProb(arma::vec &prob, const int size, const bool replace) {
     ^~~~~~~
    make[1]: *** [rmultinom.o] Error 1
    Error in sourceCpp(file.path(get("pathRcppArmadilloTests"), "cpp", file)) :
     Error 1 occurred building shared library.
    
    Error: processing vignette ‘RcppArmadillo-unitTests.Rnw’ failed with diagnostics:
     chunk 2 (label = unitTesting)
    Error in eval(expr, .GlobalEnv) : unit test problems: 1 errors
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.7.800.2.0
Flags: --no-stop-on-test-error
Check: installed package size
Result: NOTE
     installed size is 6.9Mb
     sub-directories of 1Mb or more:
     include 4.8Mb
     libs 1.3Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-sparc, r-patched-solaris-x86

Version: 0.7.800.2.0
Flags: --no-stop-on-test-error
Check: tests
Result: ERROR
     Running ‘doRUnit.R’ [114s/134s]
    Running the tests in ‘tests/doRUnit.R’ failed.
    Complete output:
     > # Copyright (C) 2010 - 2013 Dirk Eddelbuettel, Romain Francois and Douglas Bates
     > # Copyright (C) 2014 Dirk Eddelbuettel
     > # Earlier copyrights Gregor Gorjanc, Martin Maechler and Murray Stokely as detailed below
     > #
     > # This file is part of RcppArmadillo.
     > #
     > # RcppArmadillo is free software: you can redistribute it and/or
     > # modify it under the terms of the GNU General Public License as
     > # published by the Free Software Foundation, either version 2 of the
     > # License, or (at your option) any later version.
     > #
     > # RcppArmadillo is distributed in the hope that it will be useful, but
     > # WITHOUT ANY WARRANTY; without even the implied warranty of
     > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
     > # General Public License for more details.
     > #
     > # You should have received a copy of the GNU General Public License
     > # along with RcppArmadillo. If not, see <http://www.gnu.org/licenses/>.
     >
     > ## doRUnit.R --- Run RUnit tests
     > ##
     > ## with credits to package fUtilities in RMetrics
     > ## which credits Gregor Gojanc's example in CRAN package 'gdata'
     > ## as per the R Wiki http://wiki.r-project.org/rwiki/doku.php?id=developers:runit
     > ## and changed further by Martin Maechler
     > ## and more changes by Murray Stokely in HistogramTools
     > ## and then used adapted in RProtoBuf
     > ## and now used in Rcpp and here
     > ##
     > ## Dirk Eddelbuettel, Feb - June 2014
     >
     > stopifnot(require(RUnit, quietly=TRUE))
     > stopifnot(require(RcppArmadillo, quietly=TRUE))
     >
     > ## Define tests
     > testSuite <- defineTestSuite(name="RcppArmadillo Unit Tests",
     + dirs=system.file("unitTests", package = "RcppArmadillo"),
     + testFuncRegexp = "^[Tt]est.+")
     >
     > ## without this, we get (or used to get) unit test failures
     > Sys.setenv("R_TESTS"="")
     >
     > ## Run tests
     > tests <- runTestSuite(testSuite)
    
    
     Executing test function test.armadillo.mat.const ... In file included from armadillo.cpp:23:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
     In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
     /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
     #endif // TINYFORMAT_H_INCLUDED
     ^
     1 warning generated.
     done successfully.
    
    
    
     Executing test function test.armadillo.mat.const.ref ... done successfully.
    
    
    
     Executing test function test.armadillo.mat.plain ... done successfully.
    
    
    
     Executing test function test.armadillo.mat.ref ... done successfully.
    
    
    
     Executing test function test.armadillo.sugar.ctor ... done successfully.
    
    
    
     Executing test function test.armadillo.sugar.matrix.ctor ... done successfully.
    
    
    
     Executing test function test.armadillo.unsigned.as ... done successfully.
    
    
    
     Executing test function test.armadillo.vec.const ... done successfully.
    
    
    
     Executing test function test.armadillo.vec.const.ref ... done successfully.
    
    
    
     Executing test function test.armadillo.vec.plain ... done successfully.
    
    
    
     Executing test function test.armadillo.vec.ref ... done successfully.
    
    
    
     Executing test function test.as.Col ... done successfully.
    
    
    
     Executing test function test.as.Mat ... done successfully.
    
    
    
     Executing test function test.as.Row ... done successfully.
    
    
    
     Executing test function test.cxmat ... done successfully.
    
    
    
     Executing test function test.mtGlue ... done successfully.
    
    
    
     Executing test function test.mtOp ... done successfully.
    
    
    
     Executing test function test.sugar ... done successfully.
    
    
    
     Executing test function test.sugar.cplx ... done successfully.
    
    
    
     Executing test function test.wrap.Glue ... done successfully.
    
    
    
     Executing test function test.wrap.Op ... done successfully.
    
    
    
     Executing test function test.wrap.R ... done successfully.
    
    
    
     Executing test function test.complex ... In file included from complex.cpp:22:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
     In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
     /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
     #endif // TINYFORMAT_H_INCLUDED
     ^
     1 warning generated.
     done successfully.
    
    
    
     Executing test function test.cube ... In file included from cube.cpp:25:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
     In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
     /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
     #endif // TINYFORMAT_H_INCLUDED
     ^
     1 warning generated.
     done successfully.
    
    
    
     Executing test function test.fastLm ... done successfully.
    
    
    
     Executing test function test.fastLm.default ... done successfully.
    
    
    
     Executing test function test.fastLm.formula ... done successfully.
    
    
    
     Executing test function test.summary.fastLm ... done successfully.
    
    
    
     Executing test function test.rmultinom ... In file included from rmultinom.cpp:2:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloExtensions/rmultinom.h:28:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
     In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
     /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
     #endif // TINYFORMAT_H_INCLUDED
     ^
     rmultinom.cpp:13:28: error: non-const lvalue reference to type 'arma::vec' (aka 'Col<double>') cannot bind to a value of unrelated type 'NumericVector' (aka 'Vector<14>')
     RcppArmadillo::FixProb(fixprob, 1, true);
     ^~~~~~~
     /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloExtensions/fixprob.h:29:33: note: passing argument to parameter 'prob' here
     void FixProb(arma::vec &prob, const int size, const bool replace) {
     ^
     1 warning and 1 error generated.
     make[1]: *** [rmultinom.o] Error 1
     make[1]: Target 'all' not remade because of errors.
     make[1]: Entering directory '/tmp/RtmpbnxNF8/sourceCpp-x86_64-pc-linux-gnu-0.12.11/sourcecpp_2e864eb0a62b'
     clang++ -I/data/gannet/ripley/R/R-clang/include -DNDEBUG -I"/data/gannet/ripley/R/test-clang/Rcpp/include" -I"/data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include" -I"/data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/cpp" -isystem /usr/local/clang/include -fpic -g -O3 -Wall -pedantic -frtti -c rmultinom.cpp -o rmultinom.o
     /data/gannet/ripley/R/R-clang/etc/Makeconf:166: recipe for target 'rmultinom.o' failed
     make[1]: Leaving directory '/tmp/RtmpbnxNF8/sourceCpp-x86_64-pc-linux-gnu-0.12.11/sourcecpp_2e864eb0a62b'
     Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RcppArmadillo")) :
     Error 1 occurred building shared library.
    
    
     Executing test function test.randi ... In file included from rng.cpp:23:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
     In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
     /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
     #endif // TINYFORMAT_H_INCLUDED
     ^
     1 warning generated.
     done successfully.
    
    
    
     Executing test function test.randi.seed ... done successfully.
    
    
    
     Executing test function test.randn ... done successfully.
    
    
    
     Executing test function test.randn.seed ... done successfully.
    
    
    
     Executing test function test.randu ... done successfully.
    
    
    
     Executing test function test.randu.seed ... done successfully.
    
    
    
     Executing test function test.sample ... In file included from sample.cpp:23:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
     In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
     /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
     #endif // TINYFORMAT_H_INCLUDED
     ^
     1 warning generated.
     done successfully.
    
    
    
     Executing test function test.as.sparse ... In file included from sparse.cpp:23:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
     In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
     In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
     /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
     #endif // TINYFORMAT_H_INCLUDED
     ^
     1 warning generated.
     done successfully.
    
    
    
     Executing test function test.sparse.addition ... done successfully.
    
    
    
     Executing test function test.sparse.fromTriplet ... done successfully.
    
    
    
     Executing test function test.sparse.iterators ... done successfully.
    
    
    
     Executing test function test.sparse.list ... done successfully.
    
    
    
     Executing test function test.sparse.multiplication ... done successfully.
    
    
    
     Executing test function test.sparse.sqrt ... done successfully.
    
    
    
     Executing test function test.sparse.square ... done successfully.
    
    
    
     Executing test function test.sparse.transpose ... done successfully.
    
     >
     > ## Print results
     > printTextProtocol(tests)
     RUNIT TEST PROTOCOL -- Mon May 22 12:19:48 2017
     ***********************************************
     Number of test functions: 45
     Number of errors: 1
     Number of failures: 0
    
    
     1 Test Suite :
     RcppArmadillo Unit Tests - 45 test functions, 1 error, 0 failures
     ERROR in .setUp (before test.rmultinom): Error executing .setUp before test.rmultinom : Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RcppArmadillo")) :
     Error 1 occurred building shared library.
    
    
    
     Details
     ***************************
     Test Suite: RcppArmadillo Unit Tests
     Test function regexp: ^[Tt]est.+
     Test file regexp: ^runit.+\.[rR]$
     Involved directory:
     /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/unitTests
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.RcppArmadillo.R
     test.armadillo.mat.const: (1 checks) ... OK (0.01 seconds)
     test.armadillo.mat.const.ref: (1 checks) ... OK (0 seconds)
     test.armadillo.mat.plain: (1 checks) ... OK (0 seconds)
     test.armadillo.mat.ref: (1 checks) ... OK (0 seconds)
     test.armadillo.sugar.ctor: (1 checks) ... OK (0 seconds)
     test.armadillo.sugar.matrix.ctor: (1 checks) ... OK (0 seconds)
     test.armadillo.unsigned.as: (8 checks) ... OK (0 seconds)
     test.armadillo.vec.const: (1 checks) ... OK (0 seconds)
     test.armadillo.vec.const.ref: (1 checks) ... OK (0 seconds)
     test.armadillo.vec.plain: (1 checks) ... OK (0 seconds)
     test.armadillo.vec.ref: (1 checks) ... OK (0 seconds)
     test.as.Col: (1 checks) ... OK (0 seconds)
     test.as.Mat: (1 checks) ... OK (0 seconds)
     test.as.Row: (1 checks) ... OK (0 seconds)
     test.cxmat: (1 checks) ... OK (0 seconds)
     test.mtGlue: (1 checks) ... OK (0 seconds)
     test.mtOp: (1 checks) ... OK (0 seconds)
     test.sugar: (1 checks) ... OK (0 seconds)
     test.sugar.cplx: (1 checks) ... OK (0 seconds)
     test.wrap.Glue: (1 checks) ... OK (0 seconds)
     test.wrap.Op: (1 checks) ... OK (0 seconds)
     test.wrap.R: (10 checks) ... OK (0.02 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.complex.R
     test.complex: (11 checks) ... OK (0.01 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.cube.R
     test.cube: (18 checks) ... OK (0.06 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.fastLm.R
     test.fastLm: (3 checks) ... OK (0.01 seconds)
     test.fastLm.default: (5 checks) ... OK (0.01 seconds)
     test.fastLm.formula: (5 checks) ... OK (0.06 seconds)
     test.summary.fastLm: (12 checks) ... OK (0.08 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.rmultinom.R
     .setUp (before test.rmultinom): ERROR !!
     Error executing .setUp before test.rmultinom : Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RcppArmadillo")) :
     Error 1 occurred building shared library.
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.rng.R
     test.randi: (2 checks) ... OK (0 seconds)
     test.randi.seed: (1 checks) ... OK (0 seconds)
     test.randn: (3 checks) ... OK (0 seconds)
     test.randn.seed: (1 checks) ... OK (0 seconds)
     test.randu: (2 checks) ... OK (0 seconds)
     test.randu.seed: (1 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.sample.R
     test.sample: (21 checks) ... OK (0.09 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.sparse.R
     test.as.sparse: (1 checks) ... OK (0 seconds)
     test.sparse.addition: (1 checks) ... OK (0.02 seconds)
     test.sparse.fromTriplet: (1 checks) ... OK (0.01 seconds)
     test.sparse.iterators: (1 checks) ... OK (0.01 seconds)
     test.sparse.list: (1 checks) ... OK (0 seconds)
     test.sparse.multiplication: (1 checks) ... OK (0.01 seconds)
     test.sparse.sqrt: (1 checks) ... OK (0 seconds)
     test.sparse.square: (1 checks) ... OK (0 seconds)
     test.sparse.transpose: (1 checks) ... OK (0 seconds)
     >
     > ## Return success or failure to R CMD CHECK
     > if (getErrors(tests)$nFail > 0) {
     + stop("TEST FAILED!")
     + }
     > if (getErrors(tests)$nErr > 0) {
     + stop("TEST HAD ERRORS!")
     + }
     Error: TEST HAD ERRORS!
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.7.800.2.0
Flags: --no-stop-on-test-error
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    Loading required package: RcppArmadillo
    In file included from armadillo.cpp:23:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
    In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
    /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
    #endif // TINYFORMAT_H_INCLUDED
     ^
    1 warning generated.
    In file included from complex.cpp:22:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
    In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
    /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
    #endif // TINYFORMAT_H_INCLUDED
     ^
    1 warning generated.
    In file included from cube.cpp:25:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
    In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
    /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
    #endif // TINYFORMAT_H_INCLUDED
     ^
    1 warning generated.
    In file included from rmultinom.cpp:2:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloExtensions/rmultinom.h:28:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
    In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
    /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
    #endif // TINYFORMAT_H_INCLUDED
     ^
    rmultinom.cpp:13:28: error: non-const lvalue reference to type 'arma::vec' (aka 'Col<double>') cannot bind to a value of unrelated type 'NumericVector' (aka 'Vector<14>')
     RcppArmadillo::FixProb(fixprob, 1, true);
     ^~~~~~~
    /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloExtensions/fixprob.h:29:33: note: passing argument to parameter 'prob' here
     void FixProb(arma::vec &prob, const int size, const bool replace) {
     ^
    1 warning and 1 error generated.
    make[1]: *** [rmultinom.o] Error 1
    Error in sourceCpp(file.path(get("pathRcppArmadilloTests"), "cpp", file)) :
     Error 1 occurred building shared library.
    In file included from rng.cpp:23:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
    In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
    /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
    #endif // TINYFORMAT_H_INCLUDED
     ^
    1 warning generated.
    In file included from sample.cpp:23:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
    In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
    /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
    #endif // TINYFORMAT_H_INCLUDED
     ^
    1 warning generated.
    In file included from sparse.cpp:23:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31:
    In file included from /data/gannet/ripley/R/packages/tests-clang/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:26:
    In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:70:
    /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/utils/tinyformat.h:1046:32: warning: no newline at end of file [-Wnewline-eof]
    #endif // TINYFORMAT_H_INCLUDED
     ^
    1 warning generated.
    
    Error: processing vignette 'RcppArmadillo-unitTests.Rnw' failed with diagnostics:
     chunk 2 (label = unitTesting)
    Error in eval(expr, .GlobalEnv) : unit test problems: 1 errors
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.7.800.2.0
Flags: --no-stop-on-test-error
Check: tests
Result: ERROR
     Running ‘doRUnit.R’ [115s/265s]
    Running the tests in ‘tests/doRUnit.R’ failed.
    Complete output:
     > # Copyright (C) 2010 - 2013 Dirk Eddelbuettel, Romain Francois and Douglas Bates
     > # Copyright (C) 2014 Dirk Eddelbuettel
     > # Earlier copyrights Gregor Gorjanc, Martin Maechler and Murray Stokely as detailed below
     > #
     > # This file is part of RcppArmadillo.
     > #
     > # RcppArmadillo is free software: you can redistribute it and/or
     > # modify it under the terms of the GNU General Public License as
     > # published by the Free Software Foundation, either version 2 of the
     > # License, or (at your option) any later version.
     > #
     > # RcppArmadillo is distributed in the hope that it will be useful, but
     > # WITHOUT ANY WARRANTY; without even the implied warranty of
     > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
     > # General Public License for more details.
     > #
     > # You should have received a copy of the GNU General Public License
     > # along with RcppArmadillo. If not, see <http://www.gnu.org/licenses/>.
     >
     > ## doRUnit.R --- Run RUnit tests
     > ##
     > ## with credits to package fUtilities in RMetrics
     > ## which credits Gregor Gojanc's example in CRAN package 'gdata'
     > ## as per the R Wiki http://wiki.r-project.org/rwiki/doku.php?id=developers:runit
     > ## and changed further by Martin Maechler
     > ## and more changes by Murray Stokely in HistogramTools
     > ## and then used adapted in RProtoBuf
     > ## and now used in Rcpp and here
     > ##
     > ## Dirk Eddelbuettel, Feb - June 2014
     >
     > stopifnot(require(RUnit, quietly=TRUE))
     > stopifnot(require(RcppArmadillo, quietly=TRUE))
     >
     > ## Define tests
     > testSuite <- defineTestSuite(name="RcppArmadillo Unit Tests",
     + dirs=system.file("unitTests", package = "RcppArmadillo"),
     + testFuncRegexp = "^[Tt]est.+")
     >
     > ## without this, we get (or used to get) unit test failures
     > Sys.setenv("R_TESTS"="")
     >
     > ## Run tests
     > tests <- runTestSuite(testSuite)
    
    
     Executing test function test.armadillo.mat.const ... done successfully.
    
    
    
     Executing test function test.armadillo.mat.const.ref ... done successfully.
    
    
    
     Executing test function test.armadillo.mat.plain ... done successfully.
    
    
    
     Executing test function test.armadillo.mat.ref ... done successfully.
    
    
    
     Executing test function test.armadillo.sugar.ctor ... done successfully.
    
    
    
     Executing test function test.armadillo.sugar.matrix.ctor ... done successfully.
    
    
    
     Executing test function test.armadillo.unsigned.as ... done successfully.
    
    
    
     Executing test function test.armadillo.vec.const ... done successfully.
    
    
    
     Executing test function test.armadillo.vec.const.ref ... done successfully.
    
    
    
     Executing test function test.armadillo.vec.plain ... done successfully.
    
    
    
     Executing test function test.armadillo.vec.ref ... done successfully.
    
    
    
     Executing test function test.as.Col ... done successfully.
    
    
    
     Executing test function test.as.Mat ... done successfully.
    
    
    
     Executing test function test.as.Row ... done successfully.
    
    
    
     Executing test function test.cxmat ... done successfully.
    
    
    
     Executing test function test.mtGlue ... done successfully.
    
    
    
     Executing test function test.mtOp ... done successfully.
    
    
    
     Executing test function test.sugar ... done successfully.
    
    
    
     Executing test function test.sugar.cplx ... done successfully.
    
    
    
     Executing test function test.wrap.Glue ... done successfully.
    
    
    
     Executing test function test.wrap.Op ... done successfully.
    
    
    
     Executing test function test.wrap.R ... done successfully.
    
    
    
     Executing test function test.complex ... done successfully.
    
    
    
     Executing test function test.cube ... done successfully.
    
    
    
     Executing test function test.fastLm ... done successfully.
    
    
    
     Executing test function test.fastLm.default ... done successfully.
    
    
    
     Executing test function test.fastLm.formula ... done successfully.
    
    
    
     Executing test function test.summary.fastLm ... done successfully.
    
    
    
     Executing test function test.rmultinom ... rmultinom.cpp: In function ‘Rcpp::IntegerVector rmultinomC(int, int, Rcpp::NumericVector)’:
     rmultinom.cpp:13:44: error: invalid initialization of non-const reference of type ‘arma::vec& {aka arma::Col<double>&}’ from an rvalue of type ‘arma::vec {aka arma::Col<double>}’
     RcppArmadillo::FixProb(fixprob, 1, true);
     ^
     In file included from /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/armadillo_bits/Col_meat.hpp:1723:0,
     from /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/armadillo:564,
     from /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:46,
     from /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31,
     from /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloExtensions/rmultinom.h:28,
     from rmultinom.cpp:2:
     /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo/Col_meat.h:28:8: note: after user-defined conversion: arma::Col<eT>::Col(const Rcpp::VectorBase<RTYPE, NA, VECTOR>&) [with int RTYPE = 14; bool NA = true; VECTOR = Rcpp::Vector<14, Rcpp::PreserveStorage>; eT = double]
     inline Col<eT>::Col( const Rcpp::VectorBase<RTYPE,NA,VECTOR>& X )
     ^~~~~~~
     In file included from rmultinom.cpp:3:0:
     /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloExtensions/fixprob.h:29:14: note: initializing argument 1 of ‘void Rcpp::RcppArmadillo::FixProb(arma::vec&, int, bool)’
     void FixProb(arma::vec &prob, const int size, const bool replace) {
     ^~~~~~~
     make[1]: *** [rmultinom.o] Error 1
     make[1]: Target 'all' not remade because of errors.
     make[1]: Entering directory '/tmp/RtmpH5VJkl/sourceCpp-x86_64-pc-linux-gnu-0.12.11/sourcecpp_467d70e5bac7'
     g++ -std=gnu++98 -I/data/gannet/ripley/R/R-devel/include -DNDEBUG -I"/data/gannet/ripley/R/test-3.5/Rcpp/include" -I"/data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include" -I"/data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/cpp" -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -c rmultinom.cpp -o rmultinom.o
     /data/gannet/ripley/R/R-devel/etc/Makeconf:166: recipe for target 'rmultinom.o' failed
     make[1]: Leaving directory '/tmp/RtmpH5VJkl/sourceCpp-x86_64-pc-linux-gnu-0.12.11/sourcecpp_467d70e5bac7'
     Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RcppArmadillo")) :
     Error 1 occurred building shared library.
    
    
     Executing test function test.randi ... done successfully.
    
    
    
     Executing test function test.randi.seed ... done successfully.
    
    
    
     Executing test function test.randn ... done successfully.
    
    
    
     Executing test function test.randn.seed ... done successfully.
    
    
    
     Executing test function test.randu ... done successfully.
    
    
    
     Executing test function test.randu.seed ... done successfully.
    
    
    
     Executing test function test.sample ... done successfully.
    
    
    
     Executing test function test.as.sparse ... done successfully.
    
    
    
     Executing test function test.sparse.addition ... done successfully.
    
    
    
     Executing test function test.sparse.fromTriplet ... done successfully.
    
    
    
     Executing test function test.sparse.iterators ... done successfully.
    
    
    
     Executing test function test.sparse.list ... done successfully.
    
    
    
     Executing test function test.sparse.multiplication ... done successfully.
    
    
    
     Executing test function test.sparse.sqrt ... done successfully.
    
    
    
     Executing test function test.sparse.square ... done successfully.
    
    
    
     Executing test function test.sparse.transpose ... done successfully.
    
     >
     > ## Print results
     > printTextProtocol(tests)
     RUNIT TEST PROTOCOL -- Mon May 22 08:43:17 2017
     ***********************************************
     Number of test functions: 45
     Number of errors: 1
     Number of failures: 0
    
    
     1 Test Suite :
     RcppArmadillo Unit Tests - 45 test functions, 1 error, 0 failures
     ERROR in .setUp (before test.rmultinom): Error executing .setUp before test.rmultinom : Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RcppArmadillo")) :
     Error 1 occurred building shared library.
    
    
    
     Details
     ***************************
     Test Suite: RcppArmadillo Unit Tests
     Test function regexp: ^[Tt]est.+
     Test file regexp: ^runit.+\.[rR]$
     Involved directory:
     /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/unitTests
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.RcppArmadillo.R
     test.armadillo.mat.const: (1 checks) ... OK (0 seconds)
     test.armadillo.mat.const.ref: (1 checks) ... OK (0 seconds)
     test.armadillo.mat.plain: (1 checks) ... OK (0 seconds)
     test.armadillo.mat.ref: (1 checks) ... OK (0 seconds)
     test.armadillo.sugar.ctor: (1 checks) ... OK (0 seconds)
     test.armadillo.sugar.matrix.ctor: (1 checks) ... OK (0 seconds)
     test.armadillo.unsigned.as: (8 checks) ... OK (0 seconds)
     test.armadillo.vec.const: (1 checks) ... OK (0 seconds)
     test.armadillo.vec.const.ref: (1 checks) ... OK (0 seconds)
     test.armadillo.vec.plain: (1 checks) ... OK (0 seconds)
     test.armadillo.vec.ref: (1 checks) ... OK (0 seconds)
     test.as.Col: (1 checks) ... OK (0 seconds)
     test.as.Mat: (1 checks) ... OK (0 seconds)
     test.as.Row: (1 checks) ... OK (0 seconds)
     test.cxmat: (1 checks) ... OK (0 seconds)
     test.mtGlue: (1 checks) ... OK (0 seconds)
     test.mtOp: (1 checks) ... OK (0 seconds)
     test.sugar: (1 checks) ... OK (0 seconds)
     test.sugar.cplx: (1 checks) ... OK (0 seconds)
     test.wrap.Glue: (1 checks) ... OK (0 seconds)
     test.wrap.Op: (1 checks) ... OK (0 seconds)
     test.wrap.R: (10 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.complex.R
     test.complex: (11 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.cube.R
     test.cube: (18 checks) ... OK (0.09 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.fastLm.R
     test.fastLm: (3 checks) ... OK (0.03 seconds)
     test.fastLm.default: (5 checks) ... OK (0.01 seconds)
     test.fastLm.formula: (5 checks) ... OK (0.09 seconds)
     test.summary.fastLm: (12 checks) ... OK (0.19 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.rmultinom.R
     .setUp (before test.rmultinom): ERROR !!
     Error executing .setUp before test.rmultinom : Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RcppArmadillo")) :
     Error 1 occurred building shared library.
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.rng.R
     test.randi: (2 checks) ... OK (0.01 seconds)
     test.randi.seed: (1 checks) ... OK (0 seconds)
     test.randn: (3 checks) ... OK (0 seconds)
     test.randn.seed: (1 checks) ... OK (0 seconds)
     test.randu: (2 checks) ... OK (0 seconds)
     test.randu.seed: (1 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.sample.R
     test.sample: (21 checks) ... OK (0.13 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/unitTests/runit.sparse.R
     test.as.sparse: (1 checks) ... OK (0 seconds)
     test.sparse.addition: (1 checks) ... OK (0.05 seconds)
     test.sparse.fromTriplet: (1 checks) ... OK (0.01 seconds)
     test.sparse.iterators: (1 checks) ... OK (0.03 seconds)
     test.sparse.list: (1 checks) ... OK (0.02 seconds)
     test.sparse.multiplication: (1 checks) ... OK (0.02 seconds)
     test.sparse.sqrt: (1 checks) ... OK (0.02 seconds)
     test.sparse.square: (1 checks) ... OK (0 seconds)
     test.sparse.transpose: (1 checks) ... OK (0 seconds)
     >
     > ## Return success or failure to R CMD CHECK
     > if (getErrors(tests)$nFail > 0) {
     + stop("TEST FAILED!")
     + }
     > if (getErrors(tests)$nErr > 0) {
     + stop("TEST HAD ERRORS!")
     + }
     Error: TEST HAD ERRORS!
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.7.800.2.0
Flags: --no-stop-on-test-error
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    Loading required package: RcppArmadillo
    rmultinom.cpp: In function ‘Rcpp::IntegerVector rmultinomC(int, int, Rcpp::NumericVector)’:
    rmultinom.cpp:13:44: error: invalid initialization of non-const reference of type ‘arma::vec& {aka arma::Col<double>&}’ from an rvalue of type ‘arma::vec {aka arma::Col<double>}’
     RcppArmadillo::FixProb(fixprob, 1, true);
     ^
    In file included from /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/armadillo_bits/Col_meat.hpp:1723:0,
     from /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/armadillo:564,
     from /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloForward.h:46,
     from /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo.h:31,
     from /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloExtensions/rmultinom.h:28,
     from rmultinom.cpp:2:
    /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadillo/Col_meat.h:28:8: note: after user-defined conversion: arma::Col<eT>::Col(const Rcpp::VectorBase<RTYPE, NA, VECTOR>&) [with int RTYPE = 14; bool NA = true; VECTOR = Rcpp::Vector<14, Rcpp::PreserveStorage>; eT = double]
     inline Col<eT>::Col( const Rcpp::VectorBase<RTYPE,NA,VECTOR>& X )
     ^~~~~~~
    In file included from rmultinom.cpp:3:0:
    /data/gannet/ripley/R/packages/tests-devel/RcppArmadillo.Rcheck/RcppArmadillo/include/RcppArmadilloExtensions/fixprob.h:29:14: note: initializing argument 1 of ‘void Rcpp::RcppArmadillo::FixProb(arma::vec&, int, bool)’
     void FixProb(arma::vec &prob, const int size, const bool replace) {
     ^~~~~~~
    make[1]: *** [rmultinom.o] Error 1
    Error in sourceCpp(file.path(get("pathRcppArmadilloTests"), "cpp", file)) :
     Error 1 occurred building shared library.
    
    Error: processing vignette 'RcppArmadillo-unitTests.Rnw' failed with diagnostics:
     chunk 2 (label = unitTesting)
    Error in eval(expr, .GlobalEnv) : unit test problems: 1 errors
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.7.800.2.0
Check: installed package size
Result: NOTE
     installed size is 7.4Mb
     sub-directories of 1Mb or more:
     include 5.0Mb
     libs 1.6Mb
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 0.7.800.2.0
Check: running tests for arch ‘i386’
Result: ERROR
     Running 'doRUnit.R' [125s]
    Running the tests in 'tests/doRUnit.R' failed.
    Last 13 lines of output:
     test.sparse.list: (1 checks) ... OK (0 seconds)
     test.sparse.multiplication: (1 checks) ... OK (0 seconds)
     test.sparse.sqrt: (1 checks) ... OK (0 seconds)
     test.sparse.square: (1 checks) ... OK (0 seconds)
     test.sparse.transpose: (1 checks) ... OK (0 seconds)
     >
     > ## Return success or failure to R CMD CHECK
     > if (getErrors(tests)$nFail > 0) {
     + stop("TEST FAILED!")
     + }
     > if (getErrors(tests)$nErr > 0) {
     + stop("TEST HAD ERRORS!")
     + }
     Error: TEST HAD ERRORS!
     Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 0.7.800.2.0
Check: running tests for arch ‘x64’
Result: ERROR
     Running 'doRUnit.R' [118s]
    Running the tests in 'tests/doRUnit.R' failed.
    Last 13 lines of output:
     test.sparse.list: (1 checks) ... OK (0 seconds)
     test.sparse.multiplication: (1 checks) ... OK (0 seconds)
     test.sparse.sqrt: (1 checks) ... OK (0 seconds)
     test.sparse.square: (1 checks) ... OK (0 seconds)
     test.sparse.transpose: (1 checks) ... OK (0 seconds)
     >
     > ## Return success or failure to R CMD CHECK
     > if (getErrors(tests)$nFail > 0) {
     + stop("TEST FAILED!")
     + }
     > if (getErrors(tests)$nErr > 0) {
     + stop("TEST HAD ERRORS!")
     + }
     Error: TEST HAD ERRORS!
     Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 0.7.800.2.0
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
     from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/RcppArmadilloForward.h:46,
     from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/RcppArmadillo.h:31,
     from sample.cpp:23:
    d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/armadillo_bits/arma_ostream_meat.hpp:74:7: warning: integer constant is too large for 'long' type [-Wlong-long]
     ( cond_rel< (sizeof(eT) > 4) && is_same_type<sword,eT>::yes >::leq(val, eT(-10000000000)) )
     ^
    In file included from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/armadillo:392:0,
     from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/RcppArmadilloForward.h:46,
     from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/RcppArmadillo.h:31,
     from sparse.cpp:23:
    d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/armadillo_bits/arma_ostream_meat.hpp:72:7: warning: integer constant is too large for 'long' type [-Wlong-long]
     ( cond_rel< (sizeof(eT) > 4) && (is_same_type<uword,eT>::yes || is_same_type<sword,eT>::yes) >::geq(val, eT(+10000000000)) )
     ^
    In file included from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/armadillo:392:0,
     from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/RcppArmadilloForward.h:46,
     from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/RcppArmadillo.h:31,
     from sparse.cpp:23:
    d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/armadillo_bits/arma_ostream_meat.hpp:74:7: warning: integer constant is too large for 'long' type [-Wlong-long]
     ( cond_rel< (sizeof(eT) > 4) && is_same_type<sword,eT>::yes >::leq(val, eT(-10000000000)) )
     ^
    
    Error: processing vignette 'RcppArmadillo-unitTests.Rnw' failed with diagnostics:
     chunk 2 (label = unitTesting)
    Error in eval(expr, .GlobalEnv) : unit test problems: 1 errors
    Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 0.7.800.2.0
Check: re-building of vignette outputs
Result: NOTE
    Error in re-building vignettes:
     ...
    Loading required package: RcppArmadillo
    Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, :
     Running 'texi2dvi' on 'RcppArmadillo-unitTests.tex' failed.
    LaTeX errors:
    ! LaTeX Error: File `vmargin.sty' not found.
    
    Type X to quit or <RETURN> to proceed,
    or enter new name. (Default extension: sty)
    
    ! Emergency stop.
    <read *>
    
    l.7 \setmargrb
     {0.75in}{0.75in}{0.75in}{0.75in}^^M
    ! ==> Fatal error occurred, no output PDF file produced!
    Calls: buildVignettes -> texi2pdf -> texi2dvi
    Execution halted
Flavor: r-release-osx-x86_64

Package RcppBDT

Current CRAN status: NOTE: 8, OK: 5

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, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.2.3
Flags: --no-stop-on-test-error
Check: installed package size
Result: NOTE
     installed size is 8.2Mb
     sub-directories of 1Mb or more:
     libs 8.0Mb
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

Version: 0.2.3
Check: installed package size
Result: NOTE
     installed size is 6.7Mb
     sub-directories of 1Mb or more:
     libs 6.5Mb
Flavors: r-release-osx-x86_64, r-oldrel-osx-x86_64

Package RcppCCTZ

Current CRAN status: ERROR: 2, OK: 11

Version: 0.2.2
Check: whether package can be installed
Result: WARN
    Found the following significant warnings:
     time_tool.cc:212:5: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
Flavor: r-patched-solaris-sparc

Version: 0.2.2
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
Flavor: r-patched-solaris-sparc

Version: 0.2.2
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)
     Error in toTz(now, utc, lax) : Bad 'to' timezone
     Calls: format -> toTz -> .Call
     Execution halted
Flavor: r-patched-solaris-sparc

Version: 0.2.2
Flags: --no-stop-on-test-error
Check: whether package can be installed
Result: WARN
    Found the following significant warnings:
     time_tool.cc:212:5: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
Flavor: r-patched-solaris-x86

Version: 0.2.2
Flags: --no-stop-on-test-error
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
Flavor: r-patched-solaris-x86

Version: 0.2.2
Flags: --no-stop-on-test-error
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)
     Error in toTz(now, utc, lax) : Bad 'to' timezone
     Calls: format -> toTz -> .Call
     Execution halted
Flavor: r-patched-solaris-x86

Package RcppClassic

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

Additional issues

rchk

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, r-patched-linux-x86_64, r-release-linux-x86_64

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

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);