Learn R Programming

campfin (version 1.0.7)

url_file_size: Check a URL file size

Description

Call httr::HEAD() and return the number of bytes in the file to be downloaded.

Usage

url_file_size(url)

Arguments

url

The URL of the file to query.

Value

The size of a file to be downloaded.

Examples

Run this code
# NOT RUN {
url_file_size("https://cran.r-project.org/bin/macosx/old/R-2.0.1.dmg")
# }

Run the code above in your browser using DataLab