Read local or remote file

retrieveFile(source, destDir = NULL)

Arguments

source

a string that is either a path to a local or remote GTF

destDir

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.

Value

data.frame retrieved file path

Examples

CElegansGtfCropped = system.file("extdata", 
                                 "C_elegans_cropped_example.gtf.gz", 
                                 package="GenomicDistributions")
CElegansGtf = retrieveFile(CElegansGtfCropped)
#> Got local file: /private/var/folders/2n/wsp2zcc13jz9g_my_jhrwjk40000gq/T/Rtmp7hAr10/temp_libpath979f7e058fd3/GenomicDistributions/extdata/C_elegans_cropped_example.gtf.gz