How can I download data from yahoo finance at Rstudio? I get the following error:
Error in download.file (paste (yahoo.URL, "s=", Symbols.name, "& amp = a", from.m,: can not open URL ' link '
library(quantmod)
library(xts)
library(zoo)
library(TTR)
## Indice de Referencia IPC
## Creando un nuevo ambiente
IPC<- new.env()
## Obteniendo datos desde yahoo finance
getSymbols("MXX", env = IPC, src = "yahoo", from = as.Date("2014-10-20"), to = as.Date("2016-10-26")
)