SuperAPI AI Directory

RTutor

RTutor is an AI-based app that can quickly generate and test R code. Powered by API calls to OpenAI's Davinci (ChatGPT's sibling), 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. Check

Open website

About this tool

RTutor is an AI-powered data analysis tool whose core purpose is to let users generate and execute R (and Python) code using natural language, thereby performing statistical analysis on uploaded data.

Main capabilities:

  • Natural language to code: Translate analysis requests made by users in natural language into R scripts and execute them within the Shiny platform.
  • Data upload and automatic loading: Supports CSV, TSV/tab-separated text files, and Excel files; after upload, the data is automatically loaded into R and becomes a data frame named df, so users do not need to separately request that the data be loaded.
  • Step-by-step analysis and context continuity: The default model is GPT-4o. Within the same session, previous questions and code blocks become the context for new requests; for example, you can directly say "change the background color to white" to refine a chart generated by the previous code block, or clean the data step by step.
  • Additional data file: One additional file can be uploaded as df2 for analysis together; when using it, you need to specify "df2" in the prompt.
  • Q&A box: You can ask questions about the code, results, or error messages, and you can also ask what method should be used or formulate an analysis plan.
  • Report export: Results can be downloaded as an HTML report within minutes, and an R Markdown source file can be generated.
  • Data reset: When analyzing a new dataset or starting over, you must first click the Reset button.

How to use: For first-time use, it is recommended to first watch an 8-minute YouTube video. You can first explore the data in the EDA tab, then start with simple requests such as distributions and basic charts, and then gradually increase complexity. Before use, it is recommended to prepare and clean the data in Excel and name the columns correctly; ChatGPT will try to guess the meaning of the column names. You need to check whether the data types of the columns are correct, especially when numbers are used to encode categories, and change them manually if necessary. If the request does not involve any data (for example, plotting a function or running a simulation), you can select "No data" from the Data drop-down menu. Before sending the request to OpenAI, the system performs prompt engineering based on the uploaded data: it adds "Generate R code" at the beginning and appends instructions such as "Use the df data frame. Note that highway is numeric, ..." at the end. By default, the system randomly selects 5 rows of data to send to OpenAI to enhance the coding results; users can turn off this option in Settings; after the session ends, the data is not stored on the server. Users canUsing a personal API Key: Create a personal account with OpenAI, log in, then go to "Personal" in the upper right corner, click "Manage Account", then click "Billing" to add a payment method and set a usage limit (5 USD per month is sufficient), then click "API keys" to create a new key and paste it into the corresponding location.

Applicable scenarios and limitations: RTutor can only analyze traditional statistical data, that is, behavioral observations arranged as variables. For complex data, the official recommendation is to try Datably.ai. A skeptical attitude is needed: even if the generated code runs without errors, it may still be logically wrong, and automatically generated code should only be used as a starting point for further refinement and verification; the official site explicitly provides no warranty of any kind. Also, a user named Carlo Pecoraro once shared it on Facebook. RTutor was originally written by Steven Ge and is now developed and maintained by Orditus (RTutor LLC), with the feedback email ge@orditus.com. The website and source code are free only for nonprofit organizations; commercial use requires a license. The source code is hosted on GitHub, where instructions for installing RTutor as an R package can be found. Regarding privacy: uploaded data is stored only temporarily during the session and is automatically deleted when the session ends or the browser is closed; by default, uploaded data is not sent to the selected language model, but you may choose to allow up to 5 randomly selected rows to be sent to enhance coding results; data structure information and prompts are collected, and column names and data type information (including the category names of all factor variables) will be sent to the selected language model to improve the service. All interactions are conducted over HTTPS. Users must be at least 13 years old; without written consent, commercial use is not permitted, confidential or personally identifiable data that has not been anonymized must not be uploaded, excessive use that affects service performance is not permitted, and reverse engineering or tampering with the AI models and algorithms is not permitted.