[R] Creating an R package in windows- where to put images?

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Mon Dec 10 07:11:47 CET 2012


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:<jdnewmil at 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 <subbu at 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 at 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.




More information about the R-help mailing list