copycat_package: Find the corresponding package of a function.

View source: R/copycat_code.R

copycat_packageR Documentation

Find the corresponding package of a function.

Description

Use 'copycat_package()' expects a text string to search for corresponding package name. It expects that the data frame has 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_package(x, data = CopyCatCode)

Arguments

x

A search string for the code snippet

data

A data frame

Value

A string with the package name and the function sends the code to load the library to the console.


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