{% set version = '0.4-2' %}

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

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

  sha256: ee070187aea3607c9ca6235399b3db3e181348692405d038e962e06aefccabd7

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://cran.r-project.org/web/packages/snow/index.html
  license: GPL-2
  summary: Support for simple parallel computing in R.

extra:
  recipe-maintainers:
    - tomnl
    - johanneskoester
    - bgruening
