The Metropolis algorithm and Nested Sampling, implemented in a relatively straightforward fashion in R. I use this to teach STATS 731. The NS implementation does not handle likelihood ties.
(c) 2021 Brendon J. Brewer. This is free software released under the MIT Licence — see the LICENSE file for details.