MortalityLaws Installation

The package can be installed from two different sources, CRAN or GitHub. Most people would choose the first option (see below).

Install stable version from CRAN

The MortalityLaws package can be installed from CRAN as follows:

  1. Make sure you have the most recent version of R
  2. Run the following code in your R console
    install.packages("MortalityLaws")

Updating to the latest version of the package

You can track and contribute to the development of MortalityLaws at https://github.com/mpascariu/MortalityLaws. To install it:

  1. Install the release version of devtools from CRAN with
    install.packages("devtools")
  1. Make sure you have a working development environment.
    • Windows: Install Rtools.
    • Mac: Install Xcode from the Mac App Store.
    • Linux: Install a compiler and various development libraries (details vary across different flavors of Linux).
  2. Install the development version of devtools.
    devtools::install_github("mpascariu/MortalityLaws")

Now you are ready to go. Happy modelling!

Check the other vignettes and examples provided in the help pages.