File R-pwrFDR.spec of Package R-pwrFDR

# Automatically generated by CRAN2OBS
# 
# Spec file for package pwrFDR 
# This file is auto-generated using information in the package source, 
# esp. Description and Summary. Improvements in that area should be 
# discussed with upstream. 
# 
# Copyright (c) 2025 SUSE LINUX GmbH, Nuernberg, Germany. 
# 
# All modifications and additions to the file contributed by third parties 
# remain the property of their copyright owners, unless otherwise agreed 
# upon. The license for this file, and modifications and additions to the 
# file, is the same license as for the pristine package itself (unless the 
# license for the pristine package is not an Open Source License, in which 
# case the license is the MIT License). An "Open Source License" is a 
# license that conforms to the Open Source Definition (Version 1.9) 
# published by the Open Source Initiative. 
#  
# Please submit bugfixes or comments via http://bugs.opensuse.org/ 
# 
 
%global packname  pwrFDR 
%global rlibdir   %{_libdir}/R/library 
 
Name:           R-%{packname} 
Version:        3.2.4 
Release:        0 
Summary:        FDR Power 
Group:          Development/Libraries/Other 
License:        GPL (>= 2) 
URL:            http://cran.r-project.org/web/packages/%{packname} 
Source:         pwrFDR_3.2.4.tar.gz 
Requires:       R-base 
Requires:	R-flextable
Requires:	R-ggplot2
Requires:	R-mvtnorm
Requires:	R-stringr
Requires:	R-TableMonster
Requires:	R-data.table
Requires:	R-gdtools
Requires:	R-htmltools
Requires:	R-knitr
Requires:	R-officer
Requires:	R-ragg
Requires:	R-rlang
Requires:	R-rmarkdown
Requires:	R-uuid
Requires:	R-xml2
Requires:	R-cli
Requires:	R-gtable
Requires:	R-isoband
Requires:	R-lifecycle
Requires:	R-S7
Requires:	R-scales
Requires:	R-vctrs
Requires:	R-withr
Requires:	R-glue
Requires:	R-magrittr
Requires:	R-stringi
Requires:	R-xtable
Requires:	R-fontquiver
Requires:	R-Rcpp
Requires:	R-systemfonts
Requires:	R-base64enc
Requires:	R-digest
Requires:	R-fastmap
Requires:	R-evaluate
Requires:	R-highr
Requires:	R-xfun
Requires:	R-yaml
Requires:	R-dplyr
Requires:	R-openssl
Requires:	R-R6
Requires:	R-tidyr
Requires:	R-zip
Requires:	R-textshaping
Requires:	R-bslib
Requires:	R-fontawesome
Requires:	R-jquerylib
Requires:	R-jsonlite
Requires:	R-tinytex
Requires:	R-farver
Requires:	R-labeling
Requires:	R-RColorBrewer
Requires:	R-viridisLite
Requires:	R-cachem
Requires:	R-memoise
Requires:	R-mime
Requires:	R-sass
Requires:	R-generics
Requires:	R-pillar
Requires:	R-tibble
Requires:	R-tidyselect
Requires:	R-fontBitstreamVera
Requires:	R-fontLiberation
Requires:	R-askpass
Requires:	R-cpp11
Requires:	R-purrr
Requires:	R-sys
Requires:	R-utf8
Requires:	R-fs
Requires:	R-rappdirs
Requires:	R-pkgconfig
 
# %%if 0%%{?sle_version} > 120400 || 0%%{?is_opensuse} 
# # Three others commonly needed 
# BuildRequires:  tex(ae.sty) 
# BuildRequires:  tex(fancyvrb.sty) 
# BuildRequires:  tex(inconsolata.sty) 
# BuildRequires:  tex(natbib.sty) 
# %else 
# BuildRequires:  texlive 
# %endif 
# BuildRequires:  texinfo 
BuildRequires:  fdupes 
BuildRequires:  R-base 
BuildRequires: 	R-flextable
BuildRequires: 	R-ggplot2
BuildRequires: 	R-mvtnorm
BuildRequires: 	R-stringr
BuildRequires: 	R-TableMonster
BuildRequires: 	R-data.table
BuildRequires: 	R-gdtools
BuildRequires: 	R-htmltools
BuildRequires: 	R-knitr
BuildRequires: 	R-officer
BuildRequires: 	R-ragg
BuildRequires: 	R-rlang
BuildRequires: 	R-rmarkdown
BuildRequires: 	R-uuid
BuildRequires: 	R-xml2
BuildRequires: 	R-cli
BuildRequires: 	R-gtable
BuildRequires: 	R-isoband
BuildRequires: 	R-lifecycle
BuildRequires: 	R-S7
BuildRequires: 	R-scales
BuildRequires: 	R-vctrs
BuildRequires: 	R-withr
BuildRequires: 	R-glue
BuildRequires: 	R-magrittr
BuildRequires: 	R-stringi
BuildRequires: 	R-xtable
BuildRequires: 	R-fontquiver
BuildRequires: 	R-Rcpp-devel
BuildRequires: 	R-systemfonts
BuildRequires: 	R-base64enc
BuildRequires: 	R-digest
BuildRequires: 	R-fastmap
BuildRequires: 	R-evaluate
BuildRequires: 	R-highr
BuildRequires: 	R-xfun
BuildRequires: 	R-yaml
BuildRequires: 	R-dplyr
BuildRequires: 	R-openssl
BuildRequires: 	R-R6
BuildRequires: 	R-tidyr
BuildRequires: 	R-zip
BuildRequires: 	R-textshaping
BuildRequires: 	R-bslib
BuildRequires: 	R-fontawesome
BuildRequires: 	R-jquerylib
BuildRequires: 	R-jsonlite
BuildRequires: 	R-tinytex
BuildRequires: 	R-farver
BuildRequires: 	R-labeling
BuildRequires: 	R-RColorBrewer
BuildRequires: 	R-viridisLite
BuildRequires: 	R-cachem
BuildRequires: 	R-memoise
BuildRequires: 	R-mime
BuildRequires: 	R-sass
BuildRequires: 	R-generics
BuildRequires: 	R-pillar
BuildRequires: 	R-tibble
BuildRequires: 	R-tidyselect
BuildRequires: 	R-fontBitstreamVera
BuildRequires: 	R-fontLiberation
BuildRequires: 	R-askpass
BuildRequires: 	R-cpp11-devel
BuildRequires: 	R-purrr
BuildRequires: 	R-sys
BuildRequires: 	R-utf8
BuildRequires: 	R-fs
BuildRequires: 	R-rappdirs
BuildRequires: 	R-pkgconfig
 
%description 
Computing Average and TPX Power under various BHFDR type sequential 
procedures. All of these procedures involve control of some summary of 
the distribution of the FDP, e.g. the proportion of discoveries which 
are false in a given experiment. The most widely known of these, the 
BH-FDR procedure, controls the FDR which is the mean of the FDP. A 
lesser known procedure, due to Lehmann and Romano, controls the FDX, or 
probability that the FDP exceeds a user provided threshold. This is 
less conservative than FWE control procedures but much more 
conservative than the BH-FDR proceudre. This package and the references 
supporting it introduce a new procedure for controlling the FDX which 
we call the BH-FDX procedure. This procedure iteratively identifies, 
given alpha and lower threshold delta, an alpha* less than alpha at 
which BH-FDR guarantees FDX control.  This uses asymptotic 
approximation and is only slightly more conservative than the BH-FDR 
procedure. Likewise, we can think of the power in multiple testing 
experiments in terms of a summary of the distribution of the True 
Positive Proportion (TPP), the portion of tests truly non-null 
distributed that are called significant. The package will compute 
power, sample size or any other missing parameter required for power 
defined as (i) the mean of the TPP (average power) or (ii) the 
probability that the TPP exceeds a given value, lambda, (TPX power) via 
asymptotic approximation. All supplied theoretical results are also 
obtainable via simulation. The suggested approach is to narrow in on a 
design via the theoretical approaches and then make final 
adjustments/verify the results by simulation. The theoretical results 
are described in Izmirlian, G (2020) Statistics and Probability 
letters, "<doi:10.1016/j.spl.2020.108713>", and an applied paper 
describing the methodology with a simulation study is in preparation. 
See citation("pwrFDR"). 
 
%prep 
%setup -q -c -n %{packname} 
# the next line is needed, because we build without --clean in between two packages 
rm -rf ~/.R  
 
 
%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 
%fdupes -s %{buildroot}%{rlibdir} 
 
#%%check 
#%%{_bindir}/R CMD check %%{packname} 
 
%files 
%dir %{rlibdir}/%{packname} 
%{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/developer-notes.txt
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/help
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/notes.txt
 
%changelog 
openSUSE Build Service is sponsored by