Skip to content

Commit

Permalink
Removed quantmod dependency to avoid loading the library and overwrit…
Browse files Browse the repository at this point in the history
…ing S3 methods from zoo
  • Loading branch information
serkor1 committed Sep 30, 2023
1 parent ce711ba commit 1508710
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 38 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Imports:
curl (>= 5.0.2),
httr (>= 1.4.7),
jsonlite (>= 1.8.7),
quantmod (>= 0.4.25),
rlang (>= 1.1.1),
xts (>= 0.13.1),
zoo (>= 1.8-12)
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
export(availableIntervals)
export(availableTickers)
export(getQuote)
importFrom(quantmod,chartSeries)
1 change: 0 additions & 1 deletion R/cryptoQuotes-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
"_PACKAGE"

## usethis namespace: start
#' @importFrom quantmod chartSeries
## usethis namespace: end
NULL
8 changes: 0 additions & 8 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ The goal of cryptoQuotes is to create a unified API access to all known major cr

## Installation

You can install the latest stabl version of cryptoQuotes like so:
``` r
devtools::install_github(
repo = 'https://github.com/serkor1/cryptoQuotes/',
ref = 'main'
)
```

You can install the development version of cryptoQuotes like so:

``` r
Expand Down
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ libraries such as `quantmod` and `TTR`.

## Installation

You can install the latest stabl version of cryptoQuotes like so:

``` r
devtools::install_github(
repo = 'https://github.com/serkor1/cryptoQuotes/',
ref = 'main'
)
```

You can install the development version of cryptoQuotes like so:

``` r
Expand Down
12 changes: 3 additions & 9 deletions man/examples/scr_getQuote.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# date: 2023-09-22
# author: Serkan Korkmaz, [email protected]
# objective: demonstrate how to use
# the getQuote in conjunction with quantmod
# the getQuote
# script start;

# gc
Expand All @@ -17,14 +17,8 @@ perpAtom <- cryptoQuotes::getQuote(
futures = TRUE
)

# 2) chart the series
# using chartSeries
quantmod::chartSeries(
x = perpAtom
)
# 2) head data;
head(perpAtom)

# 3) add Bollinger Bands
# to the chart
quantmod::addBBands()

# script end;
Binary file modified man/figures/README-addBBands-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-chartSeries-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 3 additions & 9 deletions man/getQuote.Rd

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

0 comments on commit 1508710

Please sign in to comment.