{% set version = '1.0.0' %}

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

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

source: 
  url:
    - {{ cran_mirror }}/src/contrib/tidyquant_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/tidyquant/tidyquant_{{ version }}.tar.gz
  sha256: eb20d62715911743c74e86b668379673dc737bc8b73b4dfe10ca29942ce50435

build:
  merge_build_host: True  # [win]
  number: 1

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-performanceanalytics
    - r-quandl
    - r-ttr
    - r-cli
    - r-crayon
    - r-dplyr >=0.8.3
    - r-ggplot2
    - r-httr
    - r-lazyeval
    - r-lubridate
    - r-magrittr
    - r-purrr
    - r-quantmod >=0.4_13
    - r-rlang
    - r-rstudioapi
    - r-stringr
    - r-tibble
    - r-tidyr >=1.0.0
    - r-timetk
    - r-xml2
    - r-xts
    - r-riingo
    - r-alphavantager
    - r-timedate

  run:
    - r-base
    - r-performanceanalytics
    - r-quandl
    - r-ttr
    - r-cli
    - r-crayon
    - r-dplyr >=0.8.3
    - r-ggplot2
    - r-httr
    - r-lazyeval
    - r-lubridate
    - r-magrittr
    - r-purrr
    - r-quantmod >=0.4_13
    - r-rlang
    - r-rstudioapi
    - r-stringr
    - r-tibble
    - r-tidyr >=1.0.0
    - r-timetk
    - r-xml2
    - r-xts
    - r-riingo
    - r-alphavantager
    - r-timedate

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('tidyquant')"           # [not win]
    - "\"%R%\" -e \"library('tidyquant')\""  # [win]

about: 
  home: https://github.com/business-science/tidyquant
  license: MIT
  summary: Bringing financial analysis to the 'tidyverse'. The 'tidyquant' package provides a
    convenient wrapper to various 'xts', 'zoo', 'quantmod', 'TTR' and 'PerformanceAnalytics'
    package functions and returns the objects in the tidy 'tibble' format. The main
    advantage is being able to use quantitative functions with the 'tidyverse' functions
    including 'purrr', 'dplyr', 'tidyr', 'ggplot2', 'lubridate', etc. See the 'tidyquant'
    website for more information, documentation and examples.
  license_family: MIT
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/MIT
    - LICENSE

extra:
  recipe-maintainers:
    - conda-forge/r
    - oblute
    - rluria14
    - benhuff

# The original CRAN metadata for this package was:

# Package: tidyquant
# Type: Package
# Title: Tidy Quantitative Financial Analysis
# Version: 0.5.10
# Date: 2020-01-25
# Authors@R: c( person("Matt", "Dancho", email = "mdancho@business-science.io", role = c("aut", "cre")), person("Davis", "Vaughan", email = "dvaughan@business-science.io", role = c("aut")) )
# Maintainer: Matt Dancho <mdancho@business-science.io>
# Description: Bringing financial analysis to the 'tidyverse'. The 'tidyquant' package provides a convenient wrapper to various 'xts', 'zoo', 'quantmod', 'TTR' and 'PerformanceAnalytics' package functions and returns the objects in the tidy 'tibble' format. The main advantage is being able to use quantitative functions with the 'tidyverse' functions including 'purrr', 'dplyr', 'tidyr', 'ggplot2', 'lubridate', etc. See the 'tidyquant' website for more information, documentation and examples.
# URL: https://github.com/business-science/tidyquant
# BugReports: https://github.com/business-science/tidyquant/issues
# License: MIT + file LICENSE
# Encoding: UTF-8
# LazyData: true
# Depends: R (>= 3.0.0), lubridate, PerformanceAnalytics, quantmod (>= 0.4-13)
# Imports: dplyr (>= 0.8.3), ggplot2, httr, lazyeval, magrittr, purrr, Quandl, stringr, tibble, tidyr (>= 1.0.0), timetk, TTR, xml2, xts, rlang, rstudioapi, crayon, cli
# Suggests: tidyverse, alphavantager, broom, knitr, rmarkdown, testthat, tibbletime, scales, Rblpapi, readxl
# RoxygenNote: 7.0.2
# VignetteBuilder: knitr
# NeedsCompilation: no
# Packaged: 2020-01-26 02:45:51 UTC; mdancho
# Author: Matt Dancho [aut, cre], Davis Vaughan [aut]
# Repository: CRAN
# Date/Publication: 2020-01-27 16:10:02 UTC

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