r-lib / devtools

Tools to make an R developer's life easier
https://devtools.r-lib.org
Other
2.39k stars 760 forks source link

Function help renders differently when using `devtools::load_all` than when installing package #2435

Closed david-cortes closed 2 years ago

david-cortes commented 2 years ago

From https://github.com/rstudio/rstudio/issues/11360

Steps to reproduce:

Expected behavior: should look the same as if the help page were loaded for a package installed through install.packages or R CMD INSTALL.

Actual behavior: function signatures and code examples are rendered differently when loaded through devtools.

Setup: devtools 2.4.3, R 4.2.0.

hadley commented 2 years ago

You don't provide a concrete example, but in general, we expect some differences because devtools/pkgload shows you the development version of the docs, and we can't perfectly recreate what R does.

david-cortes commented 2 years ago

Here's an example, the issue is always the same for all packages: