Install the package from r universe:
install.packages("labstat", repos="https://kbroman.r-universe.dev")
Alternatively, use the remotes package to install it from GitHub:
install.packages("remotes")
library(remotes)
install_github("kbroman/labstat")
R/labstat is licenced under GPL-3.