Read local or remote file
retrieveFile(source, destDir = NULL)
a string that is either a path to a local or remote GTF
a string that indicates the path to the directory where the downloaded GTF file should be stored. If not provided, a temporary directory will be used.
data.frame retrieved file path
CElegansGtfCropped = system.file("extdata",
"C_elegans_cropped_example.gtf.gz",
package="GenomicDistributions")
CElegansGtf = retrieveFile(CElegansGtfCropped)
#> Got local file: /private/var/folders/jt/kcfp49s5061b941g5013p8340000gn/T/Rtmpmaedq5/temp_libpath16ad0230438bd/GenomicDistributions/extdata/C_elegans_cropped_example.gtf.gz