Source: https://cran.r-project.org/web/packages/anyLib/anyLib.pdf