Skip to content

Stores the given configuration values as options(rsei.*) so subsequent calls to sei_config (and therefore every operation) pick them up without having to pass config explicitly.

Usage

sei_set_default_config(
  sei_url = NULL,
  sigla_sistema = NULL,
  identificacao_servico = NULL,
  id_unidade = NULL
)

Arguments

sei_url

Character. SEI Web Service endpoint (required for live calls). Resolves from the argument, getOption("rsei.sei_url") or Sys.getenv("RSEI_URL"). There is no built-in default, so the package works with any SEI installation.

sigla_sistema

Character. System sigla registered in SEI.

identificacao_servico

Character. Service access key (chave de acesso).

id_unidade

Character. Default unit id; many operations accept an empty string.

Value

Invisibly, the previous options (as returned by options()).

Examples

if (FALSE) { # \dontrun{
sei_set_default_config(
  sigla_sistema = "HORTENSIAS",
  identificacao_servico = Sys.getenv("RSEI_IDENTIFICACAO_SERVICO")
)
} # }