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

Version: 0.5.1
Imports: data.table, lubridate, magrittr
Published: 2022-09-29
DOI: 10.32614/CRAN.package.suncalc
Author: Benoit Thieurmel [aut, cre] (R interface), Achraf Elmarhraoui [aut] (R interface)
Maintainer: Benoit Thieurmel <bthieurmel at>
License: GPL-2 | file LICENSE
NeedsCompilation: no
Materials: README NEWS
CRAN checks: suncalc results


Reference manual: suncalc.pdf


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

Reverse dependencies:

Reverse imports: ARUtools, calendR, calendRio, GPSeqClus, incR, INQC, PAMmisc, sonicscrewdriver, SWMPr
Reverse suggests: amt, ctmm


Please use the canonical form to link to this page.