The R package demography
provides functions for demographic analysis including: lifetable calculations; Lee-Carter modelling; functional data analysis of mortality rates, fertility rates, net migration numbers; and stochastic population forecasting.
Installation
You can install the stable version on R CRAN.
install.packages('demography', dependencies = TRUE)
You can also install the development version from Github