Protection stack overflow on starting R session



Recently I have started getting this error as soon as I reload R session - right at the beginning.
Error: protect(): protection stack overflow

To give you some clues I have started using Keras for R package for deep learning.
I use an iMac with 8 GB of RAM and there doesn't seem to be a memory strain as I see from the activity log of my machine.


Any chance you would be able to provide a reproducible example? E.g. a standalone Keras script that when executed causes the associated protection issue when attempting to restart the R session?


Difficult but am trying to do.