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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/lfe_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/lfe/lfe_{{ version }}.tar.gz
  sha256: 97c2a020ac4583aa6c2f7dc4710a6f6a0ec427883b51a47614995a390971f17b

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 }}sed               # [win]
    - {{ posix }}grep              # [win]
    - {{ posix }}autoconf
    - {{ posix }}automake          # [not win]
    - {{ posix }}automake-wrapper  # [win]
    - {{ posix }}pkg-config
    - {{ posix }}make
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-formula
    - r-matrix >=1.1_2
    - r-sandwich
    - r-xtable
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-formula
    - r-matrix >=1.1_2
    - r-sandwich
    - r-xtable

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

about:
  home: https://github.com/sgaure/lfe
  license: Artistic-2.0
  summary: Transforms away factors with many levels prior to doing an OLS.  Useful for estimating linear models with multiple group fixed effects, and for estimating linear models which uses factors with many levels as pure control variables. Includes support for instrumental variables, conditional F statistics for weak
    instruments, robust and multi-way clustered standard errors, as well as limited mobility bias correction.
  license_family: OTHER
  license_file: {{ environ["PREFIX"] }}/lib/R/share/licenses/Artistic-2.0

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

# Package: lfe
# Version: 2.8-3
# Date: 2019-03-27
# Title: Linear Group Fixed Effects
# Authors@R: person("Simen", "Gaure", email="Simen.Gaure@frisch.uio.no", role=c("aut","cre"),  comment=c(ORCID="https://orcid.org/0000-0001-7251-8747"))
# Copyright: 2011-2018, Simen Gaure
# Depends: R (>= 2.15.2), Matrix (>= 1.1-2)
# Imports: Formula, xtable, compiler, utils, methods, sandwich, parallel
# Suggests: knitr, digest, igraph, plm, cubature(>= 2.0.3), numDeriv, data.table, alpaca
# VignetteBuilder: knitr
# ByteCompile: yes
# Description: Transforms away factors with many levels prior to doing an OLS.  Useful for estimating linear models with multiple group fixed effects, and for estimating linear models which uses factors with many levels as pure control variables. Includes support for instrumental variables, conditional F statistics for weak instruments, robust and multi-way clustered standard errors, as well as limited mobility bias correction.
# License: Artistic-2.0
# Classification/JEL: C13, C23, C60
# Classification/MSC: 62J05, 65F10, 65F50
# URL: https://github.com/sgaure/lfe
# BugReports: https://github.com/sgaure/lfe/issues
# Encoding: UTF-8
# RoxygenNote: 6.1.1
# NeedsCompilation: yes
# Packaged: 2019-03-27 08:03:16 UTC; sgaure
# Author: Simen Gaure [aut, cre] (<https://orcid.org/0000-0001-7251-8747>)
# Maintainer: Simen Gaure <Simen.Gaure@frisch.uio.no>
# Repository: CRAN
# Date/Publication: 2019-03-27 10:00:14 UTC
