Package 'indiedown'

Title: Individual R Markdown Templates
Description: Simplifies the generation of customized R Markdown PDF templates. A template may include an individual logo, typography, geometry or color scheme. The package provides a skeleton with detailed instructions for customizations. The skeleton can be modified by changing defaults in the 'YAML' header, by adding additional 'LaTeX' commands or by applying dynamic adjustments in R. Individual corporate design elements, such as a title page, can be added as R functions that produce 'LaTeX' code.
Authors: Christoph Sax [aut, cre] , Kirill Müller [aut] , Angelica Becerra [aut], Frederik Aust [aut], cynkra GmbH [fnd, cph]
Maintainer: Christoph Sax <[email protected]>
License: MIT + file LICENSE
Version: 0.1.1.9021
Built: 2024-09-15 00:56:14 UTC
Source: https://github.com/cynkra/indiedown

Help Index


Skeleton for a Customized R Markdown Template

Description

Set up the packages structure for an indiedown-based customized R Markdown template. See vignette("indiedown") for a more detailed usage example.

Usage

create_indiedown_package(path, overwrite = FALSE)

Arguments

path

Package path

overwrite

Should existing assets be overwritten?

Value

This function is called for its side effects and returns NULL, invisibly.

Examples

path <- file.path(tempdir(), "mydown")

# set up empty R Package 'mydown'
create_indiedown_package(path, overwrite = TRUE)

Hardware report (experimental)

Description

dr_down analyzes the R markdown capabilities of the hardware.

Usage

dr_down()

Examples

## Not run: 
  indiedown::dr_down()

## End(Not run)

Download and Use Google Fonts

Description

Download and use Google fonts, using the gfonts package.

Usage

use_indiedown_gfonts(
  path = ".",
  id = "roboto",
  variants = c("regular", "300italic", "700", "700italic")
)

Arguments

path

Package path

id

Id of the font, correspond to column id from get_all_fonts.

variants

Variant(s) to download, default is to includes all available ones.

Value

This function is called for its side effects and returns NULL, invisibly.

Examples

path <- file.path(tempdir(), "mydown")
create_indiedown_package(path, overwrite = TRUE)
# Use Lora, instead of default Roboto
use_indiedown_gfonts(
  path = path,
  id = "lora",
  variants = c("regular", "italic", "700", "700italic")
)