Hi - this code worked okay with the prior version (0.5.10):
library(tidyquant)
#> Loading required package: lubridate
#>
#> Attaching package: 'lubridate'
#> The following object is masked from 'package:base':
#>
#> date
#> Loading required package: PerformanceAnalytics
#> Loading required package: xts
#> Loading required package: zoo
#>
#> Attaching package: 'zoo'
#> The following objects are masked from 'package:base':
#>
#> as.Date, as.Date.numeric
#>
#> Attaching package: 'PerformanceAnalytics'
#> The following object is masked from 'package:graphics':
#>
#> legend
#> Loading required package: quantmod
#> Loading required package: TTR
#> Registered S3 method overwritten by 'quantmod':
#> method from
#> as.zoo.data.frame zoo
#> Version 0.4-0 included new data defaults. See ?getSymbols.
#> ══ Need to Learn tidyquant? ═══════════════════════════════════════════════════════════════════════════════════
#> Business Science offers a 1-hour course - Learning Lab #9: Performance Analysis & Portfolio Optimization with tidyquant!
#> </> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
library(Quandl)
Quandl.api_key("---------")
tq_index("SP500") %>%
tq_get(get = "quandl", from = "2018-01-01")
#> Getting holdings for SP500
#> Warning: x = 'MSFT', get = 'quandl': Error: {"quandl_error":{"code":"QECx05","message":"The url you requested is incorrect. Please use the following url instead: /api/v3/datasets/:database_code/:dataset_code."}}
#> Removing MSFT.
#> Error: `mutate()` argument `data..` errored.
#> ℹ `data..` is `purrr::map(...)`.
#> x object 'ret' not found
Hi - this code worked okay with the prior version (0.5.10):
Created on 2020-03-15 by the reprex package (v0.3.0)