create_variable_name {chatgpt}R 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)


[Package chatgpt version 0.2.3 Index]