powered by
Combine the basename() of a file URL with a directory path.
basename()
url2path(url, dir)
The URL of a file to download.
The directory where the file will be downloaded.
The desired file path to a URL file.
Useful in the destfile argument to download.file() to save a file with the same name as the URL's file name.
destfile
download.file()
# NOT RUN { url2path("https://floridalobbyist.gov/reports/llob.txt", tempdir()) # }
Run the code above in your browser using DataLab