{% set version = '0.19-1' %}

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

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

source:
  fn: coda_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/coda_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/coda/coda_{{ version }}.tar.gz
  sha256: d41ff5731da6805170769dba75dd011ab33f916d15b2336001f279e21a524491

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-lattice

  run:
    - r-base
    - r-lattice

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

about:
  home: https://CRAN.R-project.org/package=coda
  license: GPL (>= 2)
  summary: Provides functions for summarizing and plotting the output from Markov Chain Monte
    Carlo (MCMC) simulations, as well as diagnostic tests of convergence to the equilibrium
    distribution of the Markov chain.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
