I believe the R version does not matter, but a new R installation could solve issue with incompable Keras and Tensorflow versions. We found that when Tensorflow or Anaconda was already installed on a PC, Keras just uses the installed versions regardless whether they match or not. That was probably the reason for the issue.