[R-pkg-devel] Re-creating vignettes after update of data or different mechanism to create reports?

Rainer Krug Rainer at krugs.de
Thu May 11 15:55:31 CEST 2017

> On 11 May 2017, at 15:49, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> On 11/05/2017 8:31 AM, Rainer Krug wrote:
>> Hi
>> 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 update.

Yes - but can I initiate a rebuild by issuing a command in R like


to enable the user to rebuild the vignette?

> 2.  Why not put the vignette in the data package?  Then it will be consistent with the data in that package.

The vignette (which is a report) depends on functions in the Analysis package - so I would have circular dependencies - but I could actually invert the dependencies...

> Duncan Murdoch

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

University of Zürich

Cell:       +41 (0)78 630 66 57

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP
URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20170511/f1224168/attachment.sig>

More information about the R-package-devel mailing list