Govdown

::: {.lead-para} Govdown is an R package for creating websites and standalone HTML pages that use the GOV.UK Design System. This website is an example. :::

Use govdown in the same way as R Markdown, but specify output: govdown::govdown_document instead of output: html_document in the YAML metadata of the document, or in the _site.yml file of the website.

## Pass a vector to sum, and it will add the elements together.
sum(1:5)

## Pass several numbers to sum, and it also adds the elements.
sum(1, 2, 3, 4, 5)

## In fact, you can pass vectors into several arguments, and everything gets added.
sum(1:2, 3:5)

## If there are missing values, the sum is unknown, i.e., also missing, ....
sum(1:5, NA)
## ... unless  we exclude missing values explicitly:
sum(1:5, NA, na.rm = TRUE)


Try the govdown package in your browser

Any scripts or data that you put into this service are public.

govdown documentation built on March 10, 2021, 5:07 p.m.