{% set version = '1.0.14' %}



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

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

  sha256: 2fa821c89801e2a7b3c51aeedff37ccf14a386734a37ffb1145b17432222d3f5

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

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

requirements:
  build:
    - r-base
    - r-foreach
    - r-iterators
    - r-snow

  run:
    - r-base
    - r-foreach
    - r-iterators
    - r-snow

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

about:
  home: https://cran.r-project.org/web/packages/doSNOW/index.html
  license: GPL-2
  summary: Provides a parallel backend for the %dopar% function using Luke Tierney's snow package.

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