An R Client for the Dark Sky Weather API

pipeline status coverage report

The Dark Sky API allows you to look up past, present, and future weather conditions for any point on the globe, and the DarkSky package for R aims to simplify such calls.


Install directly from GitHub with:


Getting started

To connect to the API, you'll need to register and be issued a developer key; (see, and you'll also need to know the latitude and longitude of your location. You can save these secrets as session options as follows.

    key = '<Dark Sky secret key>',
    lat = 42.3736,
    lon = -71.1097

Once you've set your credentials, getting the forecast is as simple as...

weather <- DarkSky::get_forecast()

fascinatingfingers/DarkSky documentation built on Oct. 22, 2019, 7:46 p.m.