suntools
1.1.0Calculate Sun Position, Sunrise, Sunset, Solar Noon and Twilight
Overview
Provides a set of convenient functions for calculating sun-related information, including the sun's position (elevation and azimuth), and the times of sunrise, sunset, solar noon, and twilight for any given geographical location on Earth. These calculations are based on equations provided by the National Oceanic & Atmospheric Administration (NOAA) https://gml.noaa.gov/grad/solcalc/calcdetails.html as described in "Astronomical Algorithms" by Jean Meeus (1991, ISBN: 978-0-943396-35-4).
Install
Health
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-06-0812 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Dependencies
Code & Tests
- Cyclomatic complexity
- 1.0 median / 7 max
- Test cases
- 7 / 0.16 per code line
- Documented parameters
- 100%
Test coverage
Line coverage
83%
Expression
84.9%
Tests / Examples
83.1% / 84% ex
Functions
30 0 exported
Complexity
1.2 avg / 7 max
Call network
30 nodes / 60 edges
Call graph
Open call graph →Lowest coverage
30 functions| Function | Cyclo | Coverage |
|---|---|---|
| .sunRadVec | 1 | 0% |
| .sunRtAscension | 1 | 0% |
| .sunTrueAnom | 1 | 0% |
| .balanceCrdsTimes | 7 | 55% |
| .crepuscule | 1 | 78% |
| .sunriset | 1 | 78% |
People & History
3 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.1.0Latest
- RR 4.5.0 released · 2025-04-11
- 1.0.12024-11-20 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.0.02023-07-06
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-07-06
- Total releases
- 3 / 3 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 2.10
- Download size
- 16 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet