[R-pkg-devel] Including in my vignette a figure drawn outside R
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 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. The package will need to live on CRAN if that makes a difference. -- Michael http://www.dewey.myzen.co.uk/home.html __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Including in my vignette a figure drawn outside R
You could use DiagrammeR. On December 3, 2019 7:36:19 AM PST, 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 >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. > >The package will need to live on CRAN if that makes a difference. -- Sent from my phone. Please excuse my brevity. __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Including in my vignette a figure drawn outside R
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 | e...@debian.org __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel