Skip to content

Commit

Permalink
fixed citation file (cran resubmission)
Browse files Browse the repository at this point in the history
  • Loading branch information
msperlin committed Feb 16, 2023
1 parent 32779c7 commit b2f2c5c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
4 changes: 2 additions & 2 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 1.1.0
Date: 2023-02-15 12:43:45 UTC
SHA: 993eaa0f2c0a2acee959eb9ca0d149496d52e44b
Date: 2023-02-16 10:47:47 UTC
SHA: 32779c7592c525e8af2ed8d7ff9741787bc6d5d1
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ coverage](https://codecov.io/gh/ropensci/yfR/branch/main/graph/badge.svg)](https
(rcmdcheck)](https://github.com/ropensci/yfR/workflows/R-CMD-check/badge.svg)](https://github.com/ropensci/yfR/actions)
[![Status at rOpenSci Software Peer
Review](https://badges.ropensci.org/523_status.svg)](https://github.com/ropensci/software-review/issues/523)
[![R-CMD-check](https://github.com/ropensci/yfR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/yfR/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

# Motivation
Expand Down Expand Up @@ -156,32 +157,32 @@ df_yf <- yf_get(tickers = my_ticker,
first_date = first_date,
last_date = last_date)
#>
#> ── Running yfR for 1 stocks | 2022-11-28 --> 2022-12-28 (30 days) ──
#> ── Running yfR for 1 stocks | 2023-01-17 --> 2023-02-16 (30 days) ──
#>
#> ℹ Downloading data for benchmark ticker ^GSPC
#> ℹ (1/1) Fetching data for META
#> ! - not cached
#> ✔ - cache saved successfully
#> ✔ - got 21 valid rows (2022-11-28 --> 2022-12-27)
#> ✔ - got 100% of valid prices -- You got it msperlin!
#> ✔ - got 22 valid rows (2023-01-17 --> 2023-02-15)
#> ✔ - got 100% of valid prices -- Time for some tea?
#> ℹ Binding price data
#>
#> ── Diagnostics ─────────────────────────────────────────────────────────────────
#> ✔ Returned dataframe with 21 rows -- Time for some tea?
#> ℹ Using 6.1 kB at /tmp/Rtmpa606SQ/yf_cache for 2 cache files
#> ✔ Returned dataframe with 22 rows -- Youre doing good!
#> ℹ Using 6.3 kB at /tmp/RtmpvCnCwr/yf_cache for 2 cache files
#> ℹ Out of 1 requested tickers, you got 1 (100%)

# output is a tibble with data
head(df_yf)
#> # A tibble: 6 × 11
#> ticker ref_date price_open price_h…¹ price…² price…³ volume price…⁴ ret_ad…⁵
#> <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 META 2022-11-28 111. 112. 108. 109. 2.33e7 109. NA
#> 2 META 2022-11-29 110. 111. 109. 109. 2.39e7 109. 0.00625
#> 3 META 2022-11-30 110. 118. 109. 118. 4.33e7 118. 0.0789
#> 4 META 2022-12-01 119. 121. 118. 120. 3.66e7 120. 0.0198
#> 5 META 2022-12-02 118. 124. 118. 123. 3.99e7 123. 0.0253
#> 6 META 2022-12-05 122. 125. 121. 122. 3.55e7 122. -0.00858
#> 1 META 2023-01-17 136. 137. 134. 135. 2.11e7 135. NA
#> 2 META 2023-01-18 136. 137. 133. 133. 2.02e7 133. -1.73e-2
#> 3 META 2023-01-19 132. 137. 132. 136. 2.86e7 136. 2.35e-2
#> 4 META 2023-01-20 136. 140. 135. 139. 2.86e7 139. 2.37e-2
#> 5 META 2023-01-23 139. 144. 139. 143. 2.75e7 143. 2.80e-2
#> 6 META 2023-01-24 142. 145 141. 143. 2.20e7 143. -9.07e-4
#> # … with 2 more variables: ret_closing_prices <dbl>,
#> # cumret_adjusted_prices <dbl>, and abbreviated variable names ¹​price_high,
#> # ²​price_low, ³​price_close, ⁴​price_adjusted, ⁵​ret_adjusted_prices
Expand Down
18 changes: 7 additions & 11 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
citHeader("To cite yfR in publications use:")

citEntry(
entry = "Manual",
title = "yfR: Downloads and Organizes Financial Data from Yahoo Finance",
bibentry(
bibtype = "Manual",
header = "To cite yfR in publications use:",
title = "yfR: Downloads and Organizes Financial Data from Yahoo Finance",
author = "Marcelo Perlin",
year = "2022",
note = "R package version 1.0.4",
url = "https://github.com/ropensci/yfR",
textVersion = "Makes it easy to download financial data from Yahoo Finance <https://finance.yahoo.com/>,
a vast repository of stock price data across multiple financial exchanges. The package offers a local caching system
and support for parallel computation."
year = "2023",
note = "R package version 1.1.0",
url = "https://github.com/ropensci/yfR"
)

0 comments on commit b2f2c5c

Please sign in to comment.