[Rcpp-devel] errors in man/RcppParams.Rd

Dirk Eddelbuettel edd at debian.org
Wed Nov 18 05:12:54 CET 2009


On 18 November 2009 at 04:50, Frank S. Thomas wrote:
| Hi!
| 
| While reading the help of RcppParams I found some simple errors in it, see the 
| attached patch.
| 
| Cheers
| Frank
| 
| ----------------------------------------------------------------------
| Index: pkg/man/RcppParams.Rd
| ===================================================================
| --- pkg/man/RcppParams.Rd	(revision 178)
| +++ pkg/man/RcppParams.Rd	(working copy)
| @@ -46,11 +46,11 @@
|    \preformatted{%
|    SEXP someFunction(SEXP params) {
|      RcppParams par(params);
| -    double p   = RcppParams.getDoubleValue("pie");
| -    int magic  = RcppParams.getIntValue("magicanswer");
| -    string txt = RcppParams.getStringValue("sometext");
| -    bool yn    = RcppParams.getBoolValue("yesno");
| -    RcppDate d = RcppParams.getDateValue("today");
| +    double p   = par.getDoubleValue("pie");
| +    int magic  = par.getIntValue("magicanswer");
| +    string txt = par.getStringValue("sometext");
| +    bool yn    = par.getBoolValue("yesno");
| +    RcppDate d = par.getDateValue("today");
|      // some calculations ...
|      // some return values ...
|    }
| 
| ----------------------------------------------------------------------

Quite right!  I shall fix that rightaway. 

Thanks for taking the time to submit a patch!

Dirk

-- 
Three out of two people have difficulties with fractions.


More information about the Rcpp-devel mailing list