[R-pkg-devel] Re-creating vignettes after update of data or different mechanism to create reports?
murdoch.duncan at gmail.com
Thu May 11 15:49:47 CEST 2017
On 11/05/2017 8:31 AM, Rainer Krug wrote:
> I am building two packages:
> - a data package which contains the data and function to extract it (several datasets, linked, like an sql database) and
> - an analysis package which contains functions to analyse the data in the data package and depends on the data package.
> The data package is updated often as the data is updated regularly, while the analysis package will (hopefully) be more static.
> Now I created a report which I put in the vignette of the analysis package, which works nicely and the report is created when the analysis package is installed, but when the data package is updated, the user has to re-install the analysis package to re-create the report (vignette) of the updated dataset.
> I know that I am abusing the vignette, but it works nicely.
> My question: Is there a way of re-creating the vignette by a user after they installed a newer version of the data package, or is there a better way of creating the report(s)?
1. No, if the analysis package isn't changed, it won't automatically
2. Why not put the vignette in the data package? Then it will be
consistent with the data in that package.
More information about the R-package-devel