It might be that r-forge always builds for the latest version of R so, you may need to upgrade to R 2.9 for that to work. I haven't tested with 2.9, though, so I don't know if all the dependent libraries have been updated yet.<br>
<br>You can try the attached which I just created by zipping up my currently installed version, compiled for R 2.8.<br><br><br><br><div class="gmail_quote">On Fri, Jun 12, 2009 at 5:30 PM, spencerg <span dir="ltr"><<a href="mailto:spencer.graves@prodsyse.com">spencer.graves@prodsyse.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, Ana:<br>
<br>
<br>
How can we get this development version? I encountered a problem just now with the standard "install.packages" copied from "<a href="http://r-forge.r-project.org/R/?group_id=145" target="_blank">http://r-forge.r-project.org/R/?group_id=145</a>":<br>
<br>
<br>
> install.packages("RBloomberg", repos="<a href="http://R-Forge.R-project.org" target="_blank">http://R-Forge.R-project.org</a>")<br>
Warning message:<br>
In getDependencies(pkgs, dependencies, available, lib) :<br>
package ‘RBloomberg’ is not available<br>
<br>
<br>
Thanks for your work in improving this package.<br>
Best Wishes,<br>
Spencer<br>
<br>
Ana Nelson wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Did you look at the example in the link I sent? And did you download the<br>
version of RBloomberg I specified?<br>
<br>
<br>
<br>
On Fri, Jun 12, 2009 at 4:25 PM, Ian Coe <<a href="mailto:ICoe@connectcap.com" target="_blank">ICoe@connectcap.com</a>> wrote:<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
<br>
<br>
A example of the code I’m trying ot run is below. I’ve tried putting in a<br>
field that says Currency=”USD”, but that doesn’t seem to do anything to the<br>
result.<br>
<br>
prices<-blpGetData(conn, "GOOG<br>
Equity",c("PX_Last"),start=as.chron("2008-01-01"))<br>
<br>
<br>
<br>
In VBA, you have the option to use GetHistoricalData2 to have the option to<br>
specify currency (see example below). From the Bloomberg WAPI help file,<br>
that is the only function that allows you specify the currency parameter.<br>
<br>
objDataControl.GetHistoricalData2 “GOOG Equity”, 1, arrayFields,<br>
CDate("2006/01/01"), "USD", CDate("2008/05/30"), Results:=vtResult<br>
<br>
<br>
<br>
I looked at the source in BLPGetHistoricalData.R and it looks like the call<br>
is being made to the Bloomberg function GetHistoricalData. I was wondering<br>
if I switched all the calls to GetHistoricalData2, if that would allow me to<br>
pass a currency parameter. Perhaps I am missing something…<br>
<br>
<br>
<br>
Please let me know if you have any questions.<br>
<br>
<br>
<br>
Thanks,<br>
<br>
Ian<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
*From:* Ana Nelson [mailto:<a href="mailto:nelson.ana@gmail.com" target="_blank">nelson.ana@gmail.com</a>]<br>
*Sent:* Friday, June 12, 2009 4:48 AM<br>
*To:* <a href="mailto:r-sig-finance@stat.math.ethz.ch" target="_blank">r-sig-finance@stat.math.ethz.ch</a><br>
*Cc:* Robert Sams; Ian Coe<br>
<br>
*Subject:* Re: [R-SIG-Finance] prices in usd<br>
<br>
<br>
<br>
This should be possible using an override field, it needs the latest<br>
development version of RBloomberg.<br>
<br>
<a href="http://r-forge.r-project.org/projects/rbloomberg/" target="_blank">http://r-forge.r-project.org/projects/rbloomberg/</a><br>
<br>
Check out the tests for examples:<br>
<br>
<a href="http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/trunk/inst/runit-tests/blpGetDataTest.R?rev=21&root=rbloomberg&view=markup" target="_blank">http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/trunk/inst/runit-tests/blpGetDataTest.R?rev=21&root=rbloomberg&view=markup</a><br>
<br>
Wow, I really need to update those examples. :-)<br>
<br>
If you have trouble, send me a specific example with tickers etc. and I'll<br>
try to come up with working code.<br>
<br>
<br>
<br>
On Fri, Jun 12, 2009 at 12:25 PM, Robert Sams <<a href="mailto:robert@sanctumfi.com" target="_blank">robert@sanctumfi.com</a>><br>
wrote:<br>
<br>
The currency parameter of the COM API is currently not supported in<br>
RBloomberg; support for it is on the wish list.<br>
~R<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:r-sig-finance-bounces@stat.math.ethz.ch" target="_blank">r-sig-finance-bounces@stat.math.ethz.ch</a><br>
[mailto:<a href="mailto:r-sig-finance-bounces@stat.math.ethz.ch" target="_blank">r-sig-finance-bounces@stat.math.ethz.ch</a>] On Behalf Of Ian Coe<br>
<br>
Sent: 11 June 2009 17:59<br>
To: <a href="mailto:r-sig-finance@stat.math.ethz.ch" target="_blank">r-sig-finance@stat.math.ethz.ch</a><br>
<br>
Subject: Re: [R-SIG-Finance] prices in usd<br>
<br>
ADDENDUM: In the past, I've used the getHistoricalData2 function from<br>
Bloomberg, but I'm not sure how to use that from R.<br>
<br>
Thanks,<br>
Ian<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:r-sig-finance-bounces@stat.math.ethz.ch" target="_blank">r-sig-finance-bounces@stat.math.ethz.ch</a><br>
[mailto:<a href="mailto:r-sig-finance-bounces@stat.math.ethz.ch" target="_blank">r-sig-finance-bounces@stat.math.ethz.ch</a>] On Behalf Of Ian Coe<br>
Sent: Thursday, June 11, 2009 9:34 AM<br>
To: <a href="mailto:r-sig-finance@stat.math.ethz.ch" target="_blank">r-sig-finance@stat.math.ethz.ch</a><br>
Subject: [R-SIG-Finance] prices in usd<br>
<br>
Hi,<br>
<br>
Does anyone know of a simple way to prices in usd? I can't see to<br>
get blpGetData to take a parameter allowing me to specify the currency.<br>
<br>
<br>
<br>
Thanks,<br>
<br>
Ian<br>
<br>
<br>
<br>
<br>
CONFIDENTIALITY NOTICE: This e-mail communication\ (incl...{{dropped:8}}<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:R-SIG-Finance@stat.math.ethz.ch" target="_blank">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>
<br>
<br>
</blockquote>
<br></div></div>
[[alternative HTML version deleted]]<br>
<br>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
<a href="mailto:R-SIG-Finance@stat.math.ethz.ch" target="_blank">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></blockquote>
<br>
</blockquote></div><br>