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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/streamR_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/streamR/streamR_{{ version }}.tar.gz
  sha256: 3d1e496b387802c0f21f1b6f29fac0a4d8c2f189d3505b6dc8251421c11a9db2

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

requirements:
  host:
    - r-base
    - r-rcurl
    - r-ndjson
    - r-rjson
  run:
    - r-base
    - r-rcurl
    - r-ndjson
    - r-rjson

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

about:
  home: https://CRAN.R-project.org/package=streamR
  license: GPL-2
  summary: Functions to access Twitter's filter, sample, and user streams, and to parse the output
    into data frames.
  license_family: GPL2
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

extra:
  recipe-maintainers:
    - mxr-conda
    - oblute
    - rluria14
    - ndmaxar
    - conda-forge/r

# The original CRAN metadata for this package was:

# Package: streamR
# Title: Access to Twitter Streaming API via R
# Description: Functions to access Twitter's filter, sample, and user streams, and to parse the output into data frames.
# Version: 0.4.5
# Author: Pablo Barbera <pablo.barbera@nyu.edu>
# Maintainer: Pablo Barbera <pablo.barbera@nyu.edu>
# Depends: R (>= 2.12.0), RCurl, rjson, ndjson
# Suggests: ROAuth (>= 0.9.0)
# License: GPL-2
# Collate: 'filterStream.R' 'parseTweets.R' 'sampleStream.R' 'userStream.R' 'streamR-package.R' 'readTweets.R'
# RoxygenNote: 6.0.1
# NeedsCompilation: no
# Packaged: 2018-12-09 18:15:55 UTC; pablobarbera
# Repository: CRAN
# Date/Publication: 2018-12-09 20:00:03 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
