header: Produce script header text

View source: R/main.R

headerR Documentation

Produce script header text

Description

Produce header text to copy and paste into new script. Different header types are available for different types of script (see below).

Usage

header(type = 1, copy_clipboard = FALSE)

Arguments

type

switches between the following text blocks:

  • type = 1: basic header including name, author, date and purpose

  • type = 2: as above, plus list of useful commands and shortcuts when working with packages

copy_clipboard

whether the header text should also be copied to the clipboard. This should be FALSE when running on PC as it can cause R to crash.


bobverity/bobfunctions2 documentation built on July 4, 2023, 8:55 p.m.