[R-SIG-Finance] Weird problem with latest RQuantLib not working with QuantMod on R 2.13.1
Dirk Eddelbuettel
edd at debian.org
Wed Sep 28 21:58:22 CEST 2011
Chandra,
FYI, here is a simple patch I tossed at Jeff earlier today and which he is
pondering. In the meantime, apply it to quantmod sources and you're safe
from any interferene from objects named 'adjust' by rewriting the test a
little more conservatively.
Hope this helps, Dirk
Index: pkg/R/getSymbols.R
===================================================================
--- pkg/R/getSymbols.R (revision 567)
+++ pkg/R/getSymbols.R (working copy)
@@ -190,7 +190,7 @@
function(Symbols,env,return.class='xts',index.class="Date",
from='2007-01-01',
to=Sys.Date(),
- ...)
+ ..., adjust)
{
importDefaults("getSymbols.yahoo")
this.env <- environment()
@@ -198,7 +198,7 @@
# import all named elements that are NON formals
assign(var, list(...)[[var]], this.env)
}
- if(!exists("adjust", environment()))
+ if(missing("adjust"))
adjust <- FALSE
default.return.class <- return.class
--
New Rcpp master class for R and C++ integration is scheduled for
San Francisco (Oct 8), more details / reg.info available at
http://www.revolutionanalytics.com/products/training/public/rcpp-master-class.php
More information about the R-SIG-Finance
mailing list