plug_download_base {plug}R Documentation

Download all data from a specific base

Description

This function downloads all data from a specified base using the query ⁠SELECT * FROM base_name⁠.

Usage

plug_download_base(
  base_name,
  endpoint = "https://plug.der.pe.gov.br/MadrixApi/executeQuery",
  verbosity = 0
)

Arguments

base_name

The name of the base from which to download all data.

endpoint

The endpoint URL for executing queries.

verbosity

The verbosity level of the API request (0 = none, 1 = minimal, 2 = detailed).

Value

A tibble containing all data from the specified base.

Examples


## Not run: 
data <- plug_download_base(
  base_name = "Contratos_VIEW"
)

## End(Not run)


[Package plug version 0.1.0 Index]