Skip to main content

interp_download_file

Function interp_download_file 

Source
fn interp_download_file(
    args: &[RValue],
    named: &[(String, RValue)],
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Download a file from a URL.

Performs an HTTP or HTTPS GET request and writes the response body to the specified local file. Returns 0 (success) or non-zero (failure), matching R’s download.file() return convention.

@param url character scalar: the URL to download from @param destfile character scalar: the local file path to write to @param method character scalar: download method (ignored, always “internal”) @param quiet logical scalar: if TRUE, suppress progress messages (default FALSE) @return integer scalar: 0 for success