15.17 Installation
Keras and Tensorflow can be installed relatively simply from within R/Rstudio. Python is running in the background and at some point (if it’s not installed already) you will be asked “Would you like to download and install Miniconda?”. Simply answer “Y”.
# Install Keras
install.packages("keras")
# Check if it works
library(keras)
# If not python installed install this as well
# No non-system installation of Python could be found.
# Would you like to download and install Miniconda?
# Would you like to install Miniconda? [Y/n]: Y -> YES!
# Check tensorflow installation (if not install)
# tensorflow::install_tensorflow()
library(tensorflow)
# Restart R/Rstudio
Restart R studio after the installation!