{% set version = '0.5.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/olsrr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/olsrr/olsrr_{{ version }}.tar.gz
  sha256: 1e71ca86b4f6a5b8c3fa448ae9ab39d20393befc776d72d9bffa7af0c1920166

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: covr, descriptr, knitr, rmarkdown, testthat, vdiffr, xplorerr
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-car
    - r-data.table
    - r-ggplot2
    - r-goftest
    - r-gridextra
    - r-nortest

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-rcpp
    - r-car
    - r-data.table
    - r-ggplot2
    - r-goftest
    - r-gridextra
    - r-nortest

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('olsrr')"           # [not win]
    - "\"%R%\" -e \"library('olsrr')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://olsrr.rsquaredacademy.com/, https://github.com/rsquaredacademy/olsrr
  license: MIT
  summary: Tools designed to make it easier for users, particularly beginner/intermediate R users
    to build ordinary least squares regression models. Includes comprehensive regression
    output, heteroskedasticity tests, collinearity diagnostics, residual diagnostics,
    measures of influence, model fit assessment and variable selection procedures.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

# The original CRAN metadata for this package was:

# Package: olsrr
# Type: Package
# Title: Tools for Building OLS Regression Models
# Version: 0.5.3
# Authors@R: person("Aravind", "Hebbali", email = "hebbali.aravind@gmail.com", role = c("aut", "cre"))
# Description: Tools designed to make it easier for users, particularly beginner/intermediate R users to build ordinary least squares regression models. Includes comprehensive regression output, heteroskedasticity tests, collinearity diagnostics, residual diagnostics, measures of influence, model fit assessment and variable selection procedures.
# Depends: R(>= 3.3)
# Imports: car, data.table, ggplot2, goftest, graphics, gridExtra, nortest, Rcpp, stats, utils
# Suggests: covr, descriptr, knitr, rmarkdown, testthat, vdiffr, xplorerr
# License: MIT + file LICENSE
# URL: https://olsrr.rsquaredacademy.com/, https://github.com/rsquaredacademy/olsrr
# BugReports: https://github.com/rsquaredacademy/olsrr/issues
# Encoding: UTF-8
# LazyData: true
# VignetteBuilder: knitr
# RoxygenNote: 6.1.1
# LinkingTo: Rcpp
# NeedsCompilation: yes
# Packaged: 2020-02-10 11:05:37 UTC; HP
# Author: Aravind Hebbali [aut, cre]
# Maintainer: Aravind Hebbali <hebbali.aravind@gmail.com>
# Repository: CRAN
# Date/Publication: 2020-02-10 12:00:02 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
