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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/cobalt_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/cobalt/cobalt_{{ version }}.tar.gz
  sha256: a4a4114fd0107eed06cc05afd23541fe25edb192c9134594e4fbb83a778758a1

build:
  merge_build_host: true  # [win]
  number: 0
  skip: true  # [r_base == "3.5.1"]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-backports >=1.1.8
    - r-crayon
    - r-ggplot2 >=3.3.0
    - r-gridextra >=2.3.0
    - r-gtable >=0.3.0
    - r-rlang >=0.4.0
  run:
    - r-base
    - r-backports >=1.1.8
    - r-crayon
    - r-ggplot2 >=3.3.0
    - r-gridextra >=2.3.0
    - r-gtable >=0.3.0
    - r-rlang >=0.4.0

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

about:
  home: https://github.com/ngreifer/cobalt
  license: GPL-2.0-or-later
  summary: Generate balance tables and plots for covariates of groups preprocessed through matching, weighting or subclassification, for example, using propensity scores. Includes integration with 'MatchIt', 'twang', 'Matching', 'optmatch', 'CBPS', 'ebal', 'WeightIt', 'cem', 'sbw', and 'designmatch' for assessing balance
    on the output of their preprocessing functions. Users can also specify data for balance assessment not generated through the above packages. Also included are methods for assessing balance in clustered or multiply imputed data sets or data sets with longitudinal treatments.
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: cobalt
# Title: Covariate Balance Tables and Plots
# Version: 4.2.2
# Authors@R: c( person("Noah", "Greifer", role=c("aut", "cre"), email = "noah.greifer@gmail.com", comment=c(ORCID="0000-0003-3067-7154")) )
# Description: Generate balance tables and plots for covariates of groups preprocessed through matching, weighting or subclassification, for example, using propensity scores. Includes integration with 'MatchIt', 'twang', 'Matching', 'optmatch', 'CBPS', 'ebal', 'WeightIt', 'cem', 'sbw', and 'designmatch' for assessing balance on the output of their preprocessing functions. Users can also specify data for balance assessment not generated through the above packages. Also included are methods for assessing balance in clustered or multiply imputed data sets or data sets with longitudinal treatments.
# Depends: R (>= 3.3.0)
# Imports: ggplot2 (>= 3.3.0), grid, gtable (>= 0.3.0), gridExtra (>= 2.3.0), rlang (>= 0.4.0), crayon, backports (>= 1.1.8)
# Suggests: MatchIt, WeightIt (>= 0.5.0), twang (>= 1.6), Matching, optmatch, cem, ebal, CBPS (>= 0.17), designmatch, optweight, mice (>= 3.8.0), MatchThem (>= 0.9.3), sbw, mlogit, knitr, rmarkdown
# License: GPL (>= 2)
# Encoding: UTF-8
# LazyData: true
# VignetteBuilder: knitr
# URL: https://github.com/ngreifer/cobalt
# BugReports: https://github.com/ngreifer/cobalt/issues
# NeedsCompilation: no
# Packaged: 2020-06-25 22:30:56 UTC; NoahGreifer
# Author: Noah Greifer [aut, cre] (<https://orcid.org/0000-0003-3067-7154>)
# Maintainer: Noah Greifer <noah.greifer@gmail.com>
# Repository: CRAN
# Date/Publication: 2020-06-26 15:50:03 UTC
