R script with NIMBLE (examples)