[Rd] Make scripts during package installation?

Henrik Bengtsson hb at biostat.ucsf.edu
Fri Dec 7 23:51:02 CET 2012

During installation of a package, Makevars/Makefile in src/ is
processed.  I've always considered the purpose of this for compiling
native code.  Is that it's solely purpose, or is it alright to use it
also for non-code compilation purposes, e.g. building inst/
subdirectories on the fly?  If not, are there other means to create
non-static inst/ subdirectories during installation?

The immediate need I have right now is that untar an archive to
inst/testScripts/.  The reason why I need this is that a package can
only contain pathnames of length <= 100 characters (restriction in the
tar file format), and mine are longer than that, e.g.
[115 chars].  See also
. One strategy is to create a local tar file referring to files
and then untar it to aroma.affymetrix/inst/testScripts/ during
installation.  I want to this under the assumption that after the
package installation is completed, the package directory is read-only
so nothing can be updated after that step.  Note that this cannot be
done during package built, only installation.


More information about the R-devel mailing list