Installing BRugs on a Windows machine

Last updated 17 Jan 2011.

Please note: These instructions are for R 2.11.1, which I realize is not the most recent release of R.

  1. Download and install R

    First, choose a mirror near you. Then go to
    http://YOUR FAVORITE MIRROR HERE/bin/windows/base/old/2.11.1
    and click "Download R 2.11.1 for Windows (33 megabytes, 32 bits)". Don't get the 64-bit version!

    Save the .exe file someplace you will remember, then run this executable file and follow the installation instructions.

  2. Install the coda package (this is a dependency for BRugs)

    Run the R 2.11.1 program you just installed. In the console, type:
    install.packages('coda')
    It will prompt you to choose a mirror, pick one near you.

    When it finishes installing the package, it should say:
    package 'coda' successfully unpacked and MD5 sums checked

  3. Download and install BRugs

    Go to the contributed code page of the OpenBugs project site and click "Download BRugs binary package for Windows: R version 2.11 BRugs_0.6-1R11.zip".
    Save the .zip file somewhere you will remember.

    You may now need to rename the file from
    BRugs_0.6-1R11.zip
    to
    BRugs_0.6-0.zip

    In R 2.11.1, from the menu bar choose
    Packages > Install packages from local .zip files
    and choose the .zip you just downloaded (and possibly renamed).

    When it finishes installing the package, it should say
    package 'BRugs' successfully unpacked and MD5 sums checked

    In the console, type
    library(BRugs)
    to load the newly installed package.