Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in documentation #108

Closed
derekholmes opened this issue Dec 7, 2015 · 4 comments
Closed

Error in documentation #108

derekholmes opened this issue Dec 7, 2015 · 4 comments

Comments

@derekholmes
Copy link

bdh documentation has the wrong enumeration: "periodicityAdjustment" s/b "periodicitySelection"

bdh("SPY US Equity", c("PX_LAST", "VOLUME"),

  • start.date=Sys.Date()-31*6, options=c("periodicityAdjustment"="MONTHLY"))
    
    Error: Enumeration type could not be found for MONTHLY
    ..
    bdh("SPY US Equity", c("PX_LAST", "VOLUME"),
  • start.date=Sys.Date()-31*6, options=c("periodicitySelection"="MONTHLY"))
    date PX_LAST     VOLUME
    
    1 2015-06-30 205.85 2535242753
    2 2015-07-31 210.50 2452757863
@eddelbuettel
Copy link
Member

Use three backticks (ie ```` ) to format code, not>` which is used for text quotes.

@eddelbuettel
Copy link
Member

What version do you refer to? Version 0.3.2 as well as current GitHub sources have periodicitySelection.

Closing this.

@eddelbuettel
Copy link
Member

For the record:

R> library(Rblpapi)
R> opt <- c("periodicitySelection"="MONTHLY")
R> bdh("SPY US Equity", c("PX_LAST", "VOLUME"), start.date=Sys.Date()-31*6, options=opt)
        date PX_LAST     VOLUME
1 2015-06-30 204.785 2535242753
2 2015-07-31 209.411 2452757863
3 2015-08-31 196.647 3734926746
4 2015-09-30 191.630 3279512868
5 2015-10-30 207.930 2536184532
6 2015-11-30 208.690 1924512621
R> packageVersion("Rblpapi")
[1] ‘0.3.2R> 

@eddelbuettel
Copy link
Member

This was fixed a few weeks ago, but the relase only got out today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants