[Rcpp-commits] r2868 - in pkg/RcppBDT: . R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Jan 13 23:12:39 CET 2011


Author: edd
Date: 2011-01-13 23:12:38 +0100 (Thu, 13 Jan 2011)
New Revision: 2868

Modified:
   pkg/RcppBDT/ChangeLog
   pkg/RcppBDT/R/methods.R
   pkg/RcppBDT/man/bdt.Rd
Log:
added format method


Modified: pkg/RcppBDT/ChangeLog
===================================================================
--- pkg/RcppBDT/ChangeLog	2011-01-13 21:57:33 UTC (rev 2867)
+++ pkg/RcppBDT/ChangeLog	2011-01-13 22:12:38 UTC (rev 2868)
@@ -1,7 +1,7 @@
 2011-01-13  Dirk Eddelbuettel  <edd at debian.org>
 
-	* R/methods.R: added a print method
-	* man/bdt.Rd: documented print method
+	* R/methods.R: added print and format methods
+	* man/bdt.Rd: documented print and format methods
 
 2011-01-12  Dirk Eddelbuettel  <edd at debian.org>
 

Modified: pkg/RcppBDT/R/methods.R
===================================================================
--- pkg/RcppBDT/R/methods.R	2011-01-13 21:57:33 UTC (rev 2867)
+++ pkg/RcppBDT/R/methods.R	2011-01-13 22:12:38 UTC (rev 2868)
@@ -20,4 +20,4 @@
 
 setMethod("print", "Rcpp_date", function(x, ...) print(x$getDate(), ...))
 
-
+setMethod("format", "Rcpp_date", function(x, ...) format(x$getDate(), ...))

Modified: pkg/RcppBDT/man/bdt.Rd
===================================================================
--- pkg/RcppBDT/man/bdt.Rd	2011-01-13 21:57:33 UTC (rev 2867)
+++ pkg/RcppBDT/man/bdt.Rd	2011-01-13 22:12:38 UTC (rev 2868)
@@ -2,6 +2,7 @@
 \alias{bdt}
 \alias{bdtMod}
 \alias{print,Rcpp_date-method}
+\alias{format,Rcpp_date-method}
 \docType{package}
 \title{Default object for RcppBDT Boost Date_Time binding}
 \description{
@@ -17,8 +18,8 @@
 }
 \section{Method}{
   \describe{
-    \item{print}{\code{signature(x = "Rcpp_date")}: print a (BDT) date
-      class object}
+    \item{print}{\code{signature(x = "Rcpp_date")}: prints a (BDT) date class object}
+    \item{format}{\code{signature(x = "Rcpp_date")}: formats a (BDT) date class object}
   }
 }
 \details{



More information about the Rcpp-commits mailing list