<commit_before>{% set version = '1.1.39-2' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/x13binary_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/x13binary/x13binary_{{ version }}.tar.gz
  sha256: b78383a956061405791439f6991670d2a53626add783cb1f4a391bbbbdf2c8c5

build:
  merge_build_host: True  # [win]
  number: 0
  ignore_prefix_files:     # [osx]
    - lib/R/library/x13binary/lib/libquadmath.0.dylib  # [osx]
    - lib/R/library/x13binary/lib/libgcc_s.1.dylib     # [osx]
  rpaths:
    - lib/R/lib/
    - lib/

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

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    - $R -e "library('x13binary')"           # [not win]<commit_msg>missing dso whitelist<commit_after>{% set version = '1.1.39-2' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/x13binary_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/x13binary/x13binary_{{ version }}.tar.gz
  sha256: b78383a956061405791439f6991670d2a53626add783cb1f4a391bbbbdf2c8c5

build:
  merge_build_host: True  # [win]
  number: 0
  missing_dso_whitelist:     # [osx]
    - lib/R/library/x13binary/lib/libquadmath.0.dylib  # [osx]
    - lib/R/library/x13binary/lib/libgcc_s.1.dylib     # [osx]
  rpaths:
    - lib/R/lib/
    - lib/

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

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    - $R -e "library('x13binary')"           # [not win]
{'fraction_non_alphanumeric': 0.17175141242937852, 'fraction_numerical': 0.08248587570621468, 'mean_word_length': 2.728421052631579, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '791227', 'n_tokens_mistral': 848, 'n_tokens_neox': 750, 'n_words': 127}