File R-fragility.spec of Package R-fragility
# Automatically generated by CRAN2OBS
#
# Spec file for package fragility
# 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 fragility
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 1.6.1
Release: 0
Summary: Assessing and Visualizing Fragility of Clinical Results with Binary Outcomes
Group: Development/Libraries/Other
License: GPL (>= 2)
URL: http://cran.r-project.org/web/packages/%{packname}
Source: fragility_1.6.1.tar.gz
Requires: R-base
Requires: R-meta
Requires: R-metafor
Requires: R-netmeta
Requires: R-plotrix
Requires: R-metadat
Requires: R-ggplot2
Requires: R-lme4
Requires: R-CompQuadForm
Requires: R-xml2
Requires: R-readr
Requires: R-dplyr
Requires: R-magrittr
Requires: R-purrr
Requires: R-stringr
Requires: R-tibble
Requires: R-scales
Requires: R-numDeriv
Requires: R-mathjaxr
Requires: R-pbapply
Requires: R-digest
Requires: R-mvtnorm
Requires: R-magic
Requires: R-igraph
Requires: R-colorspace
Requires: R-cli
Requires: R-generics
Requires: R-glue
Requires: R-lifecycle
Requires: R-pillar
Requires: R-R6
Requires: R-rlang
Requires: R-tidyselect
Requires: R-vctrs
Requires: R-gtable
Requires: R-isoband
Requires: R-S7
Requires: R-withr
Requires: R-pkgconfig
Requires: R-cpp11
Requires: R-minqa
Requires: R-nloptr
Requires: R-reformulas
Requires: R-Rcpp
Requires: R-RcppEigen
Requires: R-abind
Requires: R-clipr
Requires: R-crayon
Requires: R-hms
Requires: R-vroom
Requires: R-tzdb
Requires: R-farver
Requires: R-labeling
Requires: R-RColorBrewer
Requires: R-viridisLite
Requires: R-stringi
Requires: R-utf8
Requires: R-Rdpack
Requires: R-bit64
Requires: R-progress
Requires: R-bit
Requires: R-prettyunits
Requires: R-rbibutils
# %%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-meta
BuildRequires: R-metafor
BuildRequires: R-netmeta
BuildRequires: R-plotrix
BuildRequires: R-metadat
BuildRequires: R-ggplot2
BuildRequires: R-lme4
BuildRequires: R-CompQuadForm
BuildRequires: R-xml2
BuildRequires: R-readr
BuildRequires: R-dplyr
BuildRequires: R-magrittr
BuildRequires: R-purrr
BuildRequires: R-stringr
BuildRequires: R-tibble
BuildRequires: R-scales
BuildRequires: R-numDeriv
BuildRequires: R-mathjaxr
BuildRequires: R-pbapply
BuildRequires: R-digest
BuildRequires: R-mvtnorm
BuildRequires: R-magic
BuildRequires: R-igraph
BuildRequires: R-colorspace
BuildRequires: R-cli
BuildRequires: R-generics
BuildRequires: R-glue
BuildRequires: R-lifecycle
BuildRequires: R-pillar
BuildRequires: R-R6
BuildRequires: R-rlang
BuildRequires: R-tidyselect
BuildRequires: R-vctrs
BuildRequires: R-gtable
BuildRequires: R-isoband
BuildRequires: R-S7
BuildRequires: R-withr
BuildRequires: R-pkgconfig
BuildRequires: R-cpp11-devel
BuildRequires: R-minqa
BuildRequires: R-nloptr
BuildRequires: R-reformulas
BuildRequires: R-Rcpp-devel
BuildRequires: R-RcppEigen-devel
BuildRequires: R-abind
BuildRequires: R-clipr
BuildRequires: R-crayon
BuildRequires: R-hms
BuildRequires: R-vroom
BuildRequires: R-tzdb
BuildRequires: R-farver
BuildRequires: R-labeling
BuildRequires: R-RColorBrewer
BuildRequires: R-viridisLite
BuildRequires: R-stringi
BuildRequires: R-utf8
BuildRequires: R-Rdpack
BuildRequires: R-bit64
BuildRequires: R-progress
BuildRequires: R-bit
BuildRequires: R-prettyunits
BuildRequires: R-rbibutils
%description
A collection of user-friendly functions for assessing and visualizing
fragility of individual studies (Walsh et al., 2014
<doi:10.1016/j.jclinepi.2013.10.019>; Lin, 2021
<doi:10.1111/jep.13428>), conventional pairwise meta-analyses (Atal et
al., 2019 <doi:10.1016/j.jclinepi.2019.03.012>), and network
meta-analyses of multiple treatments with binary outcomes (Xing et al.,
2020 <doi:10.1016/j.jclinepi.2020.07.003>). The included functions are
designed to: 1) calculate the fragility index (i.e., the minimal event
status modifications that can alter the significance or
non-significance of the original result) and fragility quotient (i.e.,
fragility index divided by sample size) at a specific significance
level; 2) give the cases of event status modifications for altering the
result's significance or non-significance and visualize these cases; 3)
visualize the trend of statistical significance as event status is
modified; 4) efficiently derive fragility indexes and fragility
quotients at multiple significance levels, and visualize the
relationship between these fragility measures against the significance
levels; and 5) calculate fragility indexes and fragility quotients of
multiple datasets (e.g., a collection of clinical trials or
meta-analyses) and produce plots of their overall distributions. The
outputs from these functions may inform the robustness of clinical
results in terms of statistical significance and aid the interpretation
of fragility measures. The usage of this package is illustrated in Lin
et al. (2023 <doi:10.1016/j.ajog.2022.08.053>) and detailed in Lin and
Chu (2022 <doi:10.1371/journal.pone.0268754>).
%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}
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%doc %{rlibdir}/%{packname}/help
%doc %{rlibdir}/%{packname}/html
%changelog