func_header: Produce function header text

View source: R/main.R

func_headerR Documentation

Produce function header text

Description

Produce header text for a single function to paste into script. Different header types are available for different types of function (see below). Header text is written in roxygen format.

Usage

func_header(type = 1, copy_clipboard = FALSE)

Arguments

type

switches between the following text blocks:

  1. basic function header

  2. complete function header with all the bells and whistles

  3. function that is not exported

  4. S3 method, e.g. print.my_class()

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.