powered by
Ask OpenAI to write R code for a problem. The answer is written to console and returned as a string.
howto(do, call_api = call_openai)
Invisible character string of R code
Character string of what you want to do
Optional function to call another API
# You must provision an OpenAI API key before using this function. if (FALSE) { howto("read a csv file") howto("get last element of a vector") }
Run the code above in your browser using DataLab