Learn R Programming

condensr (version 1.0.0)

create_website: Create the templates for a condensr website

Description

Creates the necessary directories, high level files and structures for a condensr website.

Usage

create_website(dir, title)

Value

No return value, called to create the skeleton structure of the website.

Arguments

dir

Target directory for the website.

title

Title of the website.

Details

Under the hood, this function is creating a distill website (using distill:::do_create_website), and then overwriting some files with condensr specifics. These specific files are:

  • _site.yml - for site specific configurations

  • index.qmd - the home page of the website

  • staff_list.R - an example setup the condensr staff, project and publication lists

  • staff/index.qmd - the template page that will list staff members

  • staff/joe-bloggs/index.qmd - an example page for the hypothetical staff member

Examples

Run this code
create_website(dir = tempdir(), "test_site")

Run the code above in your browser using DataLab