Let's create an environment in Anaconda (ensure that you have R and Python installed):
- Go to Anaconda Navigator from the Start menu.
- Click on Environments.
- Create a new environment and name it. Make sure that both the Python and R options are selected, as shown in the following screenshot:

- Install the keras library in R using the following command in RStudio or by using the Terminal of the conda environment created in the previous step:
install.packages("keras")
- Install keras with the tensorflow backend.
The keras library supports TensorFlow as the default backend. Theano and CNTK are other alternative backends that can ...