Closed mpadge closed 2 years ago
The :bug: and corresponding error message came from this call https://github.com/ropensci-review-tools/pkgstats/blob/ecb314e34c56d46b23b2b19e75cb914922f02f2d/R/rd-stats.R#L121 to tools::Rd2txt()
. Reading through the details there, taxa
obviously includes an \Sexpr
macro in one man file, which is executed by default at "render" time, which follows "install". Those execution times are in turn defined by a stages
parameter, so the solution is to just hard-code that as stages = "build"
, which is the first possible stage.
Further info: This happens because of stuff like these lines in taxa
, which are in turn taken directly from tidyverse code, and insert Sexpr macros with explicit stages = "render"
arguments to insert lifecycle svg badges directly into man files. The solution above simply overrides this values of stages
with "build", and so fails to render any (lifecycle or other) svgs in man files, but enables tools::Rd2txt()
to work. So it's not a solution as much as just a tricky workaround.
Thanks for the digging & working-around!
From @maelle:
Created on 2022-04-05 by the reprex package (v2.0.1)