[R-pkg-devel] Native pipe in package examples
Jon Harmon
jonthegeek @end|ng |rom gm@||@com
Fri Jan 26 12:21:43 CET 2024
See
https://github.com/r-lib/httr2/blob/main/configure
and
https://github.com/r-lib/httr2/blob/main/tools%2Fexamples.R
(and https://r-pkgs.org/misc.html#sec-misc-tools if you're not sure what
you're looking at).
They use a build-time script to change the examples. It looks like it just
puts a header on them saying they won't run (and stops them from executing
in checks, I think?). It'd be interesting to use that trick to actually
change the code, but probably more trouble than it's worth.
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list