%global __brp_check_rpaths %{nil} %global packname trafo %global packver 1.0.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.1 Release: 3%{?dist}%{?buildtag} Summary: Estimation, Comparison and Selection of Transformations License: GPL-2 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.2.4 Requires: R-core >= 3.2.4 BuildArch: noarch BuildRequires: R-CRAN-FNN BuildRequires: R-CRAN-moments BuildRequires: R-CRAN-pryr BuildRequires: R-graphics BuildRequires: R-grDevices BuildRequires: R-CRAN-lmtest Requires: R-CRAN-FNN Requires: R-CRAN-moments Requires: R-CRAN-pryr Requires: R-graphics Requires: R-grDevices Requires: R-CRAN-lmtest %description Estimation, selection and comparison of several families of transformations. The families of transformations included in the package are the following: Bickel-Doksum (Bickel and Doksum 1981 ), Box-Cox, Dual (Yang 2006 ), Glog (Durbin et al. 2002 ), gpower (Kelmansky et al. 2013 ), Log, Log-shift opt (Feng et al. 2016 ), Manly, modulus (John and Draper 1980 ), Neglog (Whittaker et al. 2005 ), Reciprocal and Yeo-Johnson. The package simplifies to compare linear models with untransformed and transformed dependent variable as well as linear models where the dependent variable is transformed with different transformations. Furthermore, the package employs maximum likelihood approaches, moments optimization and divergence minimization to estimate the optimal transformation parameter. %prep %setup -q -c -n %{packname} %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}