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]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel