{% set version = "16.1.1" %}

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

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

source:
  fn: LaplacesDemon_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/LaplacesDemon_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/LaplacesDemon/LaplacesDemon_{{ version }}.tar.gz

  sha256: 779ed1dbfed523a15701b4d5d891d4f1f11ab27518826a8a7725807d4c42bd77

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://cran.r-project.org/web/packages/LaplacesDemon/index.html
  license: MIT
  summary: Provides a complete environment for Bayesian inference using a variety of different
    samplers (see ?LaplacesDemon for an overview). The README describes the history
    of the package development process.
  license_family: MIT
extra:
   recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
