adding-pkgdown.Rmd.Rproj fileusethis::use_pkgdown() once to configure. This will
generate additional files and sub-folders (e.g. docs).pkgdown::build_site() to preview site and before
any push to GitHub. There will be a lot of ancillary files, but check
them in. They’re all necessary for GitHub to build the website.With this option, you don’t need to activate Github Pages (in the next section) because it’ll already be done.
usethis::use_pkgdown_github_pages()
pkgdown::build_site_github_pages()Any .Rmd in the vignette sub-folder will be
automatically converted to an article.
Settings >
Pages
main branch & the
sub-folder docs
It may take anywhere from 5 mins to 20 mins to see the website.