filename_from_url: Extract a file name from a package download URL
Description
This is usually just the part after the last slash,
but for https://github.com/cran/* URLs it is a bit trickier.
Usage
filename_from_url(url, pkg)
Arguments
url
The URL, a character scalar.
pkg
The name of the package the URL belongs to.
Value
Character scalar, the file name.