copycat: Copy code from CopyCat.

View source: R/copycat_code.R

copycatR Documentation

Copy code from CopyCat.

Description

'copycat()' uses a text string to search and copy a code snippet to your clipboard. It expects a data frame with three columns. A column with the package name (package), a function (fun), and one with the code (code) to copy. If data = NULL, the package search in the the internal data 'CopyCatCode'.

Usage

copycat(x, data = CopyCatCode, run = FALSE)

Arguments

x

A search string

data

Data

run

TRUE or FALSE

Value

A string


edgar-treischl/CopyCat documentation built on May 31, 2024, 9:07 a.m.