% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasus_catalog.R
\name{datasus_docs_url}
\alias{datasus_docs_url}
\title{Get FTP URLs for DATASUS documentation}
\usage{
datasus_docs_url(source = NULL)
}
\arguments{
\item{source}{Optional source code to filter (e.g. \code{"SIHSUS"}). When
\code{NULL}, all known documentation paths are returned.}
}
\value{
A tibble with columns \code{source} and \code{docs_url}.
}
\description{
Returns the FTP URLs where documentation files (layouts, data dictionaries)
for each source system can be found. Use \code{\link[=datasus_ftp_ls]{datasus_ftp_ls()}} to list the
actual files at each URL.
}
\examples{
datasus_docs_url()
datasus_docs_url("CNES")

\donttest{
tryCatch({
  # List documentation files for CNES (network required).
  docs <- datasus_docs_url("CNES")
  datasus_ftp_ls(docs$docs_url[[1]], verbose = FALSE)
}, error = function(e) message("FTP unavailable: ", conditionMessage(e)))
}
}
