caged_status: Verifica se o repositório HuggingFace do CAGED está acessível

View source: R/status.R

caged_statusR Documentation

Verifica se o repositório HuggingFace do CAGED está acessível

Description

Faz uma requisição leve à API do HuggingFace e retorna o status. Útil para diagnosticar problemas de conectividade antes de iniciar um download com caged_load() ou caged_download().

Usage

caged_status(timeout = 10, verbose = TRUE)

Arguments

timeout

integer. Timeout in seconds. Default: 10.

verbose

logical. If TRUE, exibe mensagem detalhada no console. Default: TRUE.

Value

invisível: lista com campos online (logical), latencia_ms (numeric), url (character) e mensagem (character).

See Also

caged_hf_files() para listar competências disponíveis.

Examples

## Not run: 
caged_status()

# Só verificar sem imprimir
st <- caged_status(verbose = FALSE)
st$online

## End(Not run)


datacaged documentation built on Oct. 13, 2026, 1:06 a.m.