Subject: [PATCH 02/34] gnu: Add package r-forecast

From: Lars-Dominik Braun <[email-masked]>
Date: Tue, 4 Feb 2020 14:55:54 +0100

* gnu/packages/cran.scm (r-forecast): New variable.
---
 gnu/packages/cran.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 4fbaa6a00f..8c1e719143 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -19283,3 +19283,40 @@ differenced ARIMA(p,d,q) model (Haslett and Raftery, Appl.Statistics, 1989);
 including inference and basic methods.  Some alternative algorithms to estimate
 \"H\".")
     (license license:gpl2+)))
+
+(define-public r-forecast
+  (package
+    (name "r-forecast")
+    (version "8.10")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "forecast" version))
+        (sha256
+          (base32
+            "0jccr2wg7sii38lyqrs58fkxf2az7nw6v0jya27hpbz9bg8ib3kr"))))
+    (properties `((upstream-name . "forecast")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-colorspace" ,r-colorspace)
+        ("r-fracdiff" ,r-fracdiff)
+        ("r-ggplot2" ,r-ggplot2)
+        ("r-lmtest" ,r-lmtest)
+        ("r-magrittr" ,r-magrittr)
+        ("r-nnet" ,r-nnet)
+        ("r-rcpp" ,r-rcpp)
+        ("r-rcpparmadillo" ,r-rcpparmadillo)
+        ("r-timedate" ,r-timedate)
+        ("r-tseries" ,r-tseries)
+        ("r-urca" ,r-urca)
+        ("r-zoo" ,r-zoo)
+        ;; needed for vignettes
+        ("r-knitr" ,r-knitr)))
+    (home-page "http://pkg.robjhyndman.com/forecast/")
+    (synopsis
+      "Forecasting Functions for Time Series and Linear Models")
+    (description
+      "Methods and tools for displaying and analysing univariate time series
+forecasts including exponential smoothing via state space models and automatic
+ARIMA modelling.")
+    (license license:gpl3)))
-- 
2.20.1