Generating the DESCRIPTION of an R package at installation time

151 views Asked by At

Say I have an R package on GitHub that I expect users to install with devtools::install_github. I'd like packageVersion or some element of packageDescription to reflect the specific commit that was installed. This answer describes how a Git commit hash can be transformed into a version number that R will accept, and how a DESCRIPTION can be generated by Make. Does this mean that install_github and similar functions automatically make before checking for the DESCRIPTION? What other ways are there to hook into install_github or its subroutines to generate the DESCRIPTION dynamically, or change the effect of the DESCRIPTION, before the actual installation?

0

There are 0 answers