if (FALSE) { # requireNamespace("RSQLite", quietly = TRUE) && file.exists("sp500.db")
# \donttest{
prices <- sql_adapter_adjusted(
db_path = "sp500.db",
symbols = c("AAPL", "MSFT"),
start_date = "2020-01-01",
end_date = "2020-12-31",
frequency = "monthly"
)
head(prices)
# }
}
Run the code above in your browser using DataLab