%global __brp_check_rpaths %{nil} %global packname autoTS %global packver 0.9.11 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.9.11 Release: 3%{?dist}%{?buildtag} Summary: Automatic Model Selection and Prediction for Univariate TimeSeries License: GPL-3 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel Requires: R-core BuildArch: noarch BuildRequires: R-CRAN-rlang BuildRequires: R-CRAN-prophet BuildRequires: R-CRAN-dplyr BuildRequires: R-CRAN-magrittr BuildRequires: R-CRAN-lubridate BuildRequires: R-CRAN-tidyr BuildRequires: R-CRAN-forecast BuildRequires: R-CRAN-ggplot2 BuildRequires: R-CRAN-RcppRoll BuildRequires: R-CRAN-shiny BuildRequires: R-CRAN-shinycssloaders BuildRequires: R-CRAN-plotly Requires: R-CRAN-rlang Requires: R-CRAN-prophet Requires: R-CRAN-dplyr Requires: R-CRAN-magrittr Requires: R-CRAN-lubridate Requires: R-CRAN-tidyr Requires: R-CRAN-forecast Requires: R-CRAN-ggplot2 Requires: R-CRAN-RcppRoll Requires: R-CRAN-shiny Requires: R-CRAN-shinycssloaders Requires: R-CRAN-plotly %description Offers a set of functions to easily make predictions for univariate time series. 'autoTS' is a wrapper of existing functions of the 'forecast' and 'prophet' packages, harmonising their outputs in tidy dataframes and using default values for each. The core function getBestModel() allows the user to effortlessly benchmark seven algorithms along with a bagged estimator to identify which one performs the best for a given time series. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; %build %install mkdir -p %{buildroot}%{rlibdir} %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname} test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) rm -f %{buildroot}%{rlibdir}/R.css %files %{rlibdir}/%{packname}