Learn R Programming

misha (version 4.2.9)

gwget: Downloads files from FTP server

Description

Downloads multiple files from FTP server

Usage

gwget(url = NULL, path = NULL)

Value

An array of file names that have been downloaded.

Arguments

url

URL of FTP server

path

directory path where the downloaded files are stored

Details

This function downloads files from FTP server given by 'url'. The address in 'url' can contain wildcards to download more than one file at once. Files are downloaded to a directory given by 'path' argument. If 'path' is 'NULL', file are downloaded into 'GROOT/downloads'.

See Also

gtrack.import_set

Examples

Run this code
gdb.init_examples()
# \donttest{
outdir <- tempdir()
gwget("ftp://hgdownload.soe.ucsc.edu/goldenPath/hg19/chromosomes/md5sum.txt", path = outdir)
# }

Run the code above in your browser using DataLab