As far as I am aware, there is no official R package for the ChatGPT API.
There is one for R coding tasks. chatgpt
Hi @billyi There is also GPTstudio from CRAN which provides an RStudio addin.
GPTstudio