-
Notifications
You must be signed in to change notification settings - Fork 26
Random tips and tricks
Daniel Turek edited this page Dec 15, 2016
·
28 revisions
To see the internal adaptation info from adaptive samplers:
nimbleOptions(buildInterfacesForCompiledNestedNimbleFunctions=TRUE)
Cmcmc$samplerFunctions$contentsList[[i]]$propCov
To build & install developmental version from github:
remove.packages('nimble')
library(devtools)
install_github('nimble-dev/nimble', ref = 'devel', subdir = 'packages/nimble')
library(nimble)
When package build fails around release, possibly with error library not found for -lgfortran, in src/Makevars.in, comment out FLIBS to read: #$(FLIBS)
For writing iterative MCMC algorithms, it's extremely useful to not have to recompile model and MCMC objects on every iteration, which takes a long time. This page describes a procedure for writing such iterative algorithms, without having to recompile a model and MCMC algorithm on each iteration.
To clear all loaded DLLs w.r.t. any project (pass any object from that project):
nimble:::clearCompiled(Rmodel)