could wrap the `lunar` CRAN package (in suggests) - https://cran.r-project.org/web/packages/lunar/index.html