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

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

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

source:
  fn: tsne_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/tsne_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/tsne/tsne_{{ version }}.tar.gz
  sha256: 66fdf5d73e69594af529a9c4f261d972872b9b7bffd19f85c1adcd66afd80c69

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://github.com/jdonaldson/rtsne/
  license: GPL
  summary: A "pure R" implementation of the t-SNE algorithm.
  license_family: GPL

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