url2path | R Documentation |
Combine the basename()
of a file URL with a directory path.
url2path(url, dir)
url |
The URL of a file to download. |
dir |
The directory where the file will be downloaded. |
Useful in the destfile
argument to download.file()
to save a file with
the same name as the URL's file name.
The desired file path to a URL file.
url2path("https://floridalobbyist.gov/reports/llob.txt", tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.