RStudio

Recovering an unresponsive RStudio session

In certain cases RStudio sessions can become unresponsive, due to large amounts of output printed or large amount of data loaded. If restarting the application in Nuvolos doesn't resolve the issue, you can follow the steps in the Troubleshooting Applications guide to clear the application state.

RStudio is responsive but it doesn't accept commands

If you can interact with the RStudio window (menu items are working, dropdowns open, etc.) but commands you try to run in R will not execute, it might be that the R console is showing a plus sign at the start of the line:
R waiting for further input
If this is the case, R is waiting for further input. As you can see in the above example, a curly brace was open, and R waits the curly brace to be closed for the expression to be complete (and executable).
If you want to cancel the statement, make sure to focus on the R console in RStudio by clicking on it, then hit the Escape button on your keyboard.
After the cancelled statement

Using Tensorflow and Keras with RStudio

Tensorflow and Keras can be installed via miniconda in Rstudio. To install them, use the following steps:
  1. 1.
    Restart the R session to be in a clean setting (select Session > Quit Session on the top menu)
  2. 2.
    Make sure reticulate can use miniconda via running in the R commands:
1
Sys.setenv("RETICULATE_MINICONDA_ENABLED" = TRUE)
2
reticulate::install_miniconda()
Copied!
3. Install tensorflow R package and then call the install_tensorflow() function. If you would like to use GPU acceleration, run install_tensorflow(version="gpu"):
1
install.packages("tensorflow")
2
library(tensorflow)
3
install_tensorflow() # use install_tensorflow(version = "gpu") for GPU support
Copied!
4. Install Keras R package and then call the install_keras() function:
1
install.packages("keras")
2
library(keras)
3
install_keras()
Copied!
To test the installation, follow the example from the RStudio website: https://tensorflow.rstudio.com/guide/keras/#mnist-example
Last modified 5mo ago