Learn R Programming

paxtoolsr (version 1.6.3)

downloadFile: Check Cache and Download File

Description

Check Cache and Download File

Usage

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, the environment variable that points to the specific cache
verbose
show debugging information

Value

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

concept

paxtoolsr

Details

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

See Also

readSif, readBiopax, readSbgn, readSifnx, readGmt

Examples

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

Run the code above in your browser using DataLab