{% set version = '1.0.0' %}

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

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

source:
  fn: callr_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/callr_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/callr/callr_{{ version }}.tar.gz
  sha256: 2c56808c723aba2ea8a8b6bbdc9b8332c96f59b119079861dd52f5988c27f715

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://github.com/MangoTheCat/callr
  license: MIT
  summary: It is sometimes useful to perform a computation in a separate R process, without affecting
    the current R process at all. This packages does exactly that.
  license_family: MIT

extra:
  recipe-maintainers:
    - jdblischak
    - johanneskoester
    - bgruening
