Skip to content

suntools

Calculate Sun Position, Sunrise, Sunset, Solar Noon and Twilight

v1.1.0 · Nov 6, 2025 · GPL (>= 3)

Description

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).

Downloads

CRAN

6.4K

Last 30 days

1477th

41.4K

Last 90 days

92.3K

Last year

Trend: -24.3% (30d vs prior 30d)

r2u CRAN

21

Last 30 days

72

Last 90 days

279

Last year

Trend: -32.3% (30d vs prior 30d)

autoCRAN

1

Last 7 days

3

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
WARNING r-devel-linux-x86_64-debian-gcc

whether the namespace can be unloaded cleanly

Fatal error: cannot create 'R_TempDir'
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (8)

Dependency Network

Dependencies Reverse dependencies sf StreamMetabolism overlap EMbC FLightR LightLogR RchivalTag bioRad birdscanR suntools

Version History

4 tracked
new 1.1.0 Mar 10, 2026
updated 1.1.0 ← 1.0.1 diff Nov 6, 2025
updated 1.0.1 ← 1.0.0 diff Nov 19, 2024
new 1.0.0 Jul 5, 2023