getURLDirList: Get remote URL directory listing

Description Usage Arguments Value Note Examples

View source: R/getURLDirList.R

Description

Get remote URL directory listing

Usage

1
getURLDirList(url, pattern = NULL)

Arguments

url

character(1). Uniform Resource Locator (URL).

pattern

character(1). Pattern to use for matching.

Value

character. Simple directory contents return, including both files and subdirectories.

Note

Best served using FTP instead of HTTP.

Updated 2020-07-24.

Examples

1
2
3
4
5
6
7
8
url <- "ftp://ftp.ncbi.nlm.nih.gov/genomes/"
if (
    !isTRUE(nzchar(Sys.getenv("CI"))) &&
    goalie::hasInternet(url)
) {
    x <- getURLDirList(url)
    tail(x)
}

acidgenomics/basejump documentation built on Aug. 8, 2020, 2:11 a.m.