Running examples in 'treasuryTR-Ex.R' failed
The error most likely occurred in:

> ### Name: total_return
> ### Title: Calculate bond total returns from constant-maturity yield data
> ### Aliases: total_return
> 
> ### ** Examples
> 
> library(dplyr)
> # download US treasury 10Y constant-maturity
> #   yield data and compute a total return series
> t10_yield <- get_yields("DGS10")
An error occurred while accessing the data. Please check your internet connection and try again.
Error in if (is.na(object[1L])) ok <- c(1L, ok) : 
  argument is of length zero
Calls: get_yields -> na.locf0
Execution halted