{% set version = '3.7.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/callr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/callr/callr_{{ version }}.tar.gz
  sha256: 567bfedf073a1d4c5785f0553341608a214938110567b9a6495ff20ebb2fd04e

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

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

# Suggests: asciicast, cli (>= 1.1.0), covr, mockery, ps, rprojroot, spelling, testthat (>= 3.0.0), withr (>= 2.3.0)
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-r6
    - r-processx >=3.6.1

  run:
    - r-base
    - r-r6
    - r-processx >=3.6.1

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('callr')"           # [not win]
    - "\"%R%\" -e \"library('callr')\""  # [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://callr.r-lib.org, https://github.com/r-lib/callr#readme
  license: MIT
  summary: It is sometimes useful to perform a computation in a separate R process, without affecting
    the current R process at all.  This packages does exactly that.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: callr
# Title: Call R from R
# Version: 3.7.3
# Authors@R: c( person("Gabor", "Csardi", , "csardi.gabor@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0001-7098-9676")), person("Winston", "Chang", role = "aut"), person("RStudio", role = c("cph", "fnd")), person("Mango Solutions", role = c("cph", "fnd")) )
# Description: It is sometimes useful to perform a computation in a separate R process, without affecting the current R process at all.  This packages does exactly that.
# License: MIT + file LICENSE
# URL: https://callr.r-lib.org, https://github.com/r-lib/callr#readme
# BugReports: https://github.com/r-lib/callr/issues
# Depends: R (>= 3.4)
# Imports: processx (>= 3.6.1), R6, utils
# Suggests: asciicast, cli (>= 1.1.0), covr, mockery, ps, rprojroot, spelling, testthat (>= 3.0.0), withr (>= 2.3.0)
# Encoding: UTF-8
# Language: en-US
# RoxygenNote: 7.2.1.9000
# Config/testthat/edition: 3
# Config/Needs/website: r-lib/asciicast, glue, htmlwidgets, igraph, tibble, tidyverse/tidytemplate
# NeedsCompilation: no
# Packaged: 2022-11-02 15:17:20 UTC; gaborcsardi
# Author: Gabor Csardi [aut, cre, cph] (<https://orcid.org/0000-0001-7098-9676>), Winston Chang [aut], RStudio [cph, fnd], Mango Solutions [cph, fnd]
# Maintainer: Gabor Csardi <csardi.gabor@gmail.com>
# Repository: CRAN
# Date/Publication: 2022-11-02 16:40:11 UTC

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