Use build_pkgdown with default option to build the
{pkgdown} site and copy it in “inst” so that it is available in your
package.
ymlfaviconFunction open_pkgdown_function() adds function
open_pkgdown() inside your package that will open the
userguide on demand.
Users of your package (pkg) can now have access to the
site using:
Add these in your documentation and/or add a message when loading the package with this function inside your package: