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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/filesstrings_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/filesstrings/filesstrings_{{ version }}.tar.gz
  sha256: fc319946fe4c48ba957b560154a187be1a8424fda4ea51248f1050cf82168ac6

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

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('cxx') }}      # [not win]
    - {{native}}toolchain        # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}make
    - {{posix}}sed               # [win]
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-rcpp
    - r-checkmate
    - r-magrittr
    - r-matrixstats
    - r-ore >=1.4.0
    - r-purrr
    - r-rlang
    - r-strex >=0.1.2
    - r-stringr
    - r-tibble
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-rcpp
    - r-checkmate
    - r-magrittr
    - r-matrixstats
    - r-ore >=1.4.0
    - r-purrr
    - r-rlang
    - r-strex >=0.1.2
    - r-stringr
    - r-tibble

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

about:
  home: https://www.github.com/rorynolan/filesstrings
  license: GPL-3
  summary: This started out as a package for file and string manipulation.  Since then, the 'fs'
    and 'strex' packages emerged, offering functionality previously given by this package
    (but it's done better in these new ones).  Those packages have hence almost pushed
    'filesstrings' into extinction.  However, it still has a small number of unique,
    handy file manipulation  functions which can be seen in the vignette.  One example
    is a function to remove spaces from all file names in a  directory.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: filesstrings
# Type: Package
# Title: Handy File and String Manipulation
# Version: 3.0.0
# Authors@R: c(person("Rory", "Nolan", email = "rorynoolan@gmail.com",  role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0002-5239-4043")), person("Sergi", "Padilla-Parra", email = "spadilla@well.ox.ac.uk",  role = "ths", comment = c(ORCID = "0000-0002-8010-9481")))
# Maintainer: Rory Nolan <rorynoolan@gmail.com>
# Description: This started out as a package for file and string manipulation.  Since then, the 'fs' and 'strex' packages emerged, offering functionality previously given by this package (but it's done better in these new ones).  Those packages have hence almost pushed 'filesstrings' into extinction.  However, it still has a small number of unique, handy file manipulation  functions which can be seen in the vignette.  One example is a function to remove spaces from all file names in a  directory.
# License: GPL-3
# Encoding: UTF-8
# LazyData: true
# Imports: magrittr, tools, purrr, checkmate, strex (>= 0.1.2), matrixStats, Rcpp, ore (>= 1.4.0), tibble, rlang
# RoxygenNote: 6.1.0
# Suggests: testthat, covr, knitr, rmarkdown, spelling
# Depends: stringr
# URL: https://www.github.com/rorynolan/filesstrings
# BugReports: https://www.github.com/rorynolan/filesstrings/issues
# VignetteBuilder: knitr
# LinkingTo: Rcpp
# Language: en-US
# NeedsCompilation: yes
# Packaged: 2018-10-30 19:08:21 UTC; rnolan
# Author: Rory Nolan [aut, cre, cph] (<https://orcid.org/0000-0002-5239-4043>), Sergi Padilla-Parra [ths] (<https://orcid.org/0000-0002-8010-9481>)
# Repository: CRAN
# Date/Publication: 2018-10-30 22:40:03 UTC
