Comment on page
RStudio
Next Tech supports the powerful RStudio IDE. This can be used as a tab or as an interface type. The latter is the recommended approach if no other interface elements are needed.
RStudio requires the R stack!
RStudio includes a number of features that the default interface provides, for example, a terminal. This makes it a great standalone interface. Here are some of its top features:
- Syntax highlighting, code completion, and smart indentation
- Execute R code directly from the source editor
- Quickly jump to function definitions
- Integrated R help and documentation
- Easily manage multiple working directories using projects
- Workspace browser and data viewer
- Interactive debugger to diagnose and fix errors quickly
- Extensive package development tools
- Authoring with Sweave and R Markdown
To get started, create a RStudio tab or select the RStudio interface. The result of the second option is shown below:

Once doing so, you can persist any configuration changes you make in the RStudio interface by adding
/home/nt-user/.rstudio
as a tracked directory:
To prevent an error message from showing when the user launches their project, you also need to add the following to the content's startup script:
sudo rm /home/nt-user/.rstudio/sessions/active/session-*/session-persistent-state
Once you have done this, there are a number of ways you can configure the RStudio interface to prepare it for your users. For example, you can change the theme, increase the font size, and create a starting file:
.png?alt=media&token=f7c3223c-7efb-497a-85ed-7b5d38aa2747)
If you create a file, make sure you save it in the
/home/nt-user/workspace
directory! This will be made available when you save the file for the first time:
Before saving, make sure to Exit RStudio to ensure it's settings are in a consistent state, otherwise users may seen error on startup.


Finally, be sure to click the Save button when you are done! This is required to persist the configuration changes you have made.
Last modified 2yr ago