Description Usage Arguments Details Value References Examples
Given an url, these functions download a file from a given web site and unzip the file if it is compressed.
1 2 3 4 | loadFromUrl(srcUrl, destDir = "", verbose=FALSE)
validateUrl(srcUrl)
unzipFile(fileName, where = file.path(path.package("PAnnBuilder"),
"data"), isgz = FALSE)
|
srcUrl |
|
destDir |
|
where |
|
isgz |
|
fileName |
|
verbose |
A booline indicating whether to print extra information. |
These functions are used by various objects in package pubRepo to download data files from a web site. If the file is compressed, decompressing will be applied and the path for the decompressed file will be returned.
validateUrl
will terminate the process if an invalid url
is passed.
unzipFile
decompress the file passed as fileName.
loadFromUrl
returns a character string for the name of
the file saved locally.
Zhang, J., Carey, V., Gentleman, R. (2003) An extensible application for assembling annotation for genomic data.Bioinformatics 19(1), 155-156.
1 2 3 4 5 6 7 8 | ## Not run:
# Get a dummy data file from Bioconductor web site
data <-
loadFromUrl("http://www.bioconductor.org/datafiles/wwwsources/Tll_tmpl.gz",
destDir = "")
unlink(data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.