capture_cran_warning: Capture CRAN URL warnings and errors
Description
This internal function attempts to open a CRAN URL and read its contents.
It captures and classifies warnings and errors related to network issues,
such as timeouts or inaccessible URLs.
Usage
capture_cran_warning(cran_url, path)
Value
A list with two elements:
status
Character string indicating the result type: "success", "url_error", "timeout", "error", "url_warning", "timeout_warning", or "warning".
message
Character string with the captured warning or error message, or NULL if successful.
Arguments
cran_url
Character. Base URL of the CRAN mirror.
path
Character. Path to the resource on the CRAN server.