High Precision Swiss Ephemeris
Overview
The Swiss Ephemeris (version 2.10.03) is a high precision ephemeris based upon the DE431 ephemerides from NASA's JPL. It covers the time range 13201 BCE to 17191 CE. This package uses the semi-analytic theory by Steve Moshier. For faster and more accurate calculations, the compressed Swiss Ephemeris data is available in the 'swephRdata' package. To access this data package, run 'install.packages("swephRdata", repos = "https://rstub.r-universe.dev", type = "source")'. The size of the 'swephRdata' package is approximately 115 MB. The user can also use the original JPL DE431 data.
- Add files seorbel.txt (fictitious bodies) and seleapsec.txt (leap seconds)
- Update sefstars.txt (fixed stars)
- Make sure that unused code does not linger after compilation, triggering a warning on CRAN
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-30
- WARNING12 OK, 1 WARNING2026-07-29
- OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 16includes a package overview page
- Examples that run
- 100%14 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 93%
- Help pages citing references
- 0%
- swephR HTML
Downloads
Repository
- PRs merged (all time)
- 87%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
9 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/rstub/swephr on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-03-29 · The repository has a site deploy workflow
Show all practicesHide 2 practices
Dependencies
Installing swephR adds 1 package (1 with compiled code, 1.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.3.2Latest
- RR 4.4.0 released · 2024-04-24
- 0.3.12023-05-08 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.3.02019-08-28 · diff ↗ ·
added 19 exports
swe_get_library_path, swe_get_orbital_elements, swe_jdet_to_utc, swe_jdut1_to_utc, swe_lat_to_lmt, swe_lmt_to_lat, swe_lun_occult_when_glob, swe_lun_occult_when_loc, swe_lun_occult_where, swe_nod_aps, swe_nod_aps_ut, swe_orbit_max_min_true_distance, swe_refrac, swe_sol_eclipse_how, swe_sol_eclipse_when_glob, swe_sol_eclipse_where, swe_time_equ, swe_utc_time_zone, swe_utc_to_jd - 0.2.12019-07-08 · diff ↗
- 0.2.02019-07-05 · diff ↗ ·
added 10 exports
swe_gauquelin_sector, swe_get_ayanamsa_ex, swe_get_ayanamsa_ex_ut, swe_get_ayanamsa_name, swe_house_name, swe_house_pos, swe_houses_armc, swe_houses_ex, swe_set_sid_mode, swe_sidtime - RR 3.6.0 released · 2019-04-26
- unarchivedReturned to CRAN2019-02-18
- 0.1.52019-02-18 · diff ↗
- archivedRemoved from CRAN2019-02-02non-cross-platform code
Package metadata
- First published
- 2019-01-30
- Total releases
- 8 / 7 yrs
- License
- AGPL
- Additional repositories
- rstub.r-universe.dev
- Bundled data
- 2.0 KB / 1 file
- Download size
- 484 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("swephR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1558/jsa.42323.
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.