[R-pkg-devel] Including in my vignette a figure drawn outside R

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Tue Dec 3 17:17:19 CET 2019


On 3 December 2019 at 15:36, Michael Dewey wrote:
| I am planning to include a flow-chart in the vignette of one of my 
| packages (metap). I am planning to draw it using dot from Graphviz. I 
| know that there is Rgraphviz which would do the whole thing in R but I 
| do this sort of thing rarely and I suspect the overhead of learning how 
| to do it in Rgraphviz would outweigh the benefit.
| 
| So my question is: if I wish to be a good Open Source citizen should I 
| just bundle the .pdf file resulting from dot with the vignette or should 

That seems like it is the appropriate move.

| I provide the .gv file which generated it? I think from reading Writing 
| R Extensions that in either case I just put them in the directory along 
| with my .Rnw file but please disabuse me of that impression if false.

You can use subdirectories in the source repository such that the sources are
present in the .tar.gz but are not necessarily installed with the package.
 
Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-package-devel mailing list