finalsize 0.2.0
This is the second release of finalsize, and includes:
- The package's C++ code for the solver algorithms has been moved from source files under
src/
into headers underinst/include/
- The package includes a package header under
inst/include
calledfinalsize.h
, which allows other Rcpp packages to link to finalsize and reuse the solver algorithms provided here. - Three helper functions have been added to:
- Calculate the effective basic reproductive number
$R_{eff}$ in a population with heterogeneous social contacts and susceptibility to infection - Convert from the basic reproductive number provided by the user
$R_0$ to the transmission rate (denoted by$\lambda$ ), given the population's social contacts and susceptibility structure - Convert from a user-provided transmission rate to the basic reproductive number given the population's social contacts and susceptibility structure
- Calculate the effective basic reproductive number
- Two new vignettes have been added which are intended to serve as contextual background information for users:
- A guide to constructing susceptibility matrices
- A comparison with a simple susceptible-infectious-recovered epidemic model
- Package infrastructure has been modified:
- The package now specifies C++17 as standard
- The
Readme.Rmd
uses auto-rendering of the package and repository name toReadme.md
via an updatedrender-readme
Github Actions workflow - The Cpplint workflow now includes linting and checking using Cppcheck for header files
- Updated
NEWS.md
file to track changes to the package.