{% set version = '0.7.6' %}

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

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

source:
  fn: caroline_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/caroline_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/caroline/caroline_{{ version }}.tar.gz
  sha256: e7ba948f7d87f091b498dd0eec2ca4fdad7af4e2bbb67e0945c2f0d3f2eadda9

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=caroline
  license: Artistic-2.0
  summary: 'The caroline R library contains dozens of functions useful for: database migration
    (dbWriteTable2), database style joins & aggregation (nerge, groupBy & bestBy), data
    structure conversion (nv, tab2df), legend table making (sstable & leghead), plot
    annotation (labsegs & mvlabs), data visualization (violins, pies & raPlot), character
    string manipulation (m & pad), file I/O (write.delim), batch scripting and more.  The
    package''s greatest contributions lie in the database style merge, aggregation and
    interface functions as well as in it''s extensive use and propagation of row, column
    and vector names in most functions.'

  license_family: OTHER

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
