-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add support for security lookup (resolves #215) #216
Conversation
Implemented lookup.R and lookup.cpp. Ran Rcpp::compileAttributes() and roxygen2::roxygenise() on new files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty well done at first glance.
Builds cleanly, runs I think we probably want a concrete example or two in the helppage. One thing that comes to mind is whether we should take advantage of R and map the yellow keys, and languages. Ie instead of
have something like I can just add that. |
Agreed, that would look much nicer and be more consistent with R standards. |
Yes, I am half-way done with a new PR [but got called away for a few minuttes] doing that, and I agree on the renaming need. And yes, |
I have it working, but am not sure I have language in effect. Do you have a sample query where it matters, and result come back in something I can still read (ie French or German) or an alphabet that is clearly different? |
Unfortunately no, I forgot to test that part and I won't have access to a Bloomberg terminal until tomorrow. The Matlab function, the Bloomberg Developer API sources, Bloomberg's SecurityLookupExample, and this dump of the definition were what led me to include that option but I haven't actually tested its functionality. |
I fear we do have Matlab with that API to borrow ideas from. But this was a very, very useful one. I too will continue testing this tomorrow. For now I'm going to make it a new PR. But that was a really useful, and well-done PR. This is exactly how I think open source works at its best: we gave you a working platform to work on and with, and you made it better. (If by the way you think you can improve build instructions etc pp that might be helpful too. We could at least punch some things into the wiki.) |
Oh, and also in favour of harvesting StackOverflow for other good ideas. Well played on that front too. |
Thanks! I really appreciate how promptly you maintain the package. I'm working on a project that needs this function and hopefully this'll be released to CRAN by the time I have to share my project in a couple of months. Building on Windows is a PITA unfortunately because of upstream issues. |
Great! It is nice to have it native in the package. The workaround I have been using is the exe of a cpp code from Bloomberg, included with the standard API installation. Calling this exe from R and then reading the output. This approach can also be used for testing of the new function, imho. |
Implemented lookup.R and lookup.cpp.
Ran Rcpp::compileAttributes() and roxygen2::roxygenise() on new files.
It's working for me over a Bloomberg Desktop connection. Looking for feedback on style consistency, functionality, and function naming. Can probably also add some unit tests later.
Resolves #215.