File R-rPACI.spec of Package R-rPACI
# Automatically generated by CRAN2OBS
#
# Spec file for package rPACI
# 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 rPACI
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.2.2
Release: 0
Summary: Placido Analysis of Corneal Irregularity
Group: Development/Libraries/Other
License: GPL-3
URL: http://cran.r-project.org/web/packages/%{packname}
Source: rPACI_0.2.2.tar.gz
Requires: R-base
Requires: R-bnlearn
Requires: R-ggplot2
Requires: R-tidyr
Requires: R-ggpubr
Requires: R-rlang
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-ggrepel
Requires: R-ggsci
Requires: R-purrr
Requires: R-dplyr
Requires: R-cowplot
Requires: R-ggsignif
Requires: R-gridExtra
Requires: R-glue
Requires: R-polynom
Requires: R-rstatix
Requires: R-tibble
Requires: R-magrittr
Requires: R-stringr
Requires: R-tidyselect
Requires: R-cpp11
Requires: R-generics
Requires: R-pillar
Requires: R-R6
Requires: R-Rcpp
Requires: R-broom
Requires: R-corrplot
Requires: R-car
Requires: R-farver
Requires: R-labeling
Requires: R-RColorBrewer
Requires: R-viridisLite
Requires: R-stringi
Requires: R-pkgconfig
Requires: R-backports
Requires: R-carData
Requires: R-abind
Requires: R-Formula
Requires: R-pbkrtest
Requires: R-quantreg
Requires: R-lme4
Requires: R-utf8
Requires: R-minqa
Requires: R-nloptr
Requires: R-reformulas
Requires: R-RcppEigen
Requires: R-numDeriv
Requires: R-doBy
Requires: R-SparseM
Requires: R-MatrixModels
Requires: R-Deriv
Requires: R-modelr
Requires: R-microbenchmark
Requires: R-Rdpack
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-bnlearn
BuildRequires: R-ggplot2
BuildRequires: R-tidyr
BuildRequires: R-ggpubr
BuildRequires: R-rlang
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-ggrepel
BuildRequires: R-ggsci
BuildRequires: R-purrr
BuildRequires: R-dplyr
BuildRequires: R-cowplot
BuildRequires: R-ggsignif
BuildRequires: R-gridExtra
BuildRequires: R-glue
BuildRequires: R-polynom
BuildRequires: R-rstatix
BuildRequires: R-tibble
BuildRequires: R-magrittr
BuildRequires: R-stringr
BuildRequires: R-tidyselect
BuildRequires: R-cpp11-devel
BuildRequires: R-generics
BuildRequires: R-pillar
BuildRequires: R-R6
BuildRequires: R-Rcpp-devel
BuildRequires: R-broom
BuildRequires: R-corrplot
BuildRequires: R-car
BuildRequires: R-farver
BuildRequires: R-labeling
BuildRequires: R-RColorBrewer
BuildRequires: R-viridisLite
BuildRequires: R-stringi
BuildRequires: R-pkgconfig
BuildRequires: R-backports
BuildRequires: R-carData
BuildRequires: R-abind
BuildRequires: R-Formula
BuildRequires: R-pbkrtest
BuildRequires: R-quantreg
BuildRequires: R-lme4
BuildRequires: R-utf8
BuildRequires: R-minqa
BuildRequires: R-nloptr
BuildRequires: R-reformulas
BuildRequires: R-RcppEigen-devel
BuildRequires: R-numDeriv
BuildRequires: R-doBy
BuildRequires: R-SparseM
BuildRequires: R-MatrixModels
BuildRequires: R-Deriv
BuildRequires: R-modelr
BuildRequires: R-microbenchmark
BuildRequires: R-Rdpack
BuildRequires: R-rbibutils
Suggests: R-knitr
Suggests: R-rmarkdown
%description
Analysis of corneal data obtained from a Placido disk corneal
topographer with calculation of irregularity indices. This package
performs analyses of corneal data obtained from a Placido disk corneal
topographer, with the calculation of the Placido irregularity indices
and the posterior analysis. The package is intended to be easy to use
by a practitioner, providing a simple interface and yielding easily
interpretable results. A corneal topographer is an ophthalmic clinical
device that obtains measurements in the cornea (the anterior part of
the eye). A Placido disk corneal topographer makes use of the Placido
disk [Rowsey et al. (1981)]<doi:10.1001/archopht.1981.03930011093022>,
which produce a circular pattern of measurement nodes. The raw
information measured by such a topographer is used by practitioners to
analyze curvatures, to study optical aberrations, or to diagnose
specific conditions of the eye (e.g. keratoconus, an important corneal
disease). The rPACI package allows the calculation of the corneal
irregularity indices described in [Castro-Luna et al.
(2020)]<doi:10.1016%2Fj.clae.2019.12.006>, [Ramos-Lopez et al.
(2013)]<doi:10.1097%2FOPX.0b013e3182843f2a>, and [Ramos-Lopez et al.
(2011)]<doi:10.1097/opx.0b013e3182279ff8>. It provides a simple
interface to read corneal topography data files as exported by a
typical Placido disk topographer, to compute the irregularity indices
mentioned before, and to display summary plots that are easy to
interpret for a clinician.
%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
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%doc %{rlibdir}/%{packname}/doc
%{rlibdir}/%{packname}/extdata
%doc %{rlibdir}/%{packname}/help
%doc %{rlibdir}/%{packname}/html
%changelog