The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
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[@]dogado.de.

Package {tceper}


Title: Access the 'Open Data API' of Pernambuco Court of Accounts
Version: 0.1.4
Description: An R interface to the 'Open Data API' of the Tribunal de Contas do Estado de Pernambuco (TCE-PE), the Court of Accounts of the State of Pernambuco, Brazil. Provides tidy, ready-to-use functions to query public data on revenues, expenditures, commitments, procurement, contracts, agreements, public works, legal processes, personnel and reference tables for all state and municipal government entities in Pernambuco. All results are returned as tibbles with column names converted to 'snake_case' by default. Uses 'httr2' for HTTP requests and 'cli' for user-friendly messages. See https://sistemas.tcepe.tc.br/DadosAbertos/ for the API documentation.
License: MIT + file LICENSE
URL: https://strategicprojects.github.io/tceper/, https://github.com/StrategicProjects/tceper
BugReports: https://github.com/StrategicProjects/tceper/issues
Encoding: UTF-8
Language: en
Depends: R (≥ 4.1.0)
Imports: cli (≥ 3.6.0), httr2 (≥ 1.0.0), jsonlite, rlang (≥ 1.1.0), tibble, purrr, janitor
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown, dplyr, stringr, ggplot2
Config/testthat/edition: 3
VignetteBuilder: knitr
Config/roxygen2/version: 8.0.0
NeedsCompilation: no
Packaged: 2026-05-28 20:33:08 UTC; leite
Author: Andre Leite [aut, cre], Marcos Wasilew [aut], Hugo Vasconcelos [aut], Carlos Amorin [aut], Diogo Bezerra [aut]
Maintainer: Andre Leite <leite@castlab.org>
Repository: CRAN
Date/Publication: 2026-06-01 14:20:02 UTC

tceper: Access the Open Data API of TCE-PE

Description

An R interface to the Open Data API of the Tribunal de Contas do Estado de Pernambuco (TCE-PE), the Court of Accounts of the State of Pernambuco, Brazil. Provides tidy, ready-to-use functions to query public data on revenues, expenditures, commitments, procurement, contracts, agreements, public works, legal processes, personnel and reference tables for all state and municipal government entities in Pernambuco.

Access to the API

The TCE-PE API host (sistemas.tcepe.tc.br) is geo-restricted and only accepts requests from Brazilian IP addresses. Users outside Brazil will see connection or TLS errors. The discovery functions (tce_catalog(), tce_endpoint(), tce_params(), tce_fields()) are unaffected – they read from a built-in catalog and work offline from any location.

Recommended workflow

  1. Discover endpoints with tce_catalog() (filter with ⁠search =⁠).

  2. Inspect input parameters with tce_params() and output fields with tce_fields().

  3. Query using a wrapper function (e.g. tce_contracts()) or the low-level tce_request().

Parameter names

All query parameters are passed through ... using the names shown by tce_params(). You can use either the original API name (e.g. CodigoEfiscoUG) or its snake_case equivalent (e.g. codigo_efisco_ug); the package maps them automatically.

Options

tceper.verbose

If TRUE, all functions print the final API URL. Default: FALSE.

tceper.progress

If FALSE, suppresses progress messages. Default: TRUE.

tceper.cache_ttl

Cache time-to-live in seconds. Default: 3600 (1 hour).

Author(s)

Maintainer: Andre Leite leite@castlab.org

Authors:

See Also


Print method for tce_fields() output

Description

Print method for tce_fields() output

Usage

## S3 method for class 'tce_fields_tbl'
print(x, ...)

Arguments

x

An object returned by tce_fields().

...

Passed to the next print method.

Value

x, invisibly.


Print method for tce_params() output

Description

Print method for tce_params() output

Usage

## S3 method for class 'tce_params_tbl'
print(x, ...)

Arguments

x

An object returned by tce_params().

...

Passed to the next print method.

Value

x, invisibly.


Agreements (Convenios)

Description

Retrieve state and municipal agreements (convênios).

Usage

tce_agreements(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Benefit types (Remessa)

Description

Lookup table of benefit types (RemessaTCEPE system).

Usage

tce_benefit_types(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Bid details with bidders

Description

Retrieve bids with their respective bidders (licitantes).

Usage

tce_bid_details(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Bid documents

Description

Retrieve documents associated with bids.

Usage

tce_bid_documents(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Description

Lookup table of legal basis types for bids.

Usage

tce_bid_legal_basis(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Bid modalities

Description

Lookup table of bid modality types.

Usage

tce_bid_modalities(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Bid stages

Description

Lookup table of bid process stages.

Usage

tce_bid_stages(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Bid statuses

Description

Lookup table of bid status types.

Usage

tce_bid_statuses(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Bids

Description

Retrieve public procurement bids (licitações).

Usage

tce_bids(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Budget item statuses (Remessa)

Description

Possible statuses for cost-estimate items/lots.

Usage

tce_budget_statuses(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Budgeted revenues (municipal)

Description

Retrieve budgeted (forecast) revenue data. Municipal entities only.

Usage

tce_budgeted_revenues(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other revenues: tce_municipal_revenues(), tce_state_revenues()


Clear the tceper in-memory cache

Description

Removes cached API responses so that subsequent calls hit the API again. By default clears everything; use pattern to selectively clear entries for specific endpoints.

Usage

tce_cache_clear(pattern = NULL)

Arguments

pattern

Optional regex pattern to clear only matching keys. If NULL (default), clears the entire cache. For example, "Contratos" clears all cached contract queries.

Value

Invisibly returns the number of entries cleared.

See Also

tce_cache_info()

Examples

tce_cache_clear()              # clear everything
tce_cache_clear("Contratos")   # clear contract queries only

Show cache status

Description

Returns a tibble describing all currently cached entries, including the cache key (endpoint + parameters), row count, timestamp and age. Useful for understanding what is cached and when it will expire.

Usage

tce_cache_info()

Value

A tibble with columns key, rows, cached_at and age_secs, or an empty tibble if the cache is empty. The cache TTL is controlled by getOption("tceper.cache_ttl", 3600).

See Also

tce_cache_clear()

Examples

tce_cache_info()

List available API endpoints

Description

Returns a tibble listing all 71 endpoints available in the TCE-PE Open Data API, with their group, description and URL. Use search to filter by keyword.

Usage

tce_catalog(search = NULL)

Arguments

search

Optional character string to filter endpoints by name or description (case-insensitive). For example, search = "licit" returns all procurement-related endpoints.

Value

A tibble with columns endpoint, group, title, and url.

See Also

tce_params(), tce_fields(), tce_endpoint()

Examples

tce_catalog()
tce_catalog(search = "contrat")
tce_catalog(search = "municipio")

Commitment liquidations

Description

Retrieve liquidation records for budget commitments.

Usage

tce_commitment_liquidations(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, NumeroEmpenho, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other commitments: tce_commitment_payments(), tce_commitment_summary(), tce_state_commitment_items(), tce_state_price_comparison()


Commitment payments

Description

Retrieve payment records for budget commitments (municipal only).

Usage

tce_commitment_payments(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, NumeroEmpenho, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other commitments: tce_commitment_liquidations(), tce_commitment_summary(), tce_state_commitment_items(), tce_state_price_comparison()


Commitment summary

Description

Retrieve original values, reinforcements and cancellations for budget commitments (empenhos), for both municipal and state entities.

Usage

tce_commitment_summary(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, NumeroEmpenho, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other commitments: tce_commitment_liquidations(), tce_commitment_payments(), tce_state_commitment_items(), tce_state_price_comparison()


Consideranda

Description

Retrieve considerandos (findings/grounds) from adjudicated processes.

Usage

tce_consideranda(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other processes: tce_debts_fines(), tce_determinations(), tce_outcomes(), tce_processes(), tce_recommendations(), tce_retirement_outcomes(), tce_special_accountability(), tce_spending_limits()


Contract amendments

Description

Retrieve addenda / amendments (termos aditivos) to contracts.

Usage

tce_contract_amendments(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Contract documents

Description

Retrieve documents associated with contracts.

Usage

tce_contract_documents(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Contract line items

Description

Retrieve the individual items that compose a contract.

Usage

tce_contract_items(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contracts(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()


Contracts

Description

Retrieve state and municipal contracts.

Usage

tce_contracts(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

tce_params() to discover available parameters, tce_fields() to see output columns.

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_object_characteristics(), tce_object_classifications(), tce_object_nature()

Examples

## Not run: 
# Not run: reaches the live TCE-PE API, which only accepts connections
# from Brazilian IP addresses (unreachable from CRAN / most CI).
tce_contracts(codigo_efisco_ug = "510101", verbose = TRUE)

## End(Not run)

Creditor types

Description

Lookup table of supplier/creditor types.

Usage

tce_creditor_types(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other reference: tce_entities(), tce_funding_sources(), tce_inactivation_reasons(), tce_municipal_entities(), tce_municipalities(), tce_payroll_types(), tce_state_entities(), tce_sub_units()


Debts and fines

Description

Retrieve debts and fines imposed.

Usage

tce_debts_fines(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other processes: tce_consideranda(), tce_determinations(), tce_outcomes(), tce_processes(), tce_recommendations(), tce_retirement_outcomes(), tce_special_accountability(), tce_spending_limits()


Determinations

Description

Retrieve determinations from adjudicated electronic processes.

Usage

tce_determinations(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other processes: tce_consideranda(), tce_debts_fines(), tce_outcomes(), tce_processes(), tce_recommendations(), tce_retirement_outcomes(), tce_special_accountability(), tce_spending_limits()


Get the catalog entry for a given endpoint

Description

Returns the full metadata for a single endpoint, including its input parameters (entrada) and output fields (saida). Useful for programmatic access to endpoint metadata.

Usage

tce_endpoint(endpoint)

Arguments

endpoint

Endpoint name (e.g., "Municipios", "LicitacaoUG", "Contratos"). Use tce_catalog() to see all available endpoints.

Value

A list with endpoint metadata, including entrada (input parameters) and saida (output fields) when available.

See Also

tce_catalog(), tce_params(), tce_fields()

Examples

tce_endpoint("Contratos")

Managed entities (all)

Description

Retrieve all managed entities (unidades jurisdicionadas), state and municipal.

Usage

tce_entities(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: Esfera ("E" state, "M" municipal), Natureza.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other reference: tce_creditor_types(), tce_funding_sources(), tce_inactivation_reasons(), tce_municipal_entities(), tce_municipalities(), tce_payroll_types(), tce_state_entities(), tce_sub_units()


List output fields for an endpoint

Description

Returns a tibble describing the columns returned by a given endpoint. When clean_names = TRUE (the default), column names are converted from the API's original names to snake_case.

Usage

tce_fields(endpoint)

Arguments

endpoint

Endpoint name (e.g., "Municipios", "Contratos"). Use tce_catalog() to see all available endpoints.

Value

A tibble with columns name, type, and description. Has a custom print method that summarises the field names at the top.

See Also

tce_params(), tce_catalog(), tce_endpoint()

Examples

tce_fields("Contratos")
tce_fields("Municipios")

Funding source types

Description

Lookup table of funding source types.

Usage

tce_funding_sources(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other reference: tce_creditor_types(), tce_entities(), tce_inactivation_reasons(), tce_municipal_entities(), tce_municipalities(), tce_payroll_types(), tce_state_entities(), tce_sub_units()


Inactivation reason types

Description

Lookup table of inactivation reason types.

Usage

tce_inactivation_reasons(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other reference: tce_creditor_types(), tce_entities(), tce_funding_sources(), tce_municipal_entities(), tce_municipalities(), tce_payroll_types(), tce_state_entities(), tce_sub_units()


Description

Legal instrument documents (Remessa)

Usage

tce_legal_instrument_documents(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Description

Legal instrument items (Remessa)

Usage

tce_legal_instrument_items(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Description

Legal instrument participants (Remessa)

Usage

tce_legal_instrument_participants(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Description

Retrieve legal instruments from RemessaTCEPE.

Usage

tce_legal_instruments(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Municipal creditor types

Description

Lookup table of municipal creditor types.

Usage

tce_municipal_creditor_types(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other expenditures: tce_municipal_expenditures(), tce_municipal_transfers(), tce_state_creditor_types(), tce_state_expenditures()


Municipal managed entities

Description

Retrieve municipal-level managed entities.

Usage

tce_municipal_entities(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other reference: tce_creditor_types(), tce_entities(), tce_funding_sources(), tce_inactivation_reasons(), tce_municipalities(), tce_payroll_types(), tce_state_entities(), tce_sub_units()


Municipal expenditures

Description

Retrieve municipal-level expenditure data.

Usage

tce_municipal_expenditures(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other expenditures: tce_municipal_creditor_types(), tce_municipal_transfers(), tce_state_creditor_types(), tce_state_expenditures()


Municipal revenues

Description

Retrieve municipal-level revenue data.

Usage

tce_municipal_revenues(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other revenues: tce_budgeted_revenues(), tce_state_revenues()

Examples

## Not run: 
# Not run: reaches the live TCE-PE API, which only accepts connections
# from Brazilian IP addresses (unreachable from CRAN / most CI).
tce_municipal_revenues(id_unidade_gestora = "384")

## End(Not run)

Municipal granted transfers

Description

Retrieve inter-unit transfers granted within the same municipality.

Usage

tce_municipal_transfers(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other expenditures: tce_municipal_creditor_types(), tce_municipal_expenditures(), tce_state_creditor_types(), tce_state_expenditures()


Municipalities

Description

Retrieve the list of municipalities in Pernambuco.

Usage

tce_municipalities(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other reference: tce_creditor_types(), tce_entities(), tce_funding_sources(), tce_inactivation_reasons(), tce_municipal_entities(), tce_payroll_types(), tce_state_entities(), tce_sub_units()


Object characteristics

Description

Lookup table of procurement object characteristic types.

Usage

tce_object_characteristics(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_classifications(), tce_object_nature()


Object classifications

Description

Lookup table of procurement object classification types.

Usage

tce_object_classifications(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_nature()


Object nature types

Description

Lookup table of procurement object nature types.

Usage

tce_object_nature(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other procurement: tce_agreements(), tce_bid_details(), tce_bid_documents(), tce_bid_legal_basis(), tce_bid_modalities(), tce_bid_stages(), tce_bid_statuses(), tce_bids(), tce_contract_amendments(), tce_contract_documents(), tce_contract_items(), tce_contracts(), tce_object_characteristics(), tce_object_classifications()


Process outcomes

Description

Retrieve outcomes of adjudicated electronic processes.

Usage

tce_outcomes(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other processes: tce_consideranda(), tce_debts_fines(), tce_determinations(), tce_processes(), tce_recommendations(), tce_retirement_outcomes(), tce_special_accountability(), tce_spending_limits()


List input parameters for an endpoint

Description

Returns a tibble describing the query parameters accepted by a given endpoint. The api_name column shows the exact name expected by the API; the r_name column shows the snake_case equivalent that you can pass to wrapper functions.

Usage

tce_params(endpoint)

Arguments

endpoint

Endpoint name (e.g., "Municipios", "Contratos"). Use tce_catalog() to see all available endpoints.

Value

A tibble with columns api_name, r_name, required, type, and description. Has a custom print method that summarises the parameter names at the top.

See Also

tce_fields(), tce_catalog(), tce_endpoint()

Examples

tce_params("Contratos")
tce_params("Municipios")
tce_params("LicitacaoUG")

Payroll types

Description

Lookup table of payroll (folha) types.

Usage

tce_payroll_types(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other reference: tce_creditor_types(), tce_entities(), tce_funding_sources(), tce_inactivation_reasons(), tce_municipal_entities(), tce_municipalities(), tce_state_entities(), tce_sub_units()


Person creditor types

Description

Lookup table of person creditor types.

Usage

tce_person_creditor_types(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CpfCnpj, Nome.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other suppliers: tce_sanctions(), tce_suppliers()


Legal processes

Description

Retrieve the list of formalized physical and electronic processes.

Usage

tce_processes(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other processes: tce_consideranda(), tce_debts_fines(), tce_determinations(), tce_outcomes(), tce_recommendations(), tce_retirement_outcomes(), tce_special_accountability(), tce_spending_limits()


Procurement process budget (Remessa)

Description

Procurement process budget (Remessa)

Usage

tce_procurement_process_budget(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Procurement process documents (Remessa)

Description

Procurement process documents (Remessa)

Usage

tce_procurement_process_documents(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Procurement process participants (Remessa)

Description

Procurement process participants (Remessa)

Usage

tce_procurement_process_participants(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Procurement processes (Remessa)

Description

Retrieve procurement processes from RemessaTCEPE.

Usage

tce_procurement_processes(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Public works

Description

Retrieve engineering works and services overseen by the Court of Accounts.

Usage

tce_public_works(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other public_works: tce_public_works_audits(), tce_public_works_contractors()


Public works audit data

Description

Retrieve audit data on public works.

Usage

tce_public_works_audits(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other public_works: tce_public_works(), tce_public_works_contractors()


Public works contractor data

Description

Retrieve data on companies contracted for public works.

Usage

tce_public_works_contractors(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other public_works: tce_public_works(), tce_public_works_audits()


Recommendations

Description

Retrieve recommendations from adjudicated electronic processes.

Usage

tce_recommendations(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other processes: tce_consideranda(), tce_debts_fines(), tce_determinations(), tce_outcomes(), tce_processes(), tce_retirement_outcomes(), tce_special_accountability(), tce_spending_limits()


Reference codes (Remessa)

Description

Reference codes for cost-estimate item imports.

Usage

tce_reference_codes(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Reference dates (Remessa)

Description

Available dates for reference sources in cost-estimate imports.

Usage

tce_reference_dates(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Reference sources (Remessa)

Description

Lookup table of reference sources for cost-estimate imports.

Usage

tce_reference_sources(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Public works details (Remessa)

Description

Public works details (Remessa)

Usage

tce_remessa_works(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works_execution(), tce_remessa_works_geometry(), tce_update_indices()


Public works execution (Remessa)

Description

Public works execution (Remessa)

Usage

tce_remessa_works_execution(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_geometry(), tce_update_indices()


Public works geometry (Remessa)

Description

Public works geometry (Remessa)

Usage

tce_remessa_works_geometry(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_update_indices()


Perform a request to the TCE-PE Open Data API

Description

Low-level function that sends a GET request to the TCE-PE Open Data API and returns the response content as a tibble. Higher-level wrapper functions such as tce_contracts(), tce_state_expenditures(), etc. call this function internally.

You can use tce_request() directly to access any API endpoint, including those that do not yet have a dedicated wrapper.

Usage

tce_request(
  endpoint,
  ...,
  clean_names = TRUE,
  max_tries = 3,
  progress = getOption("tceper.progress", TRUE),
  verbose = getOption("tceper.verbose", FALSE)
)

Arguments

endpoint

A character string with the API method name (e.g., "Contratos", "DespesasEstaduais"). See https://sistemas.tcepe.tc.br/DadosAbertos/Exemplo!listar for the full list of available endpoints.

...

Named query parameters. You can use either the API names (CamelCase/UPPERCASE) or the snake_case aliases shown by tce_params(). NULL values are silently dropped.

clean_names

If TRUE (default), column names are converted to snake_case via janitor::clean_names(). Set to FALSE to keep the original column names returned by the API.

max_tries

Maximum number of retry attempts for failed requests (default: 3). Passed to httr2::req_retry().

progress

If TRUE, displays progress messages via cli. Defaults to the value of getOption("tceper.progress"), or TRUE if unset.

verbose

If TRUE, prints the final API URL, parameters, and response metadata (status, content-type, size, elapsed time). Defaults to getOption("tceper.verbose", FALSE).

Details

API base URL

⁠https://sistemas.tcepe.tc.br/DadosAbertos/⁠

Network access

The API host only accepts connections from Brazilian IP addresses. Calls from outside Brazil are dropped at the network level and surface as a connection or TLS error. The offline discovery functions (tce_catalog(), tce_params(), tce_fields()) do not require network access and work anywhere.

URL construction

The TCE-PE API uses Struts2-style URLs where ! invokes a method (e.g. ⁠Contratos!json⁠). The URL is built with paste0() to preserve the literal ! – using httr2::req_url_path_append() would encode it as ⁠%21⁠, causing the server to ignore all query parameters.

Response limit

The API returns at most 100,000 records per request. When this limit is reached, a warning is issued suggesting the use of additional filters.

Encoding

The TCE-PE backend runs on ISO-8859-1 (Latin-1), not UTF-8. The package handles this transparently in both directions:

Options

Value

A tibble with the response content. Returns a zero-row tibble if no records are found.

Examples

## Not run: 
# Not run: these examples reach the live TCE-PE API, which only accepts
# connections from Brazilian IP addresses and is therefore unreachable
# from CRAN check machines and most CI runners.

# Direct query to any endpoint
tce_request("Contratos", CodigoEfiscoUG = "510101")

# Show full request/response details
tce_request("Contratos", CodigoEfiscoUG = "510101", verbose = TRUE)

# Keep original column names
tce_request("Municipios", clean_names = FALSE)

## End(Not run)

Retirement, pension and reform outcomes

Description

Retrieve outcomes from processes related to retirement, pension and reform (Aposentadoria, Pensão e Reforma).

Usage

tce_retirement_outcomes(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other processes: tce_consideranda(), tce_debts_fines(), tce_determinations(), tce_outcomes(), tce_processes(), tce_recommendations(), tce_special_accountability(), tce_spending_limits()


Sanctions

Description

Retrieve sanctions applied to suppliers.

Usage

tce_sanctions(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CpfCnpj, Nome.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other suppliers: tce_person_creditor_types(), tce_suppliers()


School transport

Description

Retrieve school transport services overseen by the Court of Accounts.

Usage

tce_school_transport(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.


Public servants

Description

Retrieve municipal and state public servants (SAGRES Personnel).

Usage

tce_servants(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, Nome, Cpf, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.


Special accountability outcomes

Description

Retrieve outcomes from special accountability processes (Tomada de Conta Especial).

Usage

tce_special_accountability(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other processes: tce_consideranda(), tce_debts_fines(), tce_determinations(), tce_outcomes(), tce_processes(), tce_recommendations(), tce_retirement_outcomes(), tce_spending_limits()


Spending limits

Description

Retrieve spending-limit data from government account processes.

Usage

tce_spending_limits(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia, CodigoMunicipio.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other processes: tce_consideranda(), tce_debts_fines(), tce_determinations(), tce_outcomes(), tce_processes(), tce_recommendations(), tce_retirement_outcomes(), tce_special_accountability()


State commitment line items

Description

Retrieve individual line items of state-level commitments.

Usage

tce_state_commitment_items(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, NumeroEmpenho, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other commitments: tce_commitment_liquidations(), tce_commitment_payments(), tce_commitment_summary(), tce_state_price_comparison()


State creditor types

Description

Lookup table of state creditor types.

Usage

tce_state_creditor_types(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other expenditures: tce_municipal_creditor_types(), tce_municipal_expenditures(), tce_municipal_transfers(), tce_state_expenditures()


State managed entities

Description

Retrieve state-level managed entities.

Usage

tce_state_entities(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other reference: tce_creditor_types(), tce_entities(), tce_funding_sources(), tce_inactivation_reasons(), tce_municipal_entities(), tce_municipalities(), tce_payroll_types(), tce_sub_units()


State expenditures

Description

Retrieve state-level expenditure data.

Usage

tce_state_expenditures(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

tce_params() to discover available parameters, tce_fields() to see output columns.

Other expenditures: tce_municipal_creditor_types(), tce_municipal_expenditures(), tce_municipal_transfers(), tce_state_creditor_types()

Examples

## Not run: 
# Not run: reaches the live TCE-PE API, which only accepts connections
# from Brazilian IP addresses (unreachable from CRAN / most CI).
tce_state_expenditures(id_unidade_gestora = "510101")

## End(Not run)

State price comparison

Description

Retrieve state commitment items with values for price comparison.

Usage

tce_state_price_comparison(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, NumeroEmpenho, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other commitments: tce_commitment_liquidations(), tce_commitment_payments(), tce_commitment_summary(), tce_state_commitment_items()


State revenues

Description

Retrieve state-level revenue data from the TCE-PE API.

Usage

tce_state_revenues(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

tce_params() to discover available parameters, tce_fields() to see output columns.

Other revenues: tce_budgeted_revenues(), tce_municipal_revenues()

Examples

## Not run: 
# Not run: reaches the live TCE-PE API, which only accepts connections
# from Brazilian IP addresses (unreachable from CRAN / most CI).
tce_state_revenues(id_unidade_gestora = "510101")

## End(Not run)

Sub-units of managed entities

Description

Retrieve sub-units belonging to managed entities.

Usage

tce_sub_units(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters. Common: CodigoEfiscoUG.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other reference: tce_creditor_types(), tce_entities(), tce_funding_sources(), tce_inactivation_reasons(), tce_municipal_entities(), tce_municipalities(), tce_payroll_types(), tce_state_entities()


Suppliers

Description

Retrieve registered suppliers. Partial matching is supported.

Usage

tce_suppliers(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CpfCnpj, Nome.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other suppliers: tce_person_creditor_types(), tce_sanctions()


Price update indices (Remessa)

Description

Indices for updating prices in cost-estimate spreadsheets.

Usage

tce_update_indices(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See Also

Other remessa: tce_benefit_types(), tce_budget_statuses(), tce_legal_instrument_documents(), tce_legal_instrument_items(), tce_legal_instrument_participants(), tce_legal_instruments(), tce_procurement_process_budget(), tce_procurement_process_documents(), tce_procurement_process_participants(), tce_procurement_processes(), tce_reference_codes(), tce_reference_dates(), tce_reference_sources(), tce_remessa_works(), tce_remessa_works_execution(), tce_remessa_works_geometry()

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.
Health stats visible at Monitor.