{% set version = "1.2.9" %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-mets
  version: {{ version|replace("-", "_") }}

source:
  url:
    - {{ cran_mirror }}/src/contrib/mets_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/mets/mets_{{ version }}.tar.gz
  sha256: 5faccc064e715c44234def40f4f560e90f2dbd34c915a8687b48103b39814ab5

build:
  merge_build_host: true  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - libopenblas
    - r-base
    - r-rcpp
    - r-rcpparmadillo
    - r-lava >=1.6.6
    - r-mvtnorm
    - r-numderiv
    - r-survival >=2.43_1
    - r-timereg >=1.9.4
  run:
    - libopenblas
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp
    - r-rcpparmadillo
    - r-lava >=1.6.6
    - r-mvtnorm
    - r-numderiv
    - r-survival >=2.43_1
    - r-timereg >=1.9.4

test:
  commands:
    - $R -e "library('mets')"           # [not win]
    - "\"%R%\" -e \"library('mets')\""  # [win]

about:
  home: https://kkholst.github.io/mets/
  license: GPL-2.0-or-later
  summary: Implementation of various statistical models for multivariate event history data <doi:10.1007/s10985-013-9244-x>. Including multivariate cumulative incidence models <doi:10.1002/sim.6016>, and  bivariate random effects probit models (Liability models) <doi:10.1016/j.csda.2015.01.014>. Also contains two-stage binomial
    modelling that can do pairwise odds-ratio dependence modelling based marginal logistic regression models. This is an alternative to the alternating logistic regression approach (ALR).
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

extra:
  recipe-maintainers:
    - conda-forge/r

# Package: mets
# Type: Package
# Title: Analysis of Multivariate Event Times
# Version: 1.2.8.1
# Date: 2020-09-25
# Authors@R: c(person("Klaus K.", "Holst", email="klaus@holst.it", role=c("aut", "cre")), person("Thomas Scheike", role=c("aut")))
# Author: Klaus K. Holst [aut, cre], Thomas Scheike [aut]
# Maintainer: Klaus K. Holst <klaus@holst.it>
# Description: Implementation of various statistical models for multivariate event history data <doi:10.1007/s10985-013-9244-x>. Including multivariate cumulative incidence models <doi:10.1002/sim.6016>, and  bivariate random effects probit models (Liability models) <doi:10.1016/j.csda.2015.01.014>. Also contains two-stage binomial modelling that can do pairwise odds-ratio dependence modelling based marginal logistic regression models. This is an alternative to the alternating logistic regression approach (ALR).
# License: GPL (>= 2)
# LazyLoad: yes
# URL: https://kkholst.github.io/mets/
# BugReports: https://github.com/kkholst/mets/issues
# Depends: R (>= 3.5), timereg (>= 1.9.4), lava (>= 1.6.6)
# Imports: mvtnorm, numDeriv, compiler, Rcpp, splines, survival (>= 2.43-1),
# Suggests: prodlim, cmprsk, testthat (>= 0.11), ucminf, knitr, bookdown, rmarkdown, ggplot2, cowplot
# VignetteBuilder: knitr
# ByteCompile: yes
# LinkingTo: Rcpp, RcppArmadillo, mvtnorm
# SystemRequirements: C++11
# Encoding: UTF-8
# RoxygenNote: 7.1.1
# NeedsCompilation: yes
# Packaged: 2020-09-25 12:19:26 UTC; klaus
# Repository: CRAN
# Date/Publication: 2020-09-28 22:10:02 UTC
