

RStudio runs over its console accessible using any web browser which includes its console and syntax highlighting editor for code execution. RStudio can only be used with R, but R can be used independently without the need of RStudio.

Whereas RStudio is an Open Source and free to use integrated development environment (IDE) for R. The use of R language is pretty straight forward while you can find its use in the real world as well. R language is most widely used in the field of machine learning because of its growing demand and easy to use syntax. R is a programming language which works along with Python by the Data Analytics teams for graphics and statistical computing.


If you're using gpt-4 you'd want to to set this limit to something much higher. CTXLIM puts an upper bound on the input, by default 2750 tokens, which leaves ~1346 tokens for the response, however, even using OpenAI's tokenizer this can be off by a few tokens (see: 'openai-cookbook'). For instance, gpt-3.5-turbo has a limit of 4096 tokens. What does STATGPT_CTXLIM do? Each OpenAI model comes with a token limitation shared between input and response. What does OPENAI_TEMPERATURE do? Temperature ranges 0-2 and controls the level of randomness and creativity in output, with values at or close to 0 being nearly deterministic. It also uses the R packages reticulate, httr, and jsonlite. StatGPT requires Open AI's tiktoken and therefore Python 3.8 or higher. Sys.setenv(STATGPT_CTXLIM = 2750) # Input context limit (optional default ~2750 tokens)Īlternatively, you can set persistent keys in your. Sys.setenv(STATGPT_DEBUG = 0) # Debug logging (optional default: 0) Sys.setenv(OPENAI_TEMPERATURE = 0.25) # Temperature (optional default 0.25) Sys.setenv(OPENAI_MODEL = "gpt-3.5-turbo") # Model (optional default: gpt-3.5-turbo) Sys.setenv(OPENAI_API_KEY = "your api key here") # API key
