The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
td_get2(): downloaded/local CSV files are now
validated (header and content) before replacing the cache, so HTML error
pages, rate-limit responses and truncated downloads raise a clear error
instead of silently returning (and caching) an empty data settd_get2() cache is now tagged with its data source and
format version; a cache produced from a different
dataset_url is no longer reusedtd_get2() reuses an already validated CSV from the same
day instead of downloading it again, and falls back to the cached data
(instead of erroring) when force_download = TRUE failstd_get2() now retries downloads (3 attempts with
backoff) and sends a package user agent, mitigating intermittent
429/connection reset errors from the portaltd_get2() no longer silently falls back to the default
CKAN resource when an arbitrary dataset_url cannot be
resolved; the fallback is restricted to the Tesouro Transparente portal
and emits a warningtd_get2() asset code validation and filtering now share
a single alias map, fixing the misleading list of valid codes in the
error message and removing dead filtering codetd_get2() validates
first_year/last_year and warns when the
filters return no rowstd_get() documentation pointing to an unreleased
td_get2()mcp_server(),
mcp_tools(), and the bundled inst/mcp/tools.R
definitions) along with the mcptools, ellmer,
and jsonlite suggested dependenciestestthat::skip_if_offline() and
testthat::skip_on_cran()), while still running under
covrtd_get2(),
td_get_current(), get_yield_curve(),
get_asset_info(), get_td_names()) as
LLM-callable tools via mcp_server() and
mcp_tools(); requires the suggested mcptools,
ellmer, and jsonlite packagestd_get2() to retrieve bond data from the Tesouro
Transparente CKAN portal (https://www.tesourotransparente.gov.br/ckan/dataset/taxas-dos-titulos-ofertados-pelo-tesouro-direto)
with columns matching td_get()td_get_current() to use td_get2()
and fetch live daily prices without deprecation warningsget_yield_curve() (and
get.yield.curve()) on Windows by specifying
Latin1 encoding when parsing Anbima HTML tables, adding
browser request headers, an SSL certificate fallback, and sanitized date
extractiontd_get() using
lifecycle::deprecate_warn() due to the closure of the
Tesouro Direto data application in August 2026; users should use
td_get2()td_get_current() to reliably fetch
daily current prices and yields from Tesouro Direto using current-year
asset filesget_asset_info() helper function providing bond
metadata (indexer, coupon structure, descriptions)plot_yield_curve() and
plot_td_series() built on ggplot2.rds file caching for parsed Excel files to
accelerate data loading on repeat readsget_cache_folder() via tools::R_user_dir or
options(GetTDData.persistent_cache = TRUE)td_get(),
get_yield_curve(), td_get_current()) to return
tibble data frames (tbl_df)get_td_names() with support for
NTN-B1 (covering RendA+ and Educa+ instruments) and
optional online CDN checkreturn(TRUE) statement in
td_get()covr::in_covr() checks in test suite to prevent
test failures when covr package is missingcurl::multi_download to speed up asset fetchingmakeCluster and parLapply), improving read
speed and preventing C++ fork deadlocksbind_rows oncetd_get to avoid row-by-row
sapply callsget.yield.curve() to
get_yield_curve() and provided a deprecated dot-case
wrapper for backward compatibilitypurrr from
DESCRIPTION Importslubridate from
DESCRIPTION Suggests and replaced with base R equivalents in testsn.biz.days, ref.date,
current.date, possible.names) to
snake_caseread.TD.files function- Fixed bug in read.td.files (it was not reading data after 2012 because of change of output type given switch from xlsx:read.xlsx to readxl::read_excel)
- Now using readxl::read_excel, a better excel reader, FASTER and without the java requirements
- Additional error checks
- Added a test for internet connection
- Added a new option for overwriting or not the downloaded excel files (saves a lot of time for large batch downloads!)
- Fixed typos and improved the text in the vignette
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.