11.1 Get started

You can installpkgdown from CRAN, or its development version from GitHub, and find more information from its GitHub repository (https://github.com/r-lib/pkgdown).

install.packages("pkgdown")# Or the development versiondevtools::install_github("r-lib/pkgdown")

After it is installed, you can call the functionpkgdown::build_site() in the root directory of your source package. It will build a website to thedocs/ directory, which can be turned into an online website viaGitHub Pages or Netlify.