Fetches RGF data for every municipality of state_uf, looping over
get_rgf() with fault tolerance. See get_rreo_for_state() for the
rationale and behaviour of on_error.
get_rgf_for_state(
state_uf,
an_exercicio,
in_periodicidade,
nr_periodo,
co_tipo_demonstrativo,
no_anexo,
co_poder,
include_capital = TRUE,
on_error = c("warn", "stop", "silent"),
use_cache = TRUE,
verbose = FALSE,
page_size = NULL,
max_rows = Inf
)get_fiscal_report_for_state(state_uf, fiscal_year, periodicity,
period, report_type, appendix, branch,
include_capital = TRUE, on_error = c("warn", "stop", "silent"),
use_cache = TRUE, verbose = FALSE,
page_size = NULL, max_rows = Inf)
A tibble with all successful RGF rows. If any
call failed, has an attribute "failed".
Character. Two-letter UF code (e.g., "PE"). Required.
Integer. Fiscal year. Required.
Character. "Q" (four-monthly) or "S"
(semi-annual). Required.
Integer. Period number. Required.
Character. "RGF" or "RGF Simplificado".
Required.
Character. Appendix name (e.g., "RGF-Anexo 01").
Required.
Character. Government branch: "E", "L", "J", "M",
"D". Required.
Logical. Include the state capital? Defaults to TRUE.
Character. "warn" (default), "stop", or "silent".
Logical.
Logical.
Integer or NULL.
Numeric.
Integer. Fiscal year. Required. Maps to an_exercicio.
Character. "Q" or "S". Required.
Maps to in_periodicidade.
Integer. Period number. Required. Maps to nr_periodo.
Character. "RGF" or "RGF Simplificado".
Required. Maps to co_tipo_demonstrativo.
Character. Appendix name. Required. Maps to no_anexo.
Character. Government branch. Required. Maps to
co_poder.
get_fiscal_report_for_state() is an English-parameter alias.
Other SICONFI:
get_anexos(),
get_dca(),
get_dca_for_state(),
get_entes(),
get_extrato(),
get_msc_controle(),
get_msc_orcamentaria(),
get_msc_patrimonial(),
get_rgf(),
get_rreo(),
get_rreo_for_state()
if (FALSE) {
rgf_pe <- get_rgf_for_state(
state_uf = "PE", an_exercicio = 2022,
in_periodicidade = "Q", nr_periodo = 3,
co_tipo_demonstrativo = "RGF", no_anexo = "RGF-Anexo 01",
co_poder = "E"
)
}
Run the code above in your browser using DataLab