Running examples in ‘YRmisc-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: xd.fred
> ### Title: Download data from Federal Reserve Bank of St. Louis
> ### Aliases: xd.fred
> 
> ### ** Examples
> 
>  cpi <- xd.fred("CPIAUCSL") # CPI data
> head(cpi)
        DATE CPIAUCSL
1 1947-01-01    21.48
2 1947-02-01    21.62
3 1947-03-01    22.00
4 1947-04-01    22.00
5 1947-05-01    21.95
6 1947-06-01    22.08
> tail(cpi)
          DATE CPIAUCSL
848 2017-08-01  245.297
849 2017-09-01  246.418
850 2017-10-01  246.587
851 2017-11-01  247.332
852 2017-12-01  247.901
853 2018-01-01  248.884
> 
> tkr <- c("CPIAUCSL", "DGS10", "A191RO1Q156NBEA", "UNRATE")
> output <- xd.fred(tkr, start_date = "1900-01-01", end_date = "2018-01-01")
Warning in file(file, "rt") :
  cannot open URL 'https://fred.stlouisfed.org/graph/fredgraph.csv?chart_type=line&recession_bars=on&log_scales=&bgcolor=%23e1e9f0&graph_bgcolor=%23ffffff&fo=Open+Sans&ts=12&tts=12&txtcolor=%23444444&show_legend=yes&show_axis_titles=yes&drp=0&cosd=1900-01-01&coed=2018-01-01&height=450&stacking=&range=&mode=fred&id=UNRATE&transformation=lin&nd=1947-01-01&ost=-99999&oet=99999&lsv=&lev=&mma=0&fml=a&fgst=lin&fgsnd=2009-06-01&fq=Monthly&fam=avg&vintage_date=&revision_date=&line_color=%234572a7&line_style=solid&lw=2&scale=left&mark_type=none&mw=2&width=1168': HTTP status was '504 Gateway Timeout'
Error in file(file, "rt") : 
  cannot open the connection to 'https://fred.stlouisfed.org/graph/fredgraph.csv?chart_type=line&recession_bars=on&log_scales=&bgcolor=%23e1e9f0&graph_bgcolor=%23ffffff&fo=Open+Sans&ts=12&tts=12&txtcolor=%23444444&show_legend=yes&show_axis_titles=yes&drp=0&cosd=1900-01-01&coed=2018-01-01&height=450&stacking=&range=&mode=fred&id=UNRATE&transformation=lin&nd=1947-01-01&ost=-99999&oet=99999&lsv=&lev=&mma=0&fml=a&fgst=lin&fgsnd=2009-06-01&fq=Monthly&fam=avg&vintage_date=&revision_date=&line_color=%234572a7&line_style=solid&lw=2&scale=left&mark_type=none&mw=2&width=1168'
Calls: xd.fred -> read.csv -> read.table -> file
Execution halted