blotter updatePortf issue..
Hi Doug, Thanks. I tried by setting options(warn=0) but I still get the warning message with getSymbol. Following is the sessionInfo() and code I executed.
sessionInfo()
R version 2.15.1 (2012-06-22) Platform: x86_64-pc-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] blotter_0.8.11 FinancialInstrument_1.0 quantmod_0.3-20 [4] PerformanceAnalytics_1.0.4.4 TTR_0.21-1 Defaults_1.1-1 [7] xts_0.8-6 zoo_1.7-7 loaded via a namespace (and not attached): [1] grid_2.15.1 lattice_0.20-10 tools_2.15.1
options(warn=0)
getSymbols("SPY", src='yahoo', index.class=c("POSIXt","POSIXct"), from='2000-01-01')
[1] "SPY" Warning message: In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, : downloaded length 173389 != reported length 200
Regards, Durga
On Wed, Sep 5, 2012 at 8:59 AM, Doug Edmunds <dougedmunds at gmail.com> wrote:
On 9/3/2012 12:14 PM, G See wrote:
Second, I didn't get these warnings that you got
Perhaps you have warnings set to a negative number. On Windows (XP,7) I get warnings using getSymbol, with both the CRAN and newer Rforge versions of quantmod. Try setting warnings to the default of 0 options(warn=0)
install.packages("quantmod", repos="http://R-Forge.R-project.org")
Installing package(s) into ?C:/R/library? (as ?lib? is unspecified) trying URL 'http://R-Forge.R-project.org/bin/windows/contrib/2.15/quantmod_0.3-20.zip' Content type 'application/zip' length 448957 bytes (438 Kb) opened URL downloaded 438 Kb package ?quantmod? successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Documents and Settings\dae\Local Settings\Temp\RtmpcZmZ3k\downloaded_packages
library("quantmod")
Loading required package: Defaults
Loading required package: xts
Loading required package: zoo
Attaching package: ?zoo?
The following object(s) are masked from ?package:base?:
as.Date, as.Date.numeric
Loading required package: TTR
getSymbols("QQQ")
[1] "QQQ" Warning message: In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, : downloaded length 72200 != reported length 200
getSymbols("IWM")
[1] "IWM" Warning message: In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, : downloaded length 71729 != reported length 200
_______________________________________________ R-SIG-Finance at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. If you want to post, subscribe first. -- Also note that this is not the r-help list where general R questions should go.