if (FALSE) {
# Example 1: Basic usage with default settings
Sys.setenv(OPENAI_API_KEY = "")
autocreateFunction4R(Func_description = "identify 2*n+3 sequence", Model = "gpt-5-mini")
# Example 2: Generate function using specific packages
autocreateFunction4R(
Func_description = "create a data frame with random numbers",
Model = "gpt-5-mini", packages = "dplyr, tidyr"
)
}
Run the code above in your browser using DataLab