downloadFile: Check Cache and Download File

Description Usage Arguments Details Value See Also Examples

View source: R/downloadFile.R

Description

Check Cache and Download File

Usage

1
2
3
4
5
6
7
downloadFile(
  baseUrl,
  fileName,
  destDir = NULL,
  cacheEnv = "PAXTOOLSR_CACHE",
  verbose = FALSE
)

Arguments

baseUrl

a string, entire download URL except filename

fileName

a string, the filename of file to be downloaded

destDir

a string, the path where a file should be saved

cacheEnv

a string, environment variable pointing to specific cache

verbose

show debugging information

Details

Description of file formats: http://www.pathwaycommons.org/pc2/formats

Value

a boolean TRUE if the file was downloaded or already exists, FALSE otherwise

See Also

readSif, readBiopax, readSbgn, readSifnx, readGmt

Examples

1
downloadFile("http://google.com/", fileName="index.html", destDir=tempdir())

paxtoolsr documentation built on Nov. 8, 2020, 8:29 p.m.