Ok, next step is finding out what went wrong. Use RStudio to run some keras functions, for instance Model <- keras_model_sequential(). Does it create a model? Can you set up layers?