{% set version = '1.2.2' %}

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

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

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

  sha256: a58895ea810a2acec1357e8aff04dc6f177e9a7cc96e5182bf4a91c9888784ba

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

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

requirements:
  build:
    - r-base
    - r-ore

  run:
    - r-base
    - r-ore

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

about:
  home: https://cran.r-project.org/package=reportr
  license: GPL-2
  summary: Provides a system for reporting messages, which provides certain useful features over
    the standard R system, such as the incorporation of output consolidation, message
    filtering, expression substitution, automatic generation of stack traces for debugging,
    and conditional reporting based on the current "output level".
  license_family: GPL2
extra:
   recipe-maintainers:
    - dpryan79
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
