Julien

Thanks again

When I run blpConnect(iface="Java") it worked
But when I run blpConnect(iface="Java", timeout=12000, show.days="week",
na.action="na", periodicity="daily"), I got an error message...



> conn=blpConnect(iface="Java",na.action="na",periodicity="daily")

Error en blpConnect(iface = "Java", na.action = "na", periodicity = "daily") :

  el argumento(s) no fue utilizado(s) (na.action = "na", periodicity = "daily")

> conn=blpConnect(iface="Java")

R version 2.15.0 (2012-03-30)

rJava Version 0.9-3

RBloomberg Version 0.4-151

Java environment initialized successfully.

Looking for most recent blpapi3.jar file...

Adding C:\blp\API\APIv3\JavaAPI\v3.4.6.6\lib\blpapi3.jar to Java classpath

Bloomberg API Version 3.4.6.6



I also found that website, but in that website it refers to iface="COM", which confuses me



Open or shut a connection to Bloomberg
Description

The function blpConnect returns a connection object to one of the Bloomberg interfaces. Currently, only the COM Desktop API is supported.

Usage

blpConnect(iface="COM", timeout=12000, show.days="week",

na.action="na", periodicity="daily")

blpDisconnect(conn)


Finally, you were right, I didn't load the library before y type help. Help function took me to http://127.0.0.1:22382/library/RBloomberg/html/blpConnect.html

The thing that confuses me now is how to set up blpConnect to stablish the conection and also set up the parameters na.action = "na", periodicity = "daily" that I need for my work

Thanks a lot

JJ

De: julien cuisinier [mailto:j_cuisinier@hotmail.com]
Enviado el: Monday, May 28, 2012 5:30 PM
Para: Juan José Fernández García; r-sig-finance@r-project.org
Asunto: RE: [R-SIG-Finance] RBLOOMBERG--conn=blpConnect(iface="COM") PROBLEMS

Juan,


No problem, I thik my point is that the blpConnect function does accept only iface="Java" as argument, hhence trying iface="COM" you get the error msge

Weird the help() does not work - did you have the RBloomberg package loaded when trying the help(blpConnect)?

May be you did not install the help file alongside R? If so I would recomment to do so.


I found this which might help, google is your friend ;-):
http://rgm2.lab.nig.ac.jp/RGM2/func.php?rd_id=RBloomberg:blpConnect



HTH,
Julien








________________________________
From: jjfgarcia@renta4.es
To: j_cuisinier@hotmail.com; r-sig-finance@r-project.org
Subject: RE: [R-SIG-Finance] RBLOOMBERG--conn=blpConnect(iface="COM") PROBLEMS
Date: Mon, 28 May 2012 14:47:34 +0000
Julien

Thnkx very much. Actually the full code is this

blpConnect(iface="COM",
na.action="na", periodicity="daily")

I think this is the proper way to use the function (I am a R beginner), that's why I used it

When I type help(blpConnect) I get this:

No documentation for 'blpConnect' in specified packages and libraries:
you could try '??blpConnect'

I followed the manual instructions and installed Java Version 3 API,
rJava package and I also downloaded Jave from the Java website.

Thanks again

JJ

De: julien cuisinier [mailto:j_cuisinier@hotmail.com]
Enviado el: Monday, May 28, 2012 4:17 PM
Para: Juan José Fernández García; r-sig-finance@r-project.org
Asunto: RE: [R-SIG-Finance] RBLOOMBERG--conn=blpConnect(iface="COM") PROBLEMS

Hi,

when I type help(blpConnect) in R, I read this:

"
Arguments
iface

character. Which Bloomberg interface? (only "Java" currently supported).

"

why do you try to give the "COM" value to iface argument?

after the :

"conn <- blpConnect()" you are connected as far as I know?










If I said something stupid, sure the package owner will contradict me










Rgds,





Julien

From: jjfgarcia@renta4.es
To: r-sig-finance@r-project.org
Date: Mon, 28 May 2012 13:56:04 +0000
Subject: [R-SIG-Finance] RBLOOMBERG--conn=blpConnect(iface="COM") PROBLEMS

Dear All,











In the first place I would like to thank you for your contribution to R.











I am having this problem with Rbloomberg.











I followed the manual and downloaded the API from bloomberg. However, when I run





 conn=blpConnect(iface="COM") I got the error message below . ¿do you know why this might happen?





Thanks very much











> library(RBloomberg)





Loading required package: rJava





> conn <- blpConnect()





R version 2.15.0 (2012-03-30)





rJava Version 0.9-3





RBloomberg Version 0.4-151





Java environment initialized successfully.





Looking for most recent blpapi3.jar file...





Adding C:\blp\API\APIv3\JavaAPI\v3.4.6.6\lib\blpapi3.jar to Java classpath





Bloomberg API Version 3.4.6.6





> conn=blpConnect(iface="COM")





Error en blpConnect(iface = "COM") :





  Requsted interface COM is not valid! Valid interfaces are  Java

















SessionInfo











R version 2.15.0 (2012-03-30)





Platform: i386-pc-mingw32/i386 (32-bit)











locale:





[1] LC_COLLATE=Spanish_Spain.1252  LC_CTYPE=Spanish_Spain.1252





[3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C





[5] LC_TIME=Spanish_Spain.1252











attached base packages:





[1] stats     graphics  grDevices datasets  utils     methods   base











other attached packages:





[1] RBloomberg_0.4-151 rJava_0.9-3        rcom_2.2-5         rscproxy_2.0-5











loaded via a namespace (and not attached):





[1] tools_2.15.0

















        [[alternative HTML version deleted]]







_______________________________________________ R-SIG-Finance@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.

	[[alternative HTML version deleted]]

