[Bioc-devel] Loading a file for vignette

Robert Gentleman rgentlem at fhcrc.org
Mon Feb 26 17:26:39 CET 2007

Douglas Bates wrote:
> On 2/26/07, Sean Davis <sdavis2 at mail.nih.gov> wrote:
>> I would like to make a vignette that will instruct the user to load a file
>> from a package distribution using one of the packages R functions.  The file
>> is not a .txt file (or any of the other file types that should be in the data
>> directory of a package).  Of course, the vignette needs to build and I would
>> like to have those commands be the same as those used by the user.  I have
>> looked around a bit and the packages that I have found do a simple
>> load(somedata) where somedata is an R data file.  Is there a way to start
>> directly from the original file, or am I better off creating the R object and
>> loading it and simply telling the user how I created it?  This is a VERY
>> small point, but I'm curious.
> There are examples like this in the Matrix package on CRAN.  You can
> put the data in a directly that will get installed with the package
> (say myPackage/inst/exampleData) then use the system.file() function
> to get you the path to where it is installed.

  and many Bioconductor packages, such as Biobase, the convention has 
been to use inst/extdata in Bioconductor packages...

> _______________________________________________
> Bioc-devel at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel

Robert Gentleman, PhD
Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M2-B876
PO Box 19024
Seattle, Washington 98109-1024
rgentlem at fhcrc.org

More information about the Bioc-devel mailing list