Juan,

something weird with your install / help, below what I get (R 2.15.0)

blpConnect {RBloomberg}R Documentation

Open or shut a connection to Bloomberg

Description


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



Usage

blpConnect(iface = "Java", log.level = "warning", blpapi.jar.file = NULL, 
throw.ticker.errors = TRUE, jvm.params = NULL, verbose = TRUE)
blpConnect.Java(log.level, blpapi.jar.file, throw.ticker.errors, jvm.params, 
verbose)
blpDisconnect(conn)



Arguments



iface

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

log.level

character. Level of logs to be generated by Java. Acceptable values: warning, 
info, fine, finest.

blpapi.jar.file

character. Location of the Bloomberg API JAR file. If NULL (default), the 
function looks in usual locations.

throw.ticker.errors

logical. Should errors be thrown for invalid tickers?

jvm.params = NULL

Parameters passed to the Java Virtual Machine

verbose = TRUE

logical. Should output be written to the console on connection?

conn

Connection object


>>> Also, R tells you he cannot uses the arguments:
(na.action = "na", periodicity = "daily")

so you might (for next time) to look at the code of your function, you can look 
at the code in a majority of R function is just type it in the console without 
the brackets

You can see the function argument & no "na.action" or "periodicity" (which are 
pretty weird arguments for a connection function anyway!) 


> blpConnect
function (iface = "Java", log.level = "warning", blpapi.jar.file = NULL, 
    throw.ticker.errors = TRUE, jvm.params = NULL, verbose = TRUE) 
{
    valid.interfaces <- c("Java")
    future.interfaces <- c("C")
    if (iface %in% future.interfaces) {
        stop(paste("Requested interface", iface, "is not yet implemented."))
    }
    if (!(iface %in% valid.interfaces)) {
        msg <- paste("Requsted interface", iface, "is not valid! Valid 
interfaces are ", 
            do.call("paste", as.list(valid.interfaces)))
        stop(msg)
    }
    fn.name <- paste("blpConnect", iface, sep = ".")
    fn.call <- call(fn.name, log.level, blpapi.jar.file, throw.ticker.errors, 
        jvm.params, verbose)
    eval(fn.call)
}
<environment: namespace:RBloomberg>


May be a full re-install? 

Good luck

HTH,
Julien




From: jjfgar...@renta4.es
To: j_cuisin...@hotmail.com; r-sig-finance@r-project.org
Subject: RE: [R-SIG-Finance] RBLOOMBERG--conn=blpConnect(iface="COM") PROBLEMS
Date: Mon, 28 May 2012 15:57:43 +0000











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_cuisin...@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: jjfgar...@renta4.es

To: j_cuisin...@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_cuisin...@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: jjfgar...@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]]

_______________________________________________
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.

Reply via email to