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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/ggraph_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ggraph/ggraph_{{ version }}.tar.gz
  sha256: 80caab7a38f2548a9fcd1ff3655a6bdbcb776fe662e3d93c17798bf2a04078b2

build:
  merge_build_host: true  # [win]
  number: 1
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-mass
    - r-rcpp >=0.12.2
    - r-digest
    - r-dplyr
    - r-ggforce >=0.3.1
    - r-ggplot2 >=3.0.0
    - r-ggrepel
    - r-graphlayouts >=0.5.0
    - r-gtable
    - r-igraph >=1.0.0
    - r-rlang
    - r-scales
    - r-tidygraph
    - r-viridis
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-mass
    - r-rcpp >=0.12.2
    - r-digest
    - r-dplyr
    - r-ggforce >=0.3.1
    - r-ggplot2 >=3.0.0
    - r-ggrepel
    - r-graphlayouts >=0.5.0
    - r-gtable
    - r-igraph >=1.0.0
    - r-rlang
    - r-scales
    - r-tidygraph
    - r-viridis

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

about:
  home: https://github.com/thomasp85/ggraph
  license: MIT
  summary: The grammar of graphics as implemented in ggplot2 is a poor fit for graph and network visualizations due to its reliance on tabular data input. ggraph
    is an extension of the ggplot2 API tailored to graph visualizations and provides the same flexible approach to building up plots layer by layer.
  license_family: MIT
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/MIT
    - LICENSE

extra:
  recipe-maintainers:
    - conda-forge/r

# Package: ggraph
# Type: Package
# Title: An Implementation of Grammar of Graphics for Graphs and Networks
# Version: 2.0.0
# Authors@R:  c(person(given = "Thomas Lin", family = "Pedersen", role = c("cre", "aut"), email = "thomasp85@gmail.com", comment = c(ORCID = "0000-0002-5147-4711")), person(given = "RStudio", role = "cph"))
# Maintainer: Thomas Lin Pedersen <thomasp85@gmail.com>
# Description: The grammar of graphics as implemented in ggplot2 is a poor fit for graph and network visualizations due to its reliance on tabular data input. ggraph is an extension of the ggplot2 API tailored to graph visualizations and provides the same flexible approach to building up plots layer by layer.
# License: MIT + file LICENSE
# Encoding: UTF-8
# LazyData: TRUE
# Imports: Rcpp (>= 0.12.2), dplyr, ggforce (>= 0.3.1), grid, igraph (>= 1.0.0), scales, MASS, digest, gtable, ggrepel, utils, stats, viridis, rlang, tidygraph, graphlayouts (>= 0.5.0)
# Suggests: network, knitr, rmarkdown, purrr, tibble, seriation, deldir, gganimate
# LinkingTo: Rcpp
# RoxygenNote: 6.1.1
# Depends: R (>= 2.10), ggplot2 (>= 3.0.0)
# VignetteBuilder: knitr
# URL: https://github.com/thomasp85/ggraph
# BugReports: https://github.com/thomasp85/ggraph/issues
# NeedsCompilation: yes
# Packaged: 2019-09-02 08:15:00 UTC; thomas
# Author: Thomas Lin Pedersen [cre, aut] (<https://orcid.org/0000-0002-5147-4711>), RStudio [cph]
# Repository: CRAN
# Date/Publication: 2019-09-02 15:10:02 UTC
