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: [email protected]
> Date: Sun, 9 Dec 2012 22:11:47 -0800
> To: [email protected]; [email protected]
> 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:<[email protected]> 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 <[email protected]> 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]]
> >
> >______________________________________________
> >[email protected] 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.
>
> ______________________________________________
> [email protected] 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]]
______________________________________________
[email protected] 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.