%global __brp_check_rpaths %{nil} %global packname sampler %global packver 0.2.4 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.2.4 Release: 3%{?dist}%{?buildtag} Summary: Sample Design, Drawing & Data Analysis Using Data Frames License: MIT + file LICENSE 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-dplyr BuildRequires: R-CRAN-tidyr BuildRequires: R-CRAN-reshape BuildRequires: R-CRAN-purrr Requires: R-CRAN-dplyr Requires: R-CRAN-tidyr Requires: R-CRAN-reshape Requires: R-CRAN-purrr %description Determine sample sizes, draw samples, and conduct data analysis using data frames. It specifically enables you to determine simple random sample sizes, stratified sample sizes, and complex stratified sample sizes using a secondary variable such as population; draw simple random samples and stratified random samples from sampling data frames; determine which observations are missing from a random sample, missing by strata, duplicated within a dataset; and perform data analysis, including proportions, margins of error and upper and lower bounds for simple, stratified and cluster sample designs. %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}