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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/bigrquery_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/bigrquery/bigrquery_{{ version }}.tar.gz
  sha256: 9ea556bb2329dcffec96b7008855733e5b8e3135cdef4edbb07ed2b2b11e0057

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-dbi
    - r-rcpp
    - r-assertthat
    - r-bit64
    - r-curl
    - r-gargle >=0.3.0
    - r-glue >=1.3.0
    - r-httr
    - r-jsonlite
    - r-prettyunits
    - r-progress
    - r-rapidjsonr
    - r-rlang
    - r-tibble
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-dbi
    - r-rcpp
    - r-assertthat
    - r-bit64
    - r-curl
    - r-gargle >=0.3.0
    - r-glue >=1.3.0
    - r-httr
    - r-jsonlite
    - r-prettyunits
    - r-progress
    - r-rapidjsonr
    - r-rlang
    - r-tibble

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

about:
  home: https://github.com/rstats-db/bigrquery
  license: GPL-3
  summary: Easily talk to Google's 'BigQuery' database from R.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

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

# Package: bigrquery
# Title: An Interface to Google's 'BigQuery' 'API'
# Version: 1.2.0
# Authors@R: c( person("Hadley", "Wickham", , "hadley@rstudio.com", c("aut", "cre"), comment = c(ORCID = "0000-0003-4757-117X")), person("Jennifer", "Bryan", , "jenny@rstudio.com", "aut", comment = c(ORCID = "0000-0002-6983-2759")), person("Kungliga Tekniska Hogskolan", role = "ctb", comment = "strptime implementation"), person("The NetBSD Foundation, Inc.", role = "ctb", comment = "gmtime implementation"), person("RStudio", role = c("cph", "fnd")) )
# Description: Easily talk to Google's 'BigQuery' database from R.
# License: GPL-3
# URL: https://github.com/rstats-db/bigrquery
# BugReports: https://github.com/rstats-db/bigrquery/issues
# Depends: R (>= 3.2)
# Imports: assertthat, bit64, curl, DBI, gargle (>= 0.3.0), glue (>= 1.3.0), httr, jsonlite, methods, prettyunits, progress, Rcpp, rlang, tibble
# Suggests: covr, DBItest, dbplyr, dplyr (>= 0.7.0), hms, readr, sodium, testthat (>= 2.1.0), withr
# LinkingTo: progress, rapidjsonr, Rcpp
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 6.1.1
# Collate: 'RcppExports.R' 'bigrquery.R' 'bq-auth.R' 'bq-dataset.R' 'bq-download.R' 'bq-field.R' 'bq-job.R' 'bq-param.R' 'bq-parse.R' 'bq-perform.R' 'bq-project.R' 'bq-projects.R' 'bq-query.R' 'bq-refs.R' 'bq-request.R' 'bq-table.R' 'bq-test.R' 'camelCase.R' 'dbi-driver.R' 'dbi-connection.R' 'dbi-result.R' 'dplyr.R' 'gs-object.R' 'old-auth.R' 'old-dataset.R' 'old-id.R' 'old-job-extract.R' 'old-job-query.R' 'old-job-upload.R' 'old-job.R' 'old-project.R' 'old-projects.R' 'old-query.R' 'old-table.R' 'old-tabledata.R' 'utils.R' 'zzz.R'
# NeedsCompilation: yes
# Packaged: 2019-07-01 23:40:30 UTC; jenny
# Author: Hadley Wickham [aut, cre] (<https://orcid.org/0000-0003-4757-117X>), Jennifer Bryan [aut] (<https://orcid.org/0000-0002-6983-2759>), Kungliga Tekniska Hogskolan [ctb] (strptime implementation), The NetBSD Foundation, Inc. [ctb] (gmtime implementation), RStudio [cph, fnd]
# Maintainer: Hadley Wickham <hadley@rstudio.com>
# Repository: CRAN
# Date/Publication: 2019-07-02 05:20:57 UTC
