{% set version = '1.0.3' %}

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

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

source:
  fn: shiny_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/shiny_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/shiny/shiny_{{ version }}.tar.gz
  sha256: 3a2a5a4437dbcfba1b640ef858667a59ee593754a17b73169b10003183574486

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

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

requirements:
  build:
    - r-base
    - r-r6 >=2.0
    - r-digest
    - r-htmltools >=0.3.5
    - r-httpuv >=1.3.3
    - r-jsonlite >=0.9.16
    - r-mime >=0.3
    - r-sourcetools
    - r-xtable

  run:
    - r-base
    - r-r6 >=2.0
    - r-digest
    - r-htmltools >=0.3.5
    - r-httpuv >=1.3.3
    - r-jsonlite >=0.9.16
    - r-mime >=0.3
    - r-sourcetools
    - r-xtable

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

about:
  home: http://shiny.rstudio.com
  license: GPL-3
  summary: Makes it incredibly easy to build interactive web applications with R. Automatic "reactive"
    binding between inputs and outputs and extensive prebuilt widgets make it possible
    to build beautiful, responsive, and powerful applications with minimal effort.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
