Thanks for your advice. I tried the code and have below result:
> install.packages("Rcpp")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.1/Rcpp_1.0.8.2.tgz'
Content type 'application/x-gzip' length 3320151 bytes (3.2 MB)
==================================================
downloaded 3.2 MB
The downloaded binary packages are in
/var/folders/wz/19_46cmj/T//RtmpX/downloaded_packages
and run the below code again:
> if("keras" %in% rownames(installed.packages()) == TRUE) {
+ install.packages('keras')
+ library(keras)
+ install_keras()
+ }
After a moment, it results in:
Installation complete.
>
Restarting R session...
Is that mean I have successfully installed it? Because this time it does not request me to run the command line tools, but it did request me for the last time.
Thanks!