{% set version = "1.0.2" %}

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

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

source:
  fn: skimr_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/skimr_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/skimr/skimr_{{ version }}.tar.gz
  sha256: ea80194ecae85cd328e4128a1b0c4ff3e3c781789c8da975bad8d0adc82735bf

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-dplyr >=0.7
    - r-knitr
    - r-magrittr
    - r-pander
    - r-purrr
    - r-rlang
    - r-stringr
    - r-tibble >=0.6
    - r-tidyr >=0.7
    - r-tidyselect
  run:
    - r-base
    - r-dplyr >=0.7
    - r-knitr
    - r-magrittr
    - r-pander
    - r-purrr
    - r-rlang
    - r-stringr
    - r-tibble >=0.6
    - r-tidyr >=0.7
    - r-tidyselect

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

about:
  home: https://CRAN.R-project.org/package=skimr
  license: GPL-3
  summary: A simple to use summary function that can be used with pipes and displays nicely in
    the console. The default summary statistics may be  modified by the user as can
    the default formatting. Support for data frames  and vectors is included, and users
    can implement their own skim methods for specific object types as described in a
    vignette. Default summaries include support for inline spark graphs. Instructions
    for managing these on  specific operating systems are given in the "Using skimr"
    vignette and the  README.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

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