R/globals.R

# global file set up for removing CRAN check messages
# "no visible binding for global variable"
# source: https://community.rstudio.com/t/how-to-solve-no-visible-binding-
#         for-global-variable-note/28887
my_globals <- c(
  "Date", "Open", "High", "Low", "Close",
  "Adj Close", "Volume", "ref_date",
  "price_open", "price_high", "price_low",
  "price_close", "price_adjusted", "volume",
  "EPIC", "Company", "Symbol", "Security",
  "GICS Sector", "ticker", "company", "sector",
  "time_groups", "first", "last",
  "Ticker", "Industry", "Headquarters",
  # from yf_live_prices
  "meta", "symbol", "regularMarketTime", "regularMarketPrice",
  "time_stamp","previousClose","price","last_price",
  # from yf_live_prices
  "amount"
)

utils::globalVariables(my_globals)

Try the yfR package in your browser

Any scripts or data that you put into this service are public.

yfR documentation built on Feb. 16, 2023, 9:47 p.m.