I have been trying to install keras and tensorflow into my RStudioCloud over the past few days. Seems to not be working. The error messages that I have got are "Error: Error installing package(s): 'tensorflow==2.5'" and "Killed
Error: Error installing package(s): 'tensorflow==2.5', 'keras', 'tensorflow-hub', 'requests', 'Pillow', 'h5py', 'pyyaml'". Everything goes well until install_keras(). I am also on the premium version of RStudio Cloud so it's not really a space thing. My code is attached below:
install.packages('reticulate')
install.packages('keras')
library(reticulate)
library(keras)
virtualenv_create("myenv")
use_virtualenv("myenv", required = TRUE)
install_keras(method="virtualenv", envname="myenv")