url2file: Download a file from a URL into your working directory

Description Usage Arguments Examples

View source: R/url2file.R

Description

This is a fuction to streamline downloading files from a URL to a new or existing folder in the working directory.

Usage

1
url2file(urlfile, dirID = "Downloaded_files")

Arguments

urlfile

provide a URL adddress in quotes of the file to download stored in a vector

dirID

provide the name of an existing or new folder (default = "Downloaded_files")

#' @examples You can specify an existing folder in the working directory (dirID="myfolder"). Or specify a new folder (dirID="newfolder")

Examples

1
2
Passing the address to "url2file("https://page.com")" will download the page.
This will be into a file called "Downloaded_files" in your working directory.

KarlMert/URL_To_File documentation built on May 25, 2019, 9:22 a.m.