rnd.threshold: 0 empty board; 1 all squares are filled
Details
In the interactive mode (random=FALSE), left click to define or remove cells, then click on red square in the bottom left corner to start cycles. Click positions are rounded so they are not always precise.
To stop cycles, use Ctrl-C (Linux, macOS) or Esc (Windows) in the main R window.
The code was inspired by the Github gist (which is not available anymore) attributed to Vadim Vinichenko. Note that margins influence the behavior of cells, i.e., the field is not infinite as in the "classic" Game of Life.
References
Gardner M. 1970. The fantastic combinations of John Conway's new solitaire game "life". Scientific American. 223: 120--123.