Get the US yield curve with 'ustyc' package

I try to get the historical rates of the US yield curve by mean this function (ustyc) but it throws an error



Library

install.packages("ustyc")

require(ustyc)



getYieldCurve(year = NULL, month = NULL,

              base = "Front page | U.S. Department of the Treasury

              allowParallel = FALSE)





Error:



Error: XML content does not seem to be XML: ''

I also tried to change the data source, but it does not work!



Error: 1: Unknown IO error2: failed to load external entity "Interest Rate Statistics | U.S. Department of the Treasury;

Hello Karen,



Can you try replacing the https with http in the URL? 



 

Yes I tried but it does not work. I decide try another way… uploading an excel file! thanks for your attention! :slight_smile:

You're welcome Karen!