{% set version = '2.1.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/meta4diag_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/meta4diag/meta4diag_{{ version }}.tar.gz
  sha256: 6c62d75b1bff5df89714fab982bfca8ec66921ac33d95c883dbe6f38c260bd94

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip
  noarch: generic

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: INLA
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-catools
    - r-shiny
    - r-shinybs
    - r-sp

  run:
    - r-base
    - r-catools
    - r-shiny
    - r-shinybs
    - r-sp

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('meta4diag')"           # [not win]
    - "\"%R%\" -e \"library('meta4diag')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://CRAN.R-project.org/package=meta4diag
  license: GPL-3
  summary: 'Bayesian inference analysis for bivariate meta-analysis of diagnostic test studies
    using integrated nested Laplace approximation with INLA. A purpose built graphic
    user interface is available. The installation of R package INLA is compulsory for
    successful usage. The INLA package can be obtained from <https://www.r-inla.org>.
    We recommend the testing version, which can be downloaded by running: install.packages("INLA",
    repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/testing"),
    dep=TRUE).'
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: meta4diag
# Type: Package
# Title: Meta-Analysis for Diagnostic Test Studies
# Version: 2.1.1
# Date: 2021-11-30
# Author: Jingyi Guo <jingyi.guo@ntnu.no> and Andrea Riebler <andrea.riebler@ntnu.no>
# Maintainer: Jingyi Guo <jingyi.guo@ntnu.no>
# Description: Bayesian inference analysis for bivariate meta-analysis of diagnostic test studies using integrated nested Laplace approximation with INLA. A purpose built graphic user interface is available. The installation of R package INLA is compulsory for successful usage. The INLA package can be obtained from <https://www.r-inla.org>. We recommend the testing version, which can be downloaded by running: install.packages("INLA", repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/testing"), dep=TRUE).
# License: GPL
# Depends: R (>= 2.10), sp, methods, grid, shiny, shinyBS, caTools
# Suggests: INLA
# Additional_repositories: https://inla.r-inla-download.org/R/testing
# Repository: CRAN
# Repository/R-Forge/Project: meta4diag
# Repository/R-Forge/Revision: 29
# Repository/R-Forge/DateTimeStamp: 2021-11-30 09:10:28
# Date/Publication: 2021-11-30 10:10:02 UTC
# NeedsCompilation: no
# Packaged: 2021-11-30 09:28:09 UTC; rforge

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
