Subject: [PATCH 3/3] gnu: Add r-climaemet.

From: Wiktor Żelazny <[email-masked]>
Date: Thu, 25 Aug 2022 12:09:54 +0200

From: Wiktor Żelazny <[email-masked]>

* gnu/packages/cran.scm (r-climaemet): New variable.
---
 gnu/packages/cran.scm | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index f8e62083e0..d93a3c7e2f 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -17,7 +17,7 @@
 ;;; Copyright © 2018 Marius Bakke <[email-masked]>
 ;;; Copyright © 2018, 2019 Brett Gilio <[email-masked]>
 ;;; Copyright © 2019 Nicolò Balzarotti <[email-masked]>
-;;; Copyright © 2019, 2020, 2021 Wiktor Żelazny <[email-masked]>
+;;; Copyright © 2019, 2020, 2021, 2022 Wiktor Żelazny <[email-masked]>
 ;;; Copyright © 2019 Arne Babenhauserheide <[email-masked]>
 ;;; Copyright © 2019, 2020 Efraim Flashner <[email-masked]>
 ;;; Copyright © 2020 Todor Kondić <[email-masked]>
@@ -34473,3 +34473,35 @@ (define-public r-climatol
 summaries and grids from the results.  Also functions to draw wind-roses and
 Walter&Lieth climate diagrams are included.")
     (license license:gpl2+)))
+
+(define-public r-climaemet
+  (package
+    (name "r-climaemet")
+    (version "1.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "climaemet" version))
+              (sha256
+               (base32
+                "1z0i8iz7f32kns8j1yb3sp2m0zhl4pgp4bf52aiqykjp9i791dqm"))))
+    (properties `((upstream-name . "climaemet")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-dplyr
+                             r-ggplot2
+                             r-httr
+                             r-jsonlite
+                             r-rappdirs
+                             r-readr
+                             r-rlang
+                             r-tibble
+                             r-tidyr))
+    (native-inputs (list r-knitr))
+    (home-page "https://ropenspain.github.io/climaemet/")
+    (synopsis "Climate AEMET Tools")
+    (description
+     "This package provides tools to download the climatic data of the Spanish
+Meteorological Agency (AEMET) directly from R using their API and create
+scientific graphs (climate charts, trend analysis of climate time series,
+temperature and precipitation anomalies maps, warming stripes graphics,
+climatograms, etc.).")
+    (license license:gpl3)))
-- 
2.37.2