[Rquantlib-commits] r253 - in pkg/RQuantLib: . src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Jun 16 17:32:50 CEST 2010
Author: edd
Date: 2010-06-16 17:32:50 +0200 (Wed, 16 Jun 2010)
New Revision: 253
Modified:
pkg/RQuantLib/DESCRIPTION
pkg/RQuantLib/src/calendars.cpp
Log:
take advantage of an improvement in Rcpp
Modified: pkg/RQuantLib/DESCRIPTION
===================================================================
--- pkg/RQuantLib/DESCRIPTION 2010-06-16 13:26:27 UTC (rev 252)
+++ pkg/RQuantLib/DESCRIPTION 2010-06-16 15:32:50 UTC (rev 253)
@@ -24,7 +24,7 @@
Note that while RQuantLib's code is licensed under the GPL (v2 or later),
QuantLib itself is released under a somewhat less restrictive Open Source
license (see QuantLib-License.txt).
-Depends: R (>= 2.7.0), Rcpp (>= 0.8.2.4)
+Depends: R (>= 2.7.0), Rcpp (>= 0.8.2.8)
LinkingTo: Rcpp
SystemRequirements: QuantLib library (>= 0.9.9) from http://quantlib.org,
Boost library (>= 1.34.0) from http://www.boost.org
Modified: pkg/RQuantLib/src/calendars.cpp
===================================================================
--- pkg/RQuantLib/src/calendars.cpp 2010-06-16 13:26:27 UTC (rev 252)
+++ pkg/RQuantLib/src/calendars.cpp 2010-06-16 15:32:50 UTC (rev 253)
@@ -356,7 +356,7 @@
if (holidays.size() > 0) {
RcppDateVector dv( holidays.size() );
for (unsigned int i = 0; i< holidays.size(); i++){
- dv.set(i, RcppDate(holidays[i].month(), holidays[i].dayOfMonth(), holidays[i].year()));
+ dv(i) = RcppDate(holidays[i].month(), holidays[i].dayOfMonth(), holidays[i].year());
}
return Rcpp::wrap(dv);
} else {
More information about the Rquantlib-commits
mailing list