Here is how the data files contained in this package were produced:

1) Download the following files from UCSC to a DOWNLOAD dir:

   ftp://hgdownload.cse.ucsc.edu/goldenPath/dm2/bigZips/
     chromFa.zip (40M)
     upstream1000.fa.gz (4.1M)
     upstream2000.fa.gz (7.7M)
     upstream5000.fa.gz (18MB)

2) Shell commands:

   cd DOWNLOAD
   for i in `ls *.zip` ; do unzip $i ; done
   for i in `ls *.gz` ; do gunzip $i ; done
   R CMD INSTALL BSgenome.Dmelanogaster.UCSC.dm2

3) R commands:

   library(BSgenome.Dmelanogaster.UCSC.dm2)
   file <- system.file("scripts", "comments.R", package="BSgenome.Dmelanogaster.UCSC.dm2")
   source(file)
   buildDataFiles("DOWNLOAD", "DATA", Dmelanogaster@source_files, "", ".fa", comments)

