-
Notifications
You must be signed in to change notification settings - Fork 2
/
R-SampleSizeMeans.spec
58 lines (45 loc) · 1.78 KB
/
R-SampleSizeMeans.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
%global packname SampleSizeMeans
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
Version: 1.0
Release: 1%{?dist}
Summary: Sample size calculations for normal means
Group: Applications/Engineering
License: GPL (>= 2)
URL: http://cran.r-project.org/web/packages/%{packname}/index.html
Source0: http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: R-core
BuildRequires: R-devel tex(latex)
%description
A set of R functions for calculating sample size requirements using three
different Bayesian criteria in the context of designing an experiment to
estimate a normal mean or the difference between two normal means.
Functions for calculation of required sample sizes for the Average Length
Criterion, the Average Coverage Criterion and the Worst Outcome Criterion
in the context of normal means are provided. Functions for both the fully
Bayesian and the mixed Bayesian/likelihood approaches are provided.
%prep
%setup -q -c -n %{packname}
%build
%install
rm -rf %{buildroot}
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
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%doc %{rlibdir}/SampleSizeMeans/html
%doc %{rlibdir}/SampleSizeMeans/DESCRIPTION
%{rlibdir}/SampleSizeMeans/Meta
%{rlibdir}/SampleSizeMeans/NAMESPACE
%{rlibdir}/SampleSizeMeans/INDEX
%{rlibdir}/SampleSizeMeans/R
%{rlibdir}/SampleSizeMeans/help
%changelog
* Thu Nov 17 2011 Pierre-Yves Chibon <pingou@pingoured.fr> 1.0-1
- initial package for Fedora