R function links to rdrr.io on books created using bookdown

When you read books generated using bookdown and click on R functions that are linked, you are taken to an external webpage. For example, the functions on Mastering Shiny and Advanced R redirect to rdrr.io.

I was wondering which bookdown function does this redirect, and wondering if there is any appetite for choosing another website without any ads? I would certainly be interested in building such a thing.

I believe the source of the functionality you are asking about is here : https://downlit.r-lib.org/

2 Likes

The books you linked are made using bookdown::bs4_book() format, which indeed have integrated the feature of using downlit to do the linking.

This is mentioned in the doc 3.1 HTML | bookdown: Authoring Books and Technical Documents with R Markdown

  • R syntax highlighting and autolinking by the downlit package is paired with an accessible color scheme designed by Alison Hill.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.