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

url_file_size(url)

Arguments

url

The URL of the file to query.

Value

The size of a file to be downloaded.