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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/strucchange_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/strucchange/strucchange_{{ version }}.tar.gz
  sha256: 7d247c5ae6f5a63c80e478799d009c57fb8803943aa4286d05f71235cc1002f8

build:
  merge_build_host: True  # [win]
  number: 1
  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-sandwich
    - r-zoo
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-sandwich
    - r-zoo

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

about:
  home: https://CRAN.R-project.org/package=strucchange
  license: GPL-2 | GPL-3
  summary: Testing, monitoring and dating structural changes in (linear) regression models. strucchange
    features tests/methods from the generalized fluctuation test framework as well as
    from the F test (Chow test) framework. This includes methods to fit, plot and test
    fluctuation processes (e.g., CUSUM, MOSUM, recursive/moving estimates) and F statistics,
    respectively. It is possible to monitor incoming data online using fluctuation processes.
    Finally, the breakpoints in regression models with structural changes can be estimated
    together with confidence intervals. Emphasis is always given to methods for visualizing
    the data.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: strucchange
# Version: 1.5-2
# Date: 2019-10-12
# Title: Testing, Monitoring, and Dating Structural Changes
# Authors@R: c(person(given = "Achim", family = "Zeileis", role = c("aut", "cre"), email = "Achim.Zeileis@R-project.org", comment = c(ORCID = "0000-0003-0918-3766")), person(given = "Friedrich", family = "Leisch", role = "aut", email = "Friedrich.Leisch@R-project.org"), person(given = "Kurt", family = "Hornik", role = "aut", email = "Kurt.Hornik@R-project.org"), person(given = "Christian", family = "Kleiber", role = "aut", email = "Christian.Kleiber@unibas.ch"), person(given = "Bruce", family = "Hansen", role = "ctb"), person(given = c("Edgar", "C."), family = "Merkle", role = "ctb"))
# Description: Testing, monitoring and dating structural changes in (linear) regression models. strucchange features tests/methods from the generalized fluctuation test framework as well as from the F test (Chow test) framework. This includes methods to fit, plot and test fluctuation processes (e.g., CUSUM, MOSUM, recursive/moving estimates) and F statistics, respectively. It is possible to monitor incoming data online using fluctuation processes. Finally, the breakpoints in regression models with structural changes can be estimated together with confidence intervals. Emphasis is always given to methods for visualizing the data.
# LazyData: yes
# Depends: R (>= 2.10.0), zoo, sandwich
# Suggests: stats4, car, dynlm, e1071, foreach, lmtest, mvtnorm, tseries
# Imports: graphics, stats, utils
# License: GPL-2 | GPL-3
# NeedsCompilation: yes
# Packaged: 2019-10-12 07:22:10 UTC; zeileis
# Author: Achim Zeileis [aut, cre] (<https://orcid.org/0000-0003-0918-3766>), Friedrich Leisch [aut], Kurt Hornik [aut], Christian Kleiber [aut], Bruce Hansen [ctb], Edgar C. Merkle [ctb]
# Maintainer: Achim Zeileis <Achim.Zeileis@R-project.org>
# Repository: CRAN
# Date/Publication: 2019-10-12 18:35:49 UTC
