I recently included a .bib file in a package in the directory: 
package_name/inst/extdata


I then recall this file using:  <- system.file("extdata/bibTest.bib", package = 
"metaDAT")


I assume something similar could be helpful here.
> From: jdnew...@dcn.davis.ca.us
> Date: Sun, 9 Dec 2012 22:11:47 -0800
> To: su...@sssu.edu.in; r-help@r-project.org
> Subject: Re: [R] Creating an R package in windows- where to put images?
> 
> http://cran.r-project.org/doc/manuals/r-release/R-exts.html#Data-in-packages
> 
> Don't get stuck on your idea that the file is a gif... once you load it into 
> memory it is an R object.
> ---------------------------------------------------------------------------
> Jeff Newmiller                        The     .....       .....  Go Live...
> DCN:<jdnew...@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
>                                       Live:   OO#.. Dead: OO#..  Playing
> Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
> /Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
> --------------------------------------------------------------------------- 
> Sent from my phone. Please excuse my brevity.
> 
> Subramanian S <su...@sssu.edu.in> wrote:
> 
> >My R version: 2.15.1- windows
> >
> >While creating an R package in windows, i want to include an image (a
> >.gif
> >image) that will finally be in the package. A function in my package
> >will
> >call the gif image. Where should i put the images before running "Rcmd
> >build mypkg" or "Rcmd INSTALL --build mypkg", so that after creating
> >the
> >package, the .zip file / .tar.gz/ .tgz would have the gif image in the
> >correct place in each OS.  Basically two questions (1) which directory
> >should i put the gif image before building the pkg and (2)how do i
> >specify
> >the path in the function that will call the gif image?
> >
> >     [[alternative HTML version deleted]]
> >
> >______________________________________________
> >R-help@r-project.org mailing list
> >https://stat.ethz.ch/mailman/listinfo/r-help
> >PLEASE do read the posting guide
> >http://www.R-project.org/posting-guide.html
> >and provide commented, minimal, self-contained, reproducible code.
> 
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
                                          
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to