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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/bigreadr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/bigreadr/bigreadr_{{ version }}.tar.gz
  sha256: 0e205e024e8850d92038ddbe34a59235361c519b4355019a4045d0bfdeaaa018

build:
  merge_build_host: true  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-rcpp
    - r-bigassertr >=0.1.1
    - r-data.table
    - r-parallelly
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp
    - r-bigassertr >=0.1.1
    - r-data.table
    - r-parallelly

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

about:
  home: https://github.com/privefl/bigreadr
  license: GPL-3.0-only
  summary: Read large text files by splitting them in smaller files. Package 'bigreadr' also provides some convenient wrappers around fread() and fwrite() from package 'data.table'.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

extra:
  recipe-maintainers:
    - conda-forge/r
    - brendanf
    - privefl

# Package: bigreadr
# Version: 0.2.0
# Date: 2019-10-17
# Title: Read Large Text Files
# Description: Read large text files by splitting them in smaller files. Package 'bigreadr' also provides some convenient wrappers around fread() and fwrite() from package 'data.table'.
# Authors@R: person(given = "Florian", family = "Prive", role = c("aut", "cre"), email = "florian.prive.21@gmail.com")
# License: GPL-3
# Encoding: UTF-8
# LazyData: true
# ByteCompile: true
# RoxygenNote: 6.1.0
# Imports: bigassertr (>= 0.1.1), data.table, Rcpp, parallel, utils
# Suggests: spelling, testthat, covr, RSQLite
# LinkingTo: Rcpp
# Language: en-US
# URL: https://github.com/privefl/bigreadr
# BugReports: https://github.com/privefl/bigreadr/issues
# NeedsCompilation: yes
# Packaged: 2019-10-17 10:37:52 UTC; privef
# Author: Florian Prive [aut, cre]
# Maintainer: Florian Prive <florian.prive.21@gmail.com>
# Repository: CRAN
# Date/Publication: 2019-10-18 04:50:08 UTC
