Skip to contents

`copycat_code()` uses a text string to search for a code snippet. The function just returns that code. It expects that you 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_code(x, data = CopyCatCode)

Arguments

x

A search string for the function

data

A data frame

Value

A text string that shows the code