This function initializes and runs the Chat GPT Shiny App as a background job
in RStudio and opens it in the viewer pane or browser window.
Usage
gptstudio_chat(host = getOption("shiny.host", "127.0.0.1"))
Arguments
- host
A character string specifying the host on which to run the app.
Defaults to the value of getOption("shiny.host", "127.0.0.1")
.
Value
This function does not return a value. It runs the Shiny app as a side effect.
Details
The function performs the following steps:
Verifies that RStudio API is available.
Finds an available port for the Shiny app.
Creates a temporary directory for the app files.
Runs the app as a background job in RStudio.
Opens the app in the RStudio viewer pane or browser window.
Note
This function is designed to work within the RStudio IDE and requires
the rstudioapi package.
Examples
if (FALSE) { # \dontrun{
gptstudio_chat()
} # }