R Bindings to the 'Astronomy Engine' C Library
Overview
Provides access to the 'Astronomy Engine' C library (https://github.com/cosinekitty/astronomy) by Don Cross. The library calculates positions of the Sun, Moon, and planets, and predicts astronomical events such as rise/set times, lunar phases, equinoxes, solstices, eclipses, and transits. It is based on the 'VSOP87' planetary model and is accurate to within approximately one arcminute. This package bundles the single-file C source so that other R packages can link against it via 'LinkingTo' without shipping their own copy.
Initial CRAN release of astronomyengine package
New features
- R bindings to the Astronomy Engine C library, providing accurate astronomical calculations
- Support for calculating positions of the Sun, Moon, and planets
- Single-file header + source bundling of the Astronomy Engine C library for use by other R packages via
LinkingTo - Accuracy of approximately ±1 arcminute based on the VSOP87 planetary model
- Full support for location-based calculations based on longitude, latitude, and height
- POSIXct time input for all functions with UTC timezone support
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- WARNING13 OK, 1 WARNING2026-03-10
Documentation
- Help pages
- 75 (1 internal)includes a package overview page
- Examples that run
- 100%74 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 99%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 7
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Releases over time
Issues over time
11 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/mitchelloharawild/astronomyengine on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-03-02 · The repository has a site deploy workflow
Dependencies
Installing astronomyengine adds 1 package (0 with compiled code, 298 KB of source tarballs). Heaviest: cpp11 298 KB.
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2026-02-27 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-02-27
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 200 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("astronomyengine")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.