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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/ggpointdensity_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ggpointdensity/ggpointdensity_{{ version }}.tar.gz
  sha256: 3ea646cf183c8bf7869b122a4ee972b53709056ff443ea71551b823524092a31

build:
  merge_build_host: True  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

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
    - r-ggplot2
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-ggplot2

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

about:
  home: https://github.com/LKremer/ggpointdensity
  license: GPL-3
  summary: A cross between a 2D density plot and a scatter plot, implemented as a 'ggplot2' geom.
    Points in the scatter plot are  colored by the number of neighboring points. This
    is useful to visualize the 2D-distribution of points in case of overplotting.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'
    - LICENSE

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

# Package: ggpointdensity
# Type: Package
# Title: A Cross Between a 2D Density Plot and a Scatter Plot
# Version: 0.1.0
# Authors@R: c(person("Lukas P. M.", "Kremer", email = "L-Kremer@web.de", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-3170-6295")), person("Simon", "Anders", role = "ctb", comment = c(ORCID = "0000-0003-4868-1805")))
# Description: A cross between a 2D density plot and a scatter plot, implemented as a 'ggplot2' geom. Points in the scatter plot are  colored by the number of neighboring points. This is useful to visualize the 2D-distribution of points in case of overplotting.
# URL: https://github.com/LKremer/ggpointdensity
# BugReports: https://github.com/LKremer/ggpointdensity/issues
# License: GPL-3 | file LICENSE
# Encoding: UTF-8
# LazyData: true
# Depends: R (>= 3.2)
# Imports: ggplot2
# Suggests: viridis, dplyr
# NeedsCompilation: yes
# Packaged: 2019-08-28 13:02:49 UTC; lukas
# Author: Lukas P. M. Kremer [aut, cre] (<https://orcid.org/0000-0003-3170-6295>), Simon Anders [ctb] (<https://orcid.org/0000-0003-4868-1805>)
# Maintainer: Lukas P. M. Kremer <L-Kremer@web.de>
# Repository: CRAN
# Date/Publication: 2019-08-28 14:30:02 UTC
