create_variable_name: ChatGPT: Create Variable Name

View source: R/create_variable_name.R

create_variable_nameR Documentation

ChatGPT: Create Variable Name

Description

ChatGPT: Create Variable Name

Usage

create_variable_name(code = clipr::read_clip(allow_non_interactive = TRUE))

Arguments

code

The code for which to give a variable name to its result. If not provided, it will use what's copied on the clipboard.

Value

A character value with the response generated by ChatGPT.

Examples

## Not run: 
cat(create_variable_name("sapply(1:10, function(i) i ** 2)"))

## End(Not run)


chatgpt documentation built on May 31, 2023, 6:54 p.m.