inst/doc/inflation.R

## ----include = FALSE----------------------------------------------------------
# Definir mirror do CRAN primeiro
options(repos = c(CRAN = "https://cloud.r-project.org/"))

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----inflation-usage, eval=FALSE----------------------------------------------
# devtools::install_github("efram2/brfinance")
# library(brfinance)
# 
# # Complete data (default)
# inflation <- get_inflation_rate()
# 
# # Specific period in English
# inflation_eng <- get_inflation_rate(
#   start_date = "2020-01-01",
#   end_date = "2024-12-01",
#   language = "eng"
# )
# 
# # Portuguese version
# inflation_pt <- get_inflation_rate(
#   start_date = "2020-01-01",
#   language = "pt"
# )

Try the brfinance package in your browser

Any scripts or data that you put into this service are public.

brfinance documentation built on Feb. 19, 2026, 9:06 a.m.