[Rd] Setting up the NAMESPACE file "automatically" during R CMD build?
Henrik Bengtsson
hb at biostat.ucsf.edu
Tue Apr 17 23:20:17 CEST 2012
Hi,
I'd like to compile the NAMESPACE file from a template where things
such as S3method() statements are automatically inserted based on code
inspection, because doing it by hand is too error prone. I am
currently generating a NAMESPACE file this way which I copy to my
package root, but I'd like to automate this so it is done when
building the *.tar.gz source (during 'R CMD build'), such that is
there for building binaries and when installing the package.
What is the best way to do this? I was thinking of utilizing a
<pkg>/configure script, but as far I understand "Writing R
Extensions", that is only run by 'R CMD INSTALL' not 'R CMD build'.
Am I asking the wrong question?
Thanks,
Henrik
More information about the R-devel
mailing list