Download

Mollie Brooks edited this page Dec 14, 2017 · 10 revisions

CRAN (all platforms)

In R type:

install.packages("TMB")

You will also need compiler tools.

Windows - installing required tools

On Windows install the Rtools matching your R-version. Remember to

  • Mark the check box that allows the installer to modify your PATH.
  • Restart R after installing Rtools.

Mac OS - installing the required tools

On High Sierra (Mac OS 10.13.1) it may be necessary to install command line developer tools by running the following code in a Terminal:

 xcode-select --install

On Mavericks (Mac OS 10.9) the Fortran compiler on the CRAN website does not work. More information and the solution can be found here. The easiest solution is to install the appropriate fortran libraries from r.research.att via the command line in Terminal:

curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2
sudo tar fvxz gfortran-4.8.2-darwin13.tar.bz2 -C /

Test the installation

library(TMB)
## Optionally:
## precompile()
runExample(all=TRUE)

Run the example suite

To get the full suite of examples run:

download.file("https://github.com/kaskr/adcomp/archive/master.zip", "adcomp-master.zip")
unzip("adcomp-master.zip")

Change directory

setwd("adcomp-master/tmb_examples")

and run e.g. the sam example by

source("sam.R")
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.