I tried to install the package (cli), but this happened
> library(cli)
> # get data!
> df_quandl <- get_Quandl_series(id_in = my_symbol,
+ api_key = my_api_key,
+ first_date = first_date,
+ last_date = last_date)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace ‘cli’ 3.3.0 is already loaded, but >= 3.4.0 is required
CODE:
library(GetQuandlData)
library(tidyverse)
install.packages("cli")
library(cli)
my_api_key <- 'KMGR3rk2Ur-c6_7oHEWA'
# set symbol and dates
my_symbol <- c('GOLD' = 'LBMA/GOLD')
first_date <- '1980-01-01'
last_date <- '2021-01-01'
# get data!
df_quandl <- get_Quandl_series(id_in = my_symbol,
api_key = my_api_key,
first_date = first_date,
last_date = last_date)
# check it
glimpse(df_quandl)