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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/iccbeta_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/iccbeta/iccbeta_{{ version }}.tar.gz
  sha256: 53c9df09907b3af47399acc7cd4063867fc5f803964038e452fdad8b110bba0e

build:
  merge_build_host: True  # [win]
  number: 0

  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-rcpp
    - r-rcpparmadillo >=0.9.200
    - r-lme4
    - libblas

  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp
    - r-rcpparmadillo >=0.9.200
    - r-lme4

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

about:
  home: https://github.com/tmsalab/iccbeta

  license: GPL-2.0-or-later
  summary: A function and vignettes for computing an intraclass correlation described in Aguinis
    & Culpepper (2015) <doi:10.1177/1094428114563618>. This package quantifies the share
    of variance in a dependent variable that is attributed to group heterogeneity in
    slopes.

  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: iccbeta
# Type: Package
# Title: Multilevel Model Intraclass Correlation for Slope Heterogeneity
# Version: 1.2.0
# Authors@R: c(person("Steven Andrew", "Culpepper", email = "sculpepp@illinois.edu", role = c("aut", "cph", "cre"), comment = c(ORCID = "0000-0003-4226-6176") ), person("Herman", "Aguinis", email = "haguinis@gwu.edu", role = c("aut", "cph"), comment = c(ORCID = "0000-0002-3485-9484")) )
# Description: A function and vignettes for computing an intraclass correlation described in Aguinis & Culpepper (2015) <doi:10.1177/1094428114563618>. This package quantifies the share of variance in a dependent variable that is attributed to group heterogeneity in slopes.
# Depends: R (>= 3.4.0)
# Imports: Rcpp, lme4, stats, methods
# LinkingTo: Rcpp (>= 1.0.0), RcppArmadillo (>= 0.9.200)
# Suggests: RLRsim, testthat, covr
# License: GPL (>= 2)
# URL: https://github.com/tmsalab/iccbeta
# BugReports: https://github.com/tmsalab/iccbeta/issues
# RoxygenNote: 6.1.1
# Encoding: UTF-8
# NeedsCompilation: yes
# Packaged: 2019-01-28 20:34:11 UTC; ronin
# Author: Steven Andrew Culpepper [aut, cph, cre] (<https://orcid.org/0000-0003-4226-6176>), Herman Aguinis [aut, cph] (<https://orcid.org/0000-0002-3485-9484>)
# Maintainer: Steven Andrew Culpepper <sculpepp@illinois.edu>
# Repository: CRAN
# Date/Publication: 2019-01-28 21:50:02 UTC
