Title: | Automatically Generate _site.yml File for 'R Markdown' |
---|---|
Description: | The goal of 'siteymlgen' is to make it easy to organise the building of your 'R Markdown' website. The init() function placed within the first code chunk of the index.Rmd file of an 'R' project directory will initiate the generation of an automatically written _site.yml file. 'siteymlgen' recommends a specific naming convention for your 'R Markdown' files. This naming will ensure that your navbar layout is ordered according to a hierarchy. |
Authors: | Adam Cribbs [aut, cre] |
Maintainer: | Adam Cribbs <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.0.9000 |
Built: | 2025-02-04 03:09:18 UTC |
Source: | https://github.com/acribbs/siteymlgen |
This function acts as an entry point for the initialisation of the yaml generation.
init( authors = "author", date = lubridate::today(), affiliation = NULL, dir = ".", left = "yes", right = NULL, navbar_title = "Title", title = "siteymlgen", categories = NULL, name = NULL, output_dir = NULL, include = NULL, exclude = NULL, toc = FALSE, toc_depth = NULL, toc_title = NULL, toc_float = FALSE, theme = "united", highlight = NULL, css = NULL, file = NULL )
init( authors = "author", date = lubridate::today(), affiliation = NULL, dir = ".", left = "yes", right = NULL, navbar_title = "Title", title = "siteymlgen", categories = NULL, name = NULL, output_dir = NULL, include = NULL, exclude = NULL, toc = FALSE, toc_depth = NULL, toc_title = NULL, toc_float = FALSE, theme = "united", highlight = NULL, css = NULL, file = NULL )
authors |
A character or vector of characters of authors to add to the _site.yml |
date |
A character or a vector of characters describing the date |
affiliation |
A character or a vector of characters describing the
authors affiliation. The affiliation which must match the length of the
vector supplied to |
dir |
The directory of the Rmarkdown documents that you want automatically built into a _site.yml file. |
left |
A TRUE or FALSE value that determines if you want your navigation bar left aligned. This is the default location. |
right |
A TRUE or FALSE value that determines if you want your navigation bar right aligned. Left aligned is the default location |
navbar_title |
The title of the navigation bar. If none supplied this defaults to "Title" |
title |
A character describing the title of the website. This defaults to "siteymlgen" if no value is supplied |
categories |
A character or vector of characters describing the categories for the website. |
name |
A character or a vector of characters describing the name of the author(s) |
output_dir |
A character describing the output directory name for the final Rmarkdown website. |
include |
A character or vector of characters detailing the extra files to include in the final Rmarkdown build |
exclude |
A character or vector of characters detailing the files not to include in the final Rmarkdown build |
toc |
Specify whether a table of contents is required for your website, defaults to TRUE |
toc_depth |
An integer to specify the depth of the table of contents |
toc_title |
A character that sets the toable of contents title |
toc_float |
A boolean to specify if the table of contents is static or floats. defaults to FALSE. |
theme |
An Rmarkdown theme to set the render output. Defaults to 'united'. |
highlight |
Syntax highlighting style for html_output from the rmarkdown package. Supported styles include "default", "tango", "pygments", "kate", "monochrome", "espresso", "zenburn", "haddock", and "textmate". Pass NULL to prevent syntax highlighting |
css |
Specify custom css. |
file |
Specify the output filename. |
A _site.yml file populated with yaml code.
init(authors = c("Adam","Paul"), left="yes", navbar_title = "Main title", title = "hello", categories=c("r", "reprodicibility"))
init(authors = c("Adam","Paul"), left="yes", navbar_title = "Main title", title = "hello", categories=c("r", "reprodicibility"))