Here is the link to the R-code for the manuscript Careful prior specification avoids incautious inference for
log-Gaussian Cox point processes by Sigrunn H. Sørbye, Janine B. Illian, Daniel P. Simpson, David Burslem, 2018.