data_dir: Get the right data directory

View source: R/data_dir.R

data_dirR Documentation

Get the right data directory

Description

The govukhugo package assumes data is stored in R/data, when processing Rmarkdown files this folder is copied to a temporary folder. This is a helper function to easily work both interactively when editing an Rmarkdown file and when running the build_hugo_rmd() function.

Usage

data_dir(alt_path = NULL)

Arguments

alt_path

a non-standard location

Value

the location of the data folder


co-analysis/govuk-hugo-r documentation built on June 23, 2022, 5:44 a.m.