Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package vignette depends on tikz/pgf

Tags:

r

tikz

pgf

depends

My R package vignette uses tikz/pgf graphics. The R CMD check command throws an error message on operating systems where the LaTeX package tikz/pgf is not installed. On a vanilla Ubuntu system, for example, the Ubuntu package 'pgf' must be installed for R CMD check to complete without an error message. The CRAN servers seem to have tikz/pgf installed, but I cannot make sure this is always and everywhere the case. Is there any way I can add a dependency on pgf to the DESCRIPTION file of my R package? Can I just add it to the 'Depends' field (even though it is not an R package)? I would not like to trash the diagram because the package vignette is an article that was published in the Journal of Statistical Software, and I would like to use it as a vignette without any modification.

like image 570
Philip Leifeld Avatar asked Sep 27 '13 15:09

Philip Leifeld


1 Answers

From http://cran.r-project.org/doc/manuals/R-exts.html#The-DESCRIPTION-file :

Other dependencies (external to the R system) should be listed in the ‘SystemRequirements’ field, possibly amplified in a separate README file.

There won't be any automatic check or informative error message generated by the R installation process, but at least the information will be stored in a consistent place ...

like image 107
Ben Bolker Avatar answered Sep 23 '22 16:09

Ben Bolker