r-lib/pkgload

FR: Suppress or make some buttons work in `dev_help`

Opened this issue · 0 comments

In dev help, in recent versions of R, there are two buttons that are created and useful.

  1. Run examples

Starting in R 4.2, there is a Run examples button in regular help files. I don't really know how the dev help is constructed, but would there be a way for the Run examples button to be tweaked to call dev example in the help pane? pkgload::dev_example()

I know that under the Run examples base R function, there is some knitr code.

Currently, we get /Example/{topic} not found

  1. Index

URL '/help/library/package/help/00Index.html' not found

But pkgload provides dev_topic_index(), could the dev help be tweaked, so that the function would be called?
image

Otherwise, would it be possible to suppress these buttons from dev help to avoid non-working things?

Also not sure if this is a pkgload or RStudio feature request (or a bit of both)