suncalc: Compute Sun Position, Sunlight Phases, Moon Position and Lunar Phase

Get sun position, sunlight phases (times for sunrise, sunset, dusk, etc.), moon position and lunar phase for the given ___location and time. Most calculations are based on the formulas given in Astronomy Answers articles about position of the sun and the planets : <https://www.aa.quae.nl/en/reken/zonpositie.html>.

Version: 0.5.4
Imports: data.table, lubridate (≥ 1.9.0), magrittr
Suggests: testthat (≥ 3.0.0)
Published: 2026-10-26
DOI: 10.32614/CRAN.package.suncalc
Author: Benoit Thieurmel [aut, cre] (R interface), Achraf Elmarhraoui [aut] (R interface)
Maintainer: Benoit Thieurmel <bthieurmel at gmail.com>
License: GPL-2 | file LICENSE
URL: https://github.com/datastorm-open/suncalc
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: suncalc results

Documentation:

Reference manual: suncalc.html , suncalc.pdf

Downloads:

Package source: suncalc_0.5.4.tar.gz
Windows binaries: r-devel: suncalc_0.5.4.zip, r-release: suncalc_0.5.4.zip, r-oldrel: suncalc_0.5.4.zip
macOS binaries: r-release (arm64): suncalc_0.5.4.tgz, r-oldrel (arm64): suncalc_0.5.4.tgz, r-release (x86_64): suncalc_0.5.4.tgz, r-oldrel (x86_64): suncalc_0.5.4.tgz
Old sources: suncalc archive

Reverse dependencies:

Reverse imports: ARUtools, calendR, calendRio, FishDiveR, gghourglass, incR, INQC, moonlit, MoonShineR, PAMmisc, searchlight, sonicscrewdriver
Reverse suggests: amt, barrks, ctmm, oystermapR

Linking:

Please use the canonical form https://CRAN.R-project.org/package=suncalc to link to this page.