I'm using R 2.7<br><br>There is a newer version of RBloomberg which you can try, 0.1-11. It's not on CRAN yet, but you can get it from r-forge:<br><a href="http://r-forge.r-project.org/projects/rbloomberg/">http://r-forge.r-project.org/projects/rbloomberg/</a><br>
<br>To install the package directly within R type: install.packages("RBloomberg",repos="<a href="http://R-Forge.R-project.org">http://R-Forge.R-project.org</a>")<br>
<br>I have attached a script of what I am running. Will you run this and send me your console transcript as a text file attachment? (you can send it directly to me, not the list)<br><br><br><br><div class="gmail_quote">2008/5/8 Jorge Nieves <<a href="mailto:jorge.nieves@moorecap.com">jorge.nieves@moorecap.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Thank you...<br>
<br>
I just re-run them now and obtained the same results.. What version of R<br>
are you using?<br>
<div><div></div><div class="Wj3C7c"><br>
-----Original Message-----<br>
From: <a href="mailto:r-sig-finance-bounces@stat.math.ethz.ch">r-sig-finance-bounces@stat.math.ethz.ch</a><br>
[mailto:<a href="mailto:r-sig-finance-bounces@stat.math.ethz.ch">r-sig-finance-bounces@stat.math.ethz.ch</a>] On Behalf Of Ana Nelson<br>
Sent: Thursday, May 08, 2008 11:40 AM<br>
To: <a href="mailto:r-sig-finance@stat.math.ethz.ch">r-sig-finance@stat.math.ethz.ch</a><br>
Subject: Re: [R-SIG-Finance] Rbloomberg problem<br>
<br>
Hi, Jorge,<br>
<br>
Was the market actually open for the time period you requested? I've<br>
just run those queries and they are working fine for me.<br>
<br>
Will you try this again making sure the market you are querying is open<br>
and let me know if it works for you?<br>
<br>
Regards,<br>
Ana<br>
<br>
<br>
<br>
2008/5/8 Jorge Nieves <<a href="mailto:jorge.nieves@moorecap.com">jorge.nieves@moorecap.com</a>>:<br>
<br>
> Hi,<br>
><br>
> I am new R user and have been trying to properly configure an R<br>
> working environment. I have it up and ruining except for the<br>
Rbloomberg.<br>
><br>
> I tried running the examples in the documentation. And encountered<br>
> into several issues: First, R2.5.1 was crashing and I could never<br>
> understand why. I installed the latest release R 2.7.0 and was<br>
> eventually able to run only tow of the examples from<br>
> blpGetData(RBloomberg)<br>
><br>
> The intraday "Intraday bars" and the "Tick-by-tick" examples do not<br>
run.<br>
> I am wondering if (1) made a mistake in the set up? Or (2) there is a<br>
> problem here with R 2.7.0 too.<br>
><br>
> Currently using<br>
> Package: RBloomberg<br>
> Version: 0.1-10<br>
> Date: 2006-05-04<br>
> Built: R 2.5.1; ; 2007-07-22 18:19:52; windows<br>
><br>
> Usinga lso 'RDCOMClient' version 0.92-0<br>
><br>
> Any recommendatiosn?<br>
><br>
> blpGetData(RBloomberg) examples.<br>
><br>
> library(RBloomberg)<br>
><br>
> .bbfields <- blpReadFields("C:/Program Files/blp/API")<br>
><br>
> ## Not run:<br>
> conn <- blpConnect()<br>
><br>
> ## Snapshot<br>
> eda <- blpGetData(conn, c("ED5 Comdty","ED6 Comdty","ED7 Comdty",<br>
> "ED8 Comdty"), "BID")<br>
> eda<br>
><br>
> ## Historical (last 30 days)<br>
> edb <- blpGetData(conn, "ED1 Comdty", "PX_LAST",<br>
> start=as.chron(Sys.time() - 86400 * 30)) edb<br>
><br>
> ## Intraday bars (last hour in 2 min bars) edc <- blpGetData(conn,<br>
> "ED1 Comdty", c("BID","ASK"),<br>
> start=as.chron(Sys.time() - 3600), barfields="OPEN", barsize=2) edc<br>
><br>
> ## Tick-by-tick (3 minutes starting an hour ago) edd <-<br>
> blpGetData(conn, "ED1 Comdty", c("BID"),<br>
> start=as.chron(Sys.time() - 3600),<br>
> end=as.chron(Sys.time() - 3420), barsize=0) edd<br>
><br>
> blpDisconnect(conn)<br>
> ## End(Not run)<br>
><br>
><br>
> Output<br>
><br>
><br>
><br>
> > .bbfields <- blpReadFields("C:/Program Files/blp/API")<br>
> ><br>
> > ## Not run:<br>
> > conn <- blpConnect()<br>
> ><br>
> > ## Snapshot<br>
> > eda <- blpGetData(conn, c("ED5 Comdty","ED6 Comdty","ED7 Comdty",<br>
> + "ED8 Comdty"), "BID")<br>
> > eda<br>
> BID<br>
> ED5 COMDTY 96.860<br>
> ED6 COMDTY 96.680<br>
> ED7 COMDTY 96.475<br>
> ED8 COMDTY 96.330<br>
> ><br>
> > ## Historical (last 30 days)<br>
> > edb <- blpGetData(conn, "ED1 Comdty", "PX_LAST",<br>
> + start=as.chron(Sys.time() - 86400 * 30))<br>
> > edb<br>
> PX_LAST<br>
> 04/08/08 97.530<br>
> 04/09/08 97.545<br>
> 04/10/08 97.500<br>
> 04/11/08 97.540<br>
> 04/14/08 97.495<br>
> 04/15/08 97.440<br>
> 04/16/08 97.290<br>
> 04/17/08 97.120<br>
> 04/18/08 97.090<br>
> 04/21/08 97.125<br>
> 04/22/08 97.125<br>
> 04/23/08 97.135<br>
> 04/24/08 97.145<br>
> 04/25/08 97.135<br>
> 04/28/08 97.195<br>
> 04/29/08 97.245<br>
> 04/30/08 97.325<br>
> 05/01/08 97.330<br>
> 05/02/08 97.365<br>
> 05/05/08 97.350<br>
> 05/06/08 97.365<br>
> 05/07/08 97.365<br>
> 05/08/08 97.395<br>
> ><br>
> > ## Intraday bars (last hour in 2 min bars) edc <- blpGetData(conn,<br>
> > "ED1 Comdty", c("BID","ASK"),<br>
> + start=as.chron(Sys.time() - 3600), barfields="OPEN", barsize=2)<br>
> > edc<br>
> BID.OPEN ASK.OPEN<br>
> (05/08/08 09:26:21) NA NA<br>
> ><br>
> > ## Tick-by-tick (3 minutes starting an hour ago) edd <-<br>
> > blpGetData(conn, "ED1 Comdty", c("BID"),<br>
> + start=as.chron(Sys.time() - 3600),<br>
> + end=as.chron(Sys.time() - 3420), barsize=0)<br>
> > edd<br>
> Error in substr(text, first, last) : invalid substring argument(s)<br>
> ><br>
> > blpDisconnect(conn)<br>
> used (Mb) gc trigger (Mb) max used (Mb)<br>
> Ncells 291899 7.8 531268 14.2 408779 11.0<br>
> Vcells 610228 4.7 1151091 8.8 1151024 8.8<br>
> > ## End(Not run)<br>
> ><br>
> > help(blpDisconnect)<br>
> ><br>
><br>
><br>
> Jorge Nieves<br>
><br>
><br>
><br>
> [[alternative HTML version deleted]]<br>
><br>
> _______________________________________________<br>
> <a href="mailto:R-SIG-Finance@stat.math.ethz.ch">R-SIG-Finance@stat.math.ethz.ch</a> mailing list<br>
> <a href="https://stat.ethz.ch/mailman/listinfo/r-sig-finance" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-sig-finance</a><br>
> -- Subscriber-posting only.<br>
> -- If you want to post, subscribe first.<br>
><br>
<br>
[[alternative HTML version deleted]]<br>
<br>
_______________________________________________<br>
<a href="mailto:R-SIG-Finance@stat.math.ethz.ch">R-SIG-Finance@stat.math.ethz.ch</a> mailing list<br>
<a href="https://stat.ethz.ch/mailman/listinfo/r-sig-finance" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-sig-finance</a><br>
-- Subscriber-posting only.<br>
-- If you want to post, subscribe first.<br>
<br>
_______________________________________________<br>
<a href="mailto:R-SIG-Finance@stat.math.ethz.ch">R-SIG-Finance@stat.math.ethz.ch</a> mailing list<br>
<a href="https://stat.ethz.ch/mailman/listinfo/r-sig-finance" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-sig-finance</a><br>
-- Subscriber-posting only.<br>
-- If you want to post, subscribe first.<br>
</div></div></blockquote></div><br>