[Rcpp-commits] r3655 - in pkg/RcppBDT: . R man src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Jul 1 14:49:32 CEST 2012
Author: edd
Date: 2012-07-01 14:49:32 +0200 (Sun, 01 Jul 2012)
New Revision: 3655
Modified:
pkg/RcppBDT/ChangeLog
pkg/RcppBDT/R/zzz.R
pkg/RcppBDT/man/bdt.Rd
pkg/RcppBDT/src/RcppBDT.cpp
Log:
changed so that the boost::gregorian::date is imported as module bdtDate
Modified: pkg/RcppBDT/ChangeLog
===================================================================
--- pkg/RcppBDT/ChangeLog 2012-06-30 20:16:16 UTC (rev 3654)
+++ pkg/RcppBDT/ChangeLog 2012-07-01 12:49:32 UTC (rev 3655)
@@ -2,6 +2,10 @@
* R/zzz.R: Updated for R 2.15.1 using loadModule() and evalqOnLoad()
+ * src/RcppBDT.cpp (RCPP_MODULE): Expose the module class as 'bdtDate'
+ * R/zzz.R: Updated accordingly
+ * man/bdt.Rd: Updated accordingly
+
* man/bdt.Rd: Added two required alias'es flagged by R CMD check
2012-04-11 Dirk Eddelbuettel <edd at debian.org>
Modified: pkg/RcppBDT/R/zzz.R
===================================================================
--- pkg/RcppBDT/R/zzz.R 2012-06-30 20:16:16 UTC (rev 3654)
+++ pkg/RcppBDT/R/zzz.R 2012-07-01 12:49:32 UTC (rev 3655)
@@ -35,7 +35,7 @@
## create a variable 'bdt' from out bdtMod Module
## this variable is used as a package-global instance
delayedAssign( "bdt", local( {
- x <- new( date )
+ x <- new( bdtDate )
x$setFromUTC()
x
}) )
@@ -45,7 +45,7 @@
## define an onLoad expression to set some methods
evalqOnLoad({
- setMethod("show", "Rcpp_date", .show_date)
+ setMethod("show", "Rcpp_bdtDate", .show_date)
setGeneric("format", function(x,...) standardGeneric("format") )
- setMethod("format", "Rcpp_date", .format_date )
+ setMethod("format", "Rcpp_bdtDate", .format_date )
})
Modified: pkg/RcppBDT/man/bdt.Rd
===================================================================
--- pkg/RcppBDT/man/bdt.Rd 2012-06-30 20:16:16 UTC (rev 3654)
+++ pkg/RcppBDT/man/bdt.Rd 2012-07-01 12:49:32 UTC (rev 3655)
@@ -1,10 +1,10 @@
\name{bdt}
\alias{bdt}
\alias{bdtMod}
-\alias{show,Rcpp_date-method}
-\alias{format,Rcpp_date-method}
-\alias{date}
-\alias{Rcpp_date-class}
+\alias{show,Rcpp_bdtDate-method}
+\alias{format,Rcpp_bdtDate-method}
+\alias{bdtDate}
+\alias{Rcpp_bdtDate-class}
\docType{package}
\title{Default object for RcppBDT Boost Date_Time binding}
\description{
Modified: pkg/RcppBDT/src/RcppBDT.cpp
===================================================================
--- pkg/RcppBDT/src/RcppBDT.cpp 2012-06-30 20:16:16 UTC (rev 3654)
+++ pkg/RcppBDT/src/RcppBDT.cpp 2012-07-01 12:49:32 UTC (rev 3655)
@@ -146,8 +146,8 @@
using namespace boost::gregorian;
using namespace Rcpp;
- // exposing a class (boost::gregorian::)date as "date" on the R side
- class_<date>("date")
+ // exposing a class (boost::gregorian::)date as "bdtDate" on the R side
+ class_<date>("bdtDate")
// constructors
.constructor("default constructor")
More information about the Rcpp-commits
mailing list