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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/propr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/propr/propr_{{ version }}.tar.gz
  sha256: cf4dca710a3e6d1ab297fc1f5b0e0be85f0e36e6885da014fd099bcfef7ff099

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

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('cxx') }}      # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-rcpp
    - r-fastcluster
    - r-ggplot2
    - r-igraph
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp
    - r-fastcluster
    - r-ggplot2
    - r-igraph

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

about:
  home: http://github.com/tpq/propr
  license: GPL-2
  summary: An R package to calculate proportionality between vectors of compositional data
  license_family: GPL2
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: propr
# Title: Calculating Proportionality Between Vectors of Compositional Data
# Version: 4.1.1
# URL: http://github.com/tpq/propr
# BugReports: http://github.com/tpq/propr/issues
# Authors@R: c( person("Thomas", "Quinn", email = "contacttomquinn@gmail.com", role = c("aut", "cre")), person("David", "Lovell", email = "david.lovell@qut.edu.au", role = "aut"), person("Ionas", "Erb", email = "ionas.erb@crg.eu", role = "aut"), person("Anders", "Bilgrau", email = "anders.ellern.bilgrau@gmail.com", role = "ctb"), person("Greg", "Gloor", email = "ggloor@uwo.ca", role = "ctb") )
# Description: The bioinformatic evaluation of gene co-expression often begins with correlation-based analyses. However, correlation lacks validity when applied to relative data, including count data generated by next-generation sequencing. This package implements several metrics for proportionality, including phi [Lovell et al (2015) <DOI:10.1371/journal.pcbi.1004075>] and rho [Erb and Notredame (2016) <DOI:10.1007/s12064-015-0220-8>]. This package also implements several metrics for differential proportionality. Unlike correlation, these measures give the same result for both relative and absolute data.
# License: GPL-2
# LazyData: true
# VignetteBuilder: knitr
# RoxygenNote: 6.1.0
# Encoding: UTF-8
# Depends: methods, R (>= 3.2.2)
# Imports: fastcluster, ggplot2, grDevices, igraph, Rcpp, stats, utils
# Suggests: ALDEx2, Biobase, cccrm, compositions, data.table, datasets, grid, ggdendro, knitr, limma, plotly, reshape2, rgl, rmarkdown, SDMTools, testthat, vegan
# LinkingTo: Rcpp
# NeedsCompilation: yes
# Packaged: 2018-11-18 23:46:53 UTC; thom
# Author: Thomas Quinn [aut, cre], David Lovell [aut], Ionas Erb [aut], Anders Bilgrau [ctb], Greg Gloor [ctb]
# Maintainer: Thomas Quinn <contacttomquinn@gmail.com>
# Repository: CRAN
# Date/Publication: 2018-11-19 12:20:02 UTC
