tidyquant icon indicating copy to clipboard operation
tidyquant copied to clipboard

tq_index("SP500") Not Working Ubuntu

Open eweiss99 opened this issue 3 years ago • 1 comments
trafficstars

It works on my Mac, but under Ubuntu it fails. I'm using RStudio.

My code is: tq_index("SP500")

And the output is: Getting holdings for SP500 A tibble: 0 x 0 Warning message: In tq_index("SP500") : Error at SP500 during download. Error in curl::curl_fetch_disk(url, x$path, handle = handle): Could not resolve host: www.ssga.com_

eweiss99 avatar May 25 '22 23:05 eweiss99

Could you try ping to www.ssga.com from the ubuntu? Looks like the machine can't resolv www.ssga.com

obarisk avatar May 26 '22 15:05 obarisk

I could not replicate. The tests seem to work on ubuntu. Not sure if you fixed this or not. Closing but can reopen if not fixed.

mdancho84 avatar Nov 15 '22 16:11 mdancho84