Message-ID: <20099.31838.491135.252189@max.nulle.part>
Date: 2011-09-28T19:58:22Z
From: Dirk Eddelbuettel
Subject: Weird problem with latest RQuantLib not working with QuantMod on R 2.13.1
In-Reply-To: <20098.40092.575877.184145@max.nulle.part>
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