%global __brp_check_rpaths %{nil} %global packname IncomPair %global packver 0.1.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.1.0 Release: 3%{?dist}%{?buildtag} Summary: Comparison of Means for the Incomplete Paired Data License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.10 Requires: R-core >= 2.10 BuildArch: noarch BuildRequires: R-methods Requires: R-methods %description Implements a variety of nonparametric and parametric methods that are commonly used when the data set is a mixture of paired observations and independent samples. The package also calculates and returns values of different tests with their corresponding p-values. Bhoj, D. S. (1991) "Testing equality of means in the presence of correlation and missing data". Dubnicka, S. R., Blair, R. C., and Hettmansperger, T. P. (2002) "Rank-based procedures for mixed paired and two-sample designs". Einsporn, R. L. and Habtzghi, D. (2013) "Combining paired and two-sample data using a permutation test". Ekbohm, G. (1976) "On comparing means in the paired case with incomplete data on both responses". Lin, P. E. and Stivers, L. E. (1974) On difference of means with incomplete data". Maritz, J. S. (1995) "A permutation paired test allowing for missing values". %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}