scan_situas_reports.RdAutomatically discovers valid report IDs by testing a range of IDs against the SITUAS API. This function can be used to find new reports that may have been added to the API.
scan_situas_reports(max_id = 200, date = Sys.Date(), verbose = TRUE)A data.table with columns:
Report ID (integer)
Report type: "DATA" or "PERIODO" (character)
Number of rows at the given date (integer)
if (FALSE) { # \dontrun{
# Scan for all valid reports up to ID 150
valid_reports <- scan_situas_reports(max_id = 150)
print(valid_reports)
# Scan without progress messages
valid_reports <- scan_situas_reports(max_id = 100, verbose = FALSE)
} # }