Unverified Commit a757388a authored by Christian Brueffer's avatar Christian Brueffer Committed by GitHub

Merge pull request #7856 from cbrueffer/survivalanalysis

Add r-survivalanalysis.
parents fa803547 67083980
"%R%" CMD INSTALL --build .
IF %ERRORLEVEL% NEQ 0 exit 1
#!/bin/bash
if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then
export DISABLE_AUTOBREW=1
$R CMD INSTALL --build .
else
mkdir -p $PREFIX/lib/R/library/survivalAnalysis
mv * $PREFIX/lib/R/library/survivalAnalysis
if [[ $target_platform == osx-64 ]]; then
pushd $PREFIX
for libdir in lib/R/lib lib/R/modules lib/R/library lib/R/bin/exec sysroot/usr/lib; do
pushd $libdir || exit 1
for SHARED_LIB in $(find . -type f -iname "*.dylib" -or -iname "*.so" -or -iname "R"); do
echo "fixing SHARED_LIB $SHARED_LIB"
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5.0-MRO/Resources/lib/libR.dylib "$PREFIX"/lib/R/lib/libR.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylib "$PREFIX"/lib/R/lib/libR.dylib $SHARED_LIB || true
install_name_tool -change /usr/local/clang4/lib/libomp.dylib "$PREFIX"/lib/libomp.dylib $SHARED_LIB || true
install_name_tool -change /usr/local/gfortran/lib/libgfortran.3.dylib "$PREFIX"/lib/libgfortran.3.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libquadmath.0.dylib "$PREFIX"/lib/libquadmath.0.dylib $SHARED_LIB || true
install_name_tool -change /usr/local/gfortran/lib/libquadmath.0.dylib "$PREFIX"/lib/libquadmath.0.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libgfortran.3.dylib "$PREFIX"/lib/libgfortran.3.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libgcc_s.1.dylib "$PREFIX"/lib/libgcc_s.1.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libiconv.2.dylib "$PREFIX"/sysroot/usr/lib/libiconv.2.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libncurses.5.4.dylib "$PREFIX"/sysroot/usr/lib/libncurses.5.4.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libicucore.A.dylib "$PREFIX"/sysroot/usr/lib/libicucore.A.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libexpat.1.dylib "$PREFIX"/lib/libexpat.1.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libcurl.4.dylib "$PREFIX"/lib/libcurl.4.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libc++.1.dylib "$PREFIX"/lib/libc++.1.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libc++.1.dylib "$PREFIX"/lib/libc++.1.dylib $SHARED_LIB || true
done
popd
done
popd
fi
fi
{% set version = '0.1.1' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}
package:
name: r-survivalanalysis
version: {{ version|replace("-", "_") }}
source:
url:
- {{ cran_mirror }}/src/contrib/survivalAnalysis_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/survivalAnalysis/survivalAnalysis_{{ version }}.tar.gz
sha256: 8eef188ea449a1a12a1d3bf63b3ad0bdbef0f6b4eb9c627ccc599ac1a67e9078
build:
merge_build_host: True # [win]
number: 0
noarch: generic
rpaths:
- lib/R/lib/
- lib/
requirements:
build:
- {{posix}}zip # [win]
host:
- r-base
- r-cowplot
- r-dplyr
- r-forcats
- r-ggplot2 >=2.2.1
- r-gridextra
- r-magrittr
- r-purrr
- r-rlang
- r-scales
- r-stringr
- r-survival
- r-survminer >0.4.0
- r-tibble
- r-tidyr
- r-tidytidbits
run:
- r-base
- r-cowplot
- r-dplyr
- r-forcats
- r-ggplot2 >=2.2.1
- r-gridextra
- r-magrittr
- r-purrr
- r-rlang
- r-scales
- r-stringr
- r-survival
- r-survminer >0.4.0
- r-tibble
- r-tidyr
- r-tidytidbits
test:
commands:
- $R -e "library('survivalAnalysis')" # [not win]
- "\"%R%\" -e \"library('survivalAnalysis')\"" # [win]
about:
home: https://CRAN.R-project.org/package=survivalAnalysis
license: GPL-3
summary: A high-level interface to perform survival analysis, including Kaplan-Meier analysis
and log-rank tests and Cox regression. Aims at providing a clear and elegant syntax,
support for use in a pipeline, structured output and plotting. Builds upon the 'survminer'
package for Kaplan-Meier plots and provides a customizable implementation for forest
plots. Kaplan & Meier (1958) <doi:10.1080/01621459.1958.10501452> Cox (1972) <JSTOR:2985181>
Peto & Peto (1972) <doi:10.2307/2344317>.
license_family: GPL3
license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'
extra:
recipe-maintainers:
- conda-forge/r
# Package: survivalAnalysis
# Type: Package
# Title: High-Level Interface for Survival Analysis and Associated Plots
# Version: 0.1.1
# Author: Marcel Wiesweg [aut, cre]
# Authors@R: person("Marcel", "Wiesweg", email = "marcel.wiesweg@uk-essen.de", role = c("aut", "cre"))
# Maintainer: Marcel Wiesweg <marcel.wiesweg@uk-essen.de>
# Description: A high-level interface to perform survival analysis, including Kaplan-Meier analysis and log-rank tests and Cox regression. Aims at providing a clear and elegant syntax, support for use in a pipeline, structured output and plotting. Builds upon the 'survminer' package for Kaplan-Meier plots and provides a customizable implementation for forest plots. Kaplan & Meier (1958) <doi:10.1080/01621459.1958.10501452> Cox (1972) <JSTOR:2985181> Peto & Peto (1972) <doi:10.2307/2344317>.
# License: GPL-3
# Encoding: UTF-8
# LazyData: true
# Depends: R (>= 3.3.0)
# Imports: grDevices, graphics, stats, utils, survival, rlang, dplyr, forcats, magrittr, purrr, stringr, tibble, tidyr, gridExtra, ggplot2 (>= 2.2.1), scales, survminer (> 0.4.0), cowplot, tidytidbits
# RoxygenNote: 6.1.1
# Suggests: knitr, rmarkdown, tidyverse
# VignetteBuilder: knitr
# NeedsCompilation: no
# Packaged: 2019-02-12 15:23:56 UTC; wiesweg
# Repository: CRAN
# Date/Publication: 2019-02-13 09:40:04 UTC
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment