Skip to contents

Save a snapshot to disk (RDS)

Usage

vigiar_salvar_snapshot(snapshot, caminho, overwrite = FALSE)

Arguments

snapshot

A vigiar_snapshot object.

caminho

File path (will add .rds if absent).

overwrite

If FALSE, errors if file exists.

Value

Invisibly, the file path.

Examples

snap <- vigiar_snapshot(dados = pm25_rj_sample, tabela = "df_anual")
#> ✔ Snapshot criado: df_anual (15 x 7) SHA256: 1a3d74fd2c99f6ca...
vigiar_salvar_snapshot(snap, tempfile(fileext = ".rds"))
#> ✔ Snapshot salvo: /tmp/RtmpQEwbbh/file1a11570decc5.rds