Skip to contents

The `copycat_code()` function searches for a code snippet, but it returns only the code. It expects a data frame with three columns. A column with the package name (package), the function (fun) name, and the code (code) to copy. As long as you do not provide a data frame, the function search within the `CopyCatCode` data.

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