{% set version = '3.4-3' %}

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

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

source:
  fn: smatr_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/smatr_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/smatr/smatr_{{ version }}.tar.gz

  sha256: fe1d08e29c74df6001ad3501328d230f3394acdf541fc3cb3c7251452cfd2a46

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-plyr

  run:
    - r-base
    - r-plyr

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

about:
  home: https://cran.r-project.org/web/packages/smatr/index.html
  license: GPL-2
  summary: This package provides methods of fitting bivariate lines in allometry using the major
    axis (MA) or standardised major axis (SMA), and for making inferences about such
    lines. The available methods of inference include confidence intervals and one-sample
    tests for slope and elevation, testing for a common slope or elevation amongst several
    allometric lines, constructing a confidence interval for a common slope or elevation,
    and testing for no shift along a common axis, amongst several samples.
  license_family: GPL2
  license_file: '{{ environ["PREFIX"] }}\/lib\/R\/share\/licenses\/GPL-2'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-2'  # [win]
extra:
   recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
