Skip to content

Commit

Permalink
modifying examples for Cran submission
Browse files Browse the repository at this point in the history
  • Loading branch information
msperlin committed Aug 16, 2024
1 parent fd4fb60 commit 38f145f
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.5.0
Date: 2024-08-08 17:27:27 UTC
SHA: ea86eedd16cda0290ffcc72acb2d91c257dae3c5
Date: 2024-08-16 13:49:57 UTC
SHA: fd4fb60e24f999bbbef39ade082e2f0fe3b88bf0
2 changes: 2 additions & 0 deletions R/dividends.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
#' @export
#'
#' @examples
#' \dontrun{
#' set_token(get_demo_token())
#' df_div <- get_dividends(ticker = "AAPL", exchange = "US")
#' df_div
#' }
get_dividends <- function(ticker = "AAPL", exchange = "US",
cache_folder = get_default_cache(),
check_quota = TRUE) {
Expand Down
2 changes: 2 additions & 0 deletions R/financials.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
#' @export
#'
#' @examples
#' \dontrun{
#' set_token(get_demo_token())
#' l_out <- get_fundamentals(ticker = "AAPL", exchange = "US")
#'
#' df_fin <- parse_financials(l_out, "long")
#' df_fin
#' }
parse_financials <- function(l_out, type_table = "long") {

possible_values <- c("long", "wide")
Expand Down
2 changes: 2 additions & 0 deletions R/fundamentals.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
#' @export
#'
#' @examples
#' \dontrun{
#' set_token(get_demo_token())
#' l_out <- get_fundamentals(ticker = "AAPL", exchange = "US")
#' names(l_out)
#' }
get_fundamentals <- function(ticker = "AAPL",
exchange = "US",
cache_folder = get_default_cache(),
Expand Down
4 changes: 3 additions & 1 deletion R/prices.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
#' @export
#'
#' @examples
#' set_token("demo")
#' \dontrun{
#' set_token(get_demo_token())
#' df_prices <- get_prices(ticker = "AAPL", exchange = "US")
#' }
get_prices <- function(ticker = "AAPL",
exchange = "US",
cache_folder = get_default_cache(),
Expand Down
3 changes: 2 additions & 1 deletion R/splits.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#' @export
#'
#' @examples
#' \dontrun{# requires a subscription (paid) token
#' \dontrun{
#' # requires a subscription (paid) token
#' df_split <- get_splits(ticker = "AAPL", exchange = "US")
#' }
get_splits <- function(ticker = "AAPL", exchange = "US",
Expand Down
2 changes: 2 additions & 0 deletions R/token.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
#' @export
#'
#' @examples
#' \dontrun{
#' set_token()
#' }
set_token <- function(token = get_demo_token()) {

Sys.setenv("eodhd-token" = token)
Expand Down
2 changes: 2 additions & 0 deletions man/get_dividends.Rd

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

2 changes: 2 additions & 0 deletions man/get_fundamentals.Rd

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

4 changes: 3 additions & 1 deletion man/get_prices.Rd

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

3 changes: 2 additions & 1 deletion man/get_splits.Rd

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

2 changes: 2 additions & 0 deletions man/parse_financials.Rd

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

2 changes: 2 additions & 0 deletions man/set_token.Rd

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

0 comments on commit 38f145f

Please sign in to comment.