Sun Position and Daylight Calculations
Overview
Compute the position of the sun, and local solar time using Meeus' formulae. Compute day and/or night length using different twilight definitions or arbitrary sun elevation angles. This package is part of the 'r4photobiology' suite, Aphalo, P. J. (2015) doi:10.19232/uv4pb.2015.1.14. Algorithms from Meeus (1998, ISBN:0943396611).
- Fix to docs (contributed as #1 by srearl).
- Add functions
split_geocodes()andbind_geocodes()for conversion
between named lists of one-row data frames and data frames with multiple
rows.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 18 (2 internal)includes a package overview page
- Examples that run
- 100%9 run in a plain check
- Exported functions with examples
- 73%
- Documented parameters
- 70%
- Return-value docs
- 100%
- Help pages citing references
- 22%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Issues over time
PRs over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/aphalo/suncalcmeeus on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing SunCalcMeeus adds 18 packages (11 with compiled code, 6.0 MB of source tarballs). Heaviest: vctrs 1.0 MB, dplyr 902 KB, rlang 766 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.1.3Latest
- RR 4.5.0 released · 2025-04-11
- 0.1.2
- 0.1.12024-12-11
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-12-11
- Total releases
- 3 / 2 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 91 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("SunCalcMeeus")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.19232/uv4pb.2015.1.14.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.