{% set version = '2.0.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/magrittr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/magrittr/magrittr_{{ version }}.tar.gz
  sha256: a2bff83f792a1acb801bfe6330bb62724c74d5308832f2cb6a6178336ace55d2

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: covr, knitr, rlang, rmarkdown, testthat
requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base
    - {{native}}gcc-libs         # [win]

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

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://magrittr.tidyverse.org, https://github.com/tidyverse/magrittr
  license: MIT
  summary: Provides a mechanism for chaining commands with a new forward-pipe operator, %>%.
    This operator will forward a value, or the result of an expression, into the next
    function call/expression. There is flexible support for the type of right-hand side
    expressions. For more information, see package vignette.  To quote Rene Magritte,
    "Ceci n'est pas un pipe."
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - ocefpaf
    - mingwandroid

# The original CRAN metadata for this package was:

# Type: Package
# Package: magrittr
# Title: A Forward-Pipe Operator for R
# Version: 2.0.3
# Authors@R: c( person("Stefan Milton", "Bache", , "stefan@stefanbache.dk", role = c("aut", "cph"), comment = "Original author and creator of magrittr"), person("Hadley", "Wickham", , "hadley@rstudio.com", role = "aut"), person("Lionel", "Henry", , "lionel@rstudio.com", role = "cre"), person("RStudio", role = c("cph", "fnd")) )
# Description: Provides a mechanism for chaining commands with a new forward-pipe operator, %>%. This operator will forward a value, or the result of an expression, into the next function call/expression. There is flexible support for the type of right-hand side expressions. For more information, see package vignette.  To quote Rene Magritte, "Ceci n'est pas un pipe."
# License: MIT + file LICENSE
# URL: https://magrittr.tidyverse.org, https://github.com/tidyverse/magrittr
# BugReports: https://github.com/tidyverse/magrittr/issues
# Depends: R (>= 3.4.0)
# Suggests: covr, knitr, rlang, rmarkdown, testthat
# VignetteBuilder: knitr
# ByteCompile: Yes
# Config/Needs/website: tidyverse/tidytemplate
# Encoding: UTF-8
# RoxygenNote: 7.1.2
# NeedsCompilation: yes
# Packaged: 2022-03-29 09:34:37 UTC; lionel
# Author: Stefan Milton Bache [aut, cph] (Original author and creator of magrittr), Hadley Wickham [aut], Lionel Henry [cre], RStudio [cph, fnd]
# Maintainer: Lionel Henry <lionel@rstudio.com>
# Repository: CRAN
# Date/Publication: 2022-03-30 07:30:09 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
