Package 'rotemplate'

Title: pkgdown template and utilities for rOpenSci docs
Description: This is a private template for use by rOpenSci packages. Please don't use it for your own non-rOpenSci package.
Authors: Maëlle Salmon [cre, aut] , Jeroen Ooms [aut], rOpenSci [fnd] (https://ropensci.org/)
Maintainer: Maëlle Salmon <[email protected]>
License: MIT + file LICENSE
Version: 2.0.1
Built: 2024-10-29 05:17:17 UTC
Source: https://github.com/ropensci-org/rotemplate

Help Index


Build rOpenSci docs sites

Description

Wrapper for pkgdown::build_site that we use to build the websites for ⁠https://docs.ropensci.org⁠. Sets a theme and logo, checks if mathjax is required, and injects a logo into the readme if needed.

Usage

build_ropensci_docs(
  path = ".",
  destination = NULL,
  install = FALSE,
  preview = interactive(),
  ...
)

Arguments

path

path to package source directory

destination

path where to save the docs website

install

passed to pkgdown::build_site. Default is to not reinstall the package.

preview

preview the website (servr will be used)

...

passed to pkgdown::build_site

Details

Note the default behavior is to render the docs using the installed package, i.e. not reinstall the package on the fly (which does not always work well). In production, we manually install the package before running build_ro_site.


Test function

Description

Test function

Usage

test()

Examples

test()

Test function

Description

Test function

Usage

test2()

Examples

test2()

Test function

Description

Test function

Usage

test3()

Examples

test3()

Test function

Description

Test function

Usage

test4()

Examples

test4()