Install NIMBLE
Install R and Rstudio
Visit the web page of https://r-nimble.org/ and see Documentation
Install Rtools (Windows users) or Xcode (Mac users) . See Chapter 4 of Manual (https://r-nimble.org/html_manual/cha-welcome-nimble.html )
Install packages: igraph, coda, R6
Install package: nimble
Reference
Jim Albert (2009) Bayesian Computation with R (2nd edition). Springer