{% set version = "1.1.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: 3a826eb4700b127cc74b37f4cf47734f92f7d679a23b10b0ac3d0c91674fc3c5

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

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('cxx') }}      # [not win]
    - {{ compiler('m2w64_c') }}        # [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-glue >=1.3.0
    - r-httr
    - r-jsonlite
    - r-prettyunits
    - r-progress
    - r-rapidjsonr
    - r-tibble
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-dbi
    - r-rcpp
    - r-assertthat
    - r-bit64
    - r-curl
    - r-glue >=1.3.0
    - r-httr
    - r-jsonlite
    - r-prettyunits
    - r-progress
    - r-rapidjsonr
    - 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.1.0
# Authors@R: c( person("Hadley", "Wickham", , "hadley@rstudio.com", c("aut", "cre")), person("Kungliga Tekniska Hogskolan", role = "ctb", comment = "strptime implementation"), person("The NetBSD Foundation, Inc.", role = "ctb", comment = "gmtime implementation"), person("RStudio", role = "cph") )
# Description: Easily talk to Google's 'BigQuery' database from R.
# License: GPL-3 | file LICENSE
# URL: https://github.com/rstats-db/bigrquery
# BugReports: https://github.com/rstats-db/bigrquery/issues
# Encoding: UTF-8
# Depends: R (>= 3.1)
# Imports: assertthat, bit64, DBI, curl, glue (>= 1.3.0), httr, jsonlite, methods, prettyunits, progress, Rcpp, tibble
# Suggests: DBItest, dbplyr, dplyr (>= 0.7.0), hms, testthat, withr, covr, readr, sodium
# LinkingTo: progress, rapidjsonr, Rcpp
# LazyData: true
# RoxygenNote: 6.1.1
# Collate: 'RcppExports.R' 'auth.R' 'bigrquery.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-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' 'secret.R' 'utils.R' 'zzz.R'
# NeedsCompilation: yes
# Packaged: 2019-02-05 19:17:46 UTC; hadley
# Author: Hadley Wickham [aut, cre], Kungliga Tekniska Hogskolan [ctb] (strptime implementation), The NetBSD Foundation, Inc. [ctb] (gmtime implementation), RStudio [cph]
# Maintainer: Hadley Wickham <hadley@rstudio.com>
# Repository: CRAN
# Date/Publication: 2019-02-05 19:43:21 UTC
