Skip to content

Commit

Permalink
tweak: documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-guidotti committed Jun 13, 2019
1 parent 871356b commit 7d62bd3
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 50 deletions.
8 changes: 4 additions & 4 deletions R/RblQuery.R
Expand Up @@ -43,10 +43,10 @@
#' @examples
#' \dontrun{
#' # Run RblConnect first
#' x <- RblQuery(fields = c('PX_LAST', 'PX_OPEN', 'PX_HIGH', 'PX_LOW'),
#' identifiers = c('SXXE Index', "SX5E Index"),
#' from = '2005-01-01')
#' str(x)
#' data <- RblQuery(fields = c('PX_LAST', 'PX_OPEN', 'PX_HIGH', 'PX_LOW'),
#' identifiers = c('SXXE Index', "SX5E Index"),
#' from = '2005-01-01')
#' str(data)
#' }
#'
#' @export
Expand Down
54 changes: 33 additions & 21 deletions R/core.R
Expand Up @@ -137,11 +137,14 @@ RblFiles <- function(){
#'
#' # Build a request file to download the daily closing prices of
#' # EURO STOXX Index from 2005-01-01 to 2015-12-31.
#' RblRequest <- RblRequestBuilder(header = c(FIRMNAME = RblUser(),
#' PROGRAMNAME = 'gethistory',
#' DATERANGE = '20050101|20151231'),
#' fields = c('PX_LAST'),
#' identifiers = c('SXXE Index'))
#' RblRequest <-
#' RblRequestBuilder(
#' header = c(FIRMNAME = RblUser(),
#' PROGRAMNAME = 'gethistory',
#' DATERANGE = '20050101|20151231'),
#' fields = c('PX_LAST'),
#' identifiers = c('SXXE Index')
#' )
#' RblRequest
#' }
#'
Expand Down Expand Up @@ -214,11 +217,14 @@ RblRequestBuilder <- function(header, fields, identifiers, overrides = c()) {
#'
#' # Build a request file to download the daily closing prices of
#' # EURO STOXX Index from 2005-01-01 to 2015-12-31.
#' RblRequest <- RblRequestBuilder(header = c(FIRMNAME = RblUser(),
#' PROGRAMNAME = 'gethistory',
#' DATERANGE = '20050101|20151231'),
#' fields = c('PX_LAST'),
#' identifiers = c('SXXE Index'))
#' RblRequest <-
#' RblRequestBuilder(
#' header = c(FIRMNAME = RblUser(),
#' PROGRAMNAME = 'gethistory',
#' DATERANGE = '20050101|20151231'),
#' fields = c('PX_LAST'),
#' identifiers = c('SXXE Index')
#' )
#'
#' # Upload the request file
#' req <- RblUpload(RblRequest)
Expand Down Expand Up @@ -277,11 +283,14 @@ RblUpload <- function(RblRequest, filename = format(Sys.time(), "%m%d%H%M%S"), v
#'
#' # Build a request file to download the daily closing prices of
#' # EURO STOXX Index from 2005-01-01 to 2015-12-31.
#' RblRequest <- RblRequestBuilder(header = c(FIRMNAME = RblUser(),
#' PROGRAMNAME = 'gethistory',
#' DATERANGE = '20050101|20151231'),
#' fields = c('PX_LAST'),
#' identifiers = c('SXXE Index'))
#' RblRequest <-
#' RblRequestBuilder(
#' header = c(FIRMNAME = RblUser(),
#' PROGRAMNAME = 'gethistory',
#' DATERANGE = '20050101|20151231'),
#' fields = c('PX_LAST'),
#' identifiers = c('SXXE Index')
#' )
#'
#' # Upload the request file
#' req <- RblUpload(RblRequest)
Expand Down Expand Up @@ -361,11 +370,14 @@ RblDownload <- function(file, frequency = 60, timeout = 3600, verbose = TRUE) {
#'
#' # Build a request file to download the daily closing prices of
#' # EURO STOXX Index from 2005-01-01 to 2015-12-31.
#' RblRequest <- RblRequestBuilder(header = c(FIRMNAME = RblUser(),
#' PROGRAMNAME = 'gethistory',
#' DATERANGE = '20050101|20151231'),
#' fields = c('PX_LAST'),
#' identifiers = c('SXXE Index'))
#' RblRequest <-
#' RblRequestBuilder(
#' header = c(FIRMNAME = RblUser(),
#' PROGRAMNAME = 'gethistory',
#' DATERANGE = '20050101|20151231'),
#' fields = c('PX_LAST'),
#' identifiers = c('SXXE Index')
#' )
#'
#' # Upload the request file
#' req <- RblUpload(RblRequest)
Expand All @@ -375,7 +387,7 @@ RblDownload <- function(file, frequency = 60, timeout = 3600, verbose = TRUE) {
#'
#' # Import the data
#' data <- RblParse(out)
#' data
#' str(data)
#' }
#'
#' @import xts
Expand Down
13 changes: 8 additions & 5 deletions man/RblDownload.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions man/RblParse.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/RblQuery.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions man/RblRequestBuilder.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions man/RblUpload.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7d62bd3

Please sign in to comment.