Hosted atRTutor.ai.Contact Steven Ge onLinkedInorTwitter.
RTutor is an AI-based app that can quickly generate and test R code. Powered by API calls to OpenAI's ChatGPT or other models, RTutor translates natural languages into R scripts, which are then executed within the Shiny platform. An R Markdown source file and HTML report can be generated.
Highly recommend users to watch this 10-minYouTube video.
- GPT-4 becomes the default, providing more accurate code.
- Comprehensive EDA reports.
- Chat window that helps explain code, result, error messages, and statistics in general. This makes RTutor a great platform for learning R and statistics.
This repository is updated frequently, sometimes a few times a day. We suggest users reinstall everytime before using it, so that you always have the most recent version.
- Update R and RStudio to the most recent version.
- Install the RTutor package
if(!require("remotes")) {
install.packages("remotes")
}
library(remotes)
#voice input package heyshiny
install_github("jcrodriguez1989/heyshiny",dependencies=TRUE)
install_github("gexijin/RTutor")
- Install other R packages. If you want to use additional R package for analyzing your data, you should install these in your computer too.
- Create a personal account atOpenAI.
- After logging in, click onPersonalfrom top left.
- ClickManage Accountand thenBilling,where you can addPayment methodsand setUsage limits.$3-$5 per month is more than enough for most people.
- Click onAPI keysto create a new key, which can be copied.
There are several ways to do this.
- After the app is started, you can click onSettingsand paste the API key.
- You can also save this key as a text file calledapi_key.txtin the working directory.
- Finally, you can create an environment variable calledOPEN_API_KEY.Instructions forWindows, Mac,and Linux.
library(RTutor)
run_app()
(CC BY-NC 3.0) Non-commercial use.
See thisreportgenerated by RTutor after in a typical session.
RTutor also generatescomprehensive reportsfor exploratory data analysis (EDA).