View source: R/datasus_catalog.R
| datasus_ftp_ls | R Documentation |
Fetches a raw directory listing from a DATASUS FTP path.
datasus_ftp_ls(path, timeout = 120, ftp_use_epsv = FALSE, verbose = TRUE)
path |
FTP path or full URL. Relative paths are prefixed with the DATASUS public FTP root. |
timeout |
Timeout in seconds (default 120). |
ftp_use_epsv |
Logical. Passed to curl (default |
verbose |
Logical. Emit progress messages (default |
A tibble with columns ftp_url and entry.
tryCatch(
datasus_ftp_ls("SIHSUS/200801_/Dados/", verbose = FALSE),
error = function(e) message("FTP unavailable: ", conditionMessage(e))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.