From patrick.brown at utoronto.ca  Wed Aug 24 14:09:46 2016
From: patrick.brown at utoronto.ca (Patrick Brown)
Date: Wed, 24 Aug 2016 08:09:46 -0400
Subject: [Rd] feature request for non-sweave vignettes
Message-ID: <CA+j2mtUy8966Mt9ZRKzAzYATFxuk4bk7mjJJidmem0=B=5rc5A@mail.gmail.com>

Currently Makefiles for vignettes are only supported for .tex files.  Could
the tools package be modified to allow file extensions to be specified for
a vignette engine?  Having the pandoc pdf conversion in a Makefile rather
than through R would be tidier in some cases.

If I specify my vignette engine as

```
tools::vignetteEngine(
  'myengine',
  pattern = '\\.[Rr](md|nw)$',
  output = c('md', 'tex'),
  ...
)
```

the `tools:::find_vignette_product` function could have

`if (final) c("pdf", "html") else unique(c("pdf", "html", "tex",
engine$output))`

that's probably the only line that would need changing.

p

Patrick Brown
Department of Statistical Sciences, University of Toronto
Analytics and Informatics, Cancer Care Ontario
pbrown.ca

	[[alternative HTML version deleted]]



[Rd] feature request for non-sweave vignettes
Patrick Brown