[R-pkg-devel] Rdmacros as Suggests rather than Imports

James Pustejovsky jepu@to @end|ng |rom gm@||@com
Fri Jan 22 21:29:11 CET 2021


I'm writing to see if anyone has suggestions for how to handle an issue I'm
facing with the clubSandwich package (
https://CRAN.R-project.org/package=clubSandwich; Github repo:
https://github.com/jepusto/clubSandwich). The package documentation uses
the fairly new package mathjaxr (https://CRAN.R-project.org/package=mathjaxr;
Github repo: https://github.com/wviechtb/mathjaxr) so that the help
packages can include mathjax formulas. Using mathjaxr requires adding it as
a dependency (in Imports) and in the Rdmacros field.

I recently learned that the Debian GNU/Linux team that handles R packaging
has trouble with the mathjaxr package, and consequently with any package
that has mathjaxr as a dependency. Thus, I would like to make
mathjaxr an optional feature, moving it from Imports to Suggests.
However, Writing R Extensions specifies that RdMacros packages must be
listed in Imports or Depends.

Does anyone have suggestions for a potential workaround for this situation
(short of entirely removing the use of mathjaxr)?

Kind Regards,

	[[alternative HTML version deleted]]

More information about the R-package-devel mailing list