I am trying to upload stock prices for McDonalds and Netflix however I keep getting an error message as follows
what I code:
library(tidyquant)
library(tidyverse)
stocks <- tq_get(c("NFLX", "MCD"), get = "stock.prices", from="2019-01-01")
error message:
Warning: Problem with mutate()
column data..
. data.. = purrr::map(...)
. x = 'NFLX', get = 'stock.prices': Error in new.session(): Could not establish session after 5 attempts.
Removing NFLX. Warning: Problem with mutate()
column data..
. data.. = purrr::map(...)
.
x = 'MCD', get = 'stock.prices': Error in new.session(): Could not establish session after 5 attempts. Removing MCD.
Please help me