contrast contains a set of functions that can make 1 degree of freedom contrasts for several type sof models. The package extends the contrast() function from the rms package.
To install it, use:
install.packages("contrast")
## For the devel version:
require(devtools)
# install_github("Alanocallaghan/contrast")
install.packages("contrast", repos = c('https://alanocallaghan.r-universe.dev', 'https://cloud.r-project.org'))