<commit_before>{% set version = '1.3-1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/ISLR2_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ISLR2/ISLR2_{{ version }}.tar.gz
  sha256: e64d6d20d6745c58621842bc22d1553fc45edaa390834ba757bdd16c07bfacc2

build:
  merge_build_host: True  # [win]
  number: 0

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

requirements:
  build:
    - {{ posix }}zip  # [win]

  host:
    - r-base

  run:
    - r-base

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

about:
  home: https://www.statlearning.com
  dev_url: https://cran.r-project.org/package=ISLR2<commit_msg>made noarch<commit_after>{% set version = '1.3-1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/ISLR2_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ISLR2/ISLR2_{{ version }}.tar.gz
  sha256: e64d6d20d6745c58621842bc22d1553fc45edaa390834ba757bdd16c07bfacc2

build:
  merge_build_host: True  # [win]
  number: 0
  noarch: generic

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

requirements:
  build:
    - {{ posix }}zip  # [win]

  host:
    - r-base

  run:
    - r-base

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

about:
  home: https://www.statlearning.com
  dev_url: https://cran.r-project.org/package=ISLR2
{'fraction_non_alphanumeric': 0.19050410316529895, 'fraction_numerical': 0.0668229777256741, 'mean_word_length': 2.6788793103448274, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5077720', 'n_tokens_mistral': 811, 'n_tokens_neox': 720, 'n_words': 136}