%global packname R2HTML
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
Version: 2.3.4
Release: %autorelease
Summary: HTML Exportation for R Objects
License: GPL-2.0-or-later
URL: https://CRAN.R-project.org/package=%{packname}
Source: %{url}&version=%{version}#/%{packname}_%{version}.tar.gz
BuildArch: noarch
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: tex(inconsolata.sty)
%description
Includes HTML function and methods to write in an HTML file. Thus, making
HTML reports is easy. Includes a function that allows redirection on the
fly, which appears to be very useful for teaching purpose, as the student
can keep a copy of the produced output to keep all that he did during the
course. Package comes with a vignette describing how to write HTML reports
for statistical analysis. Finally, a driver for 'Sweave' allows to parse
HTML flat files containing R code and to automatically write the
corresponding outputs (tables and graphs).
%prep
%setup -q -c -n %{packname}
%build
%install
mkdir -p %{buildroot}%{rlibdir}
R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
%check
R CMD check %{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/demo
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/samples
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/output
%changelog
%autochangelog