Skip to content

suncalc

0.5.3

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

16packages depend
56.9Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Benoit ThieurmelFirst published 2017-05-157 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 1.2 min · r-release-macos-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-08-16
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-08-09
    11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-29
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 5 earlier snapshots
  • ERROR2026-07-25
    11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE
  • OK2026-07-23
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-05-11
    0 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-05-10
    0 OK · 12 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 676 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
97%
Return-value docs
100%
References docs
0%

Downloads

56.9K
CRAN downloads in the past year
Rank #2,264 · ~156/day · ~4.7K/mo
Daily download trend is not available in this view yet.
3.6K30 days
8.8K90 days
56.9K1 year
Compare downloads with other packages →
Also on192 r2u11 autocran876 conda_forge

Repository

Repository
47Stars
13Forks
4Open issues
1Open PRs
3Releases
38Commits
6Contributors
38 commits · Last activity 2026-07-15 · 0% stars, 30d

Stars over time

2024-12-21 · 432026-07-15 · 47

Repository practices

Upstream repositoryBeta

Checks run against github.com/datastorm-open/suncalc on 2026-08-16.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Author · added in 0.5.0
Listed in earlier versions (1)
no longer listed · 0.1 to 0.4
Package Timeline

7 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.5.3Latest
    2026-07-16 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.5.1
    2022-09-29 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.5.0
    2019-04-03 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.4
    2018-02-22 · diff ↗
  • 0.3
    2017-10-04 · diff ↗
  • 0.2
    2017-09-08 · diff ↗
  • 0.1
    2017-05-15
Show 1 earlier events
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-05-15
Total releases
7 / 9 yrs
License
GPL-2 | file LICENSE OSI
Download size
13 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("suncalc")
Thieurmel, B., & Elmarhraoui, A. (2026). suncalc: Compute Sun Position, Sunlight Phases, Moon Position and Lunar Phase (Version 0.5.3) [Computer software]. https://doi.org/10.32614/CRAN.package.suncalc

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for suncalc version 0.5.3 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy