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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/ccaPP_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ccaPP/ccaPP_{{ version }}.tar.gz
  sha256: 134246c12bec9b7da5be2a46ec6baec9098e91d233c23f1d9ca0a463607c08dc

build:
  merge_build_host: True  # [win]
  number: 1
  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-rcpp >=0.11.0
    - r-rcpparmadillo >=0.4.100.0
    - r-pcapp >=1.8_1
    - r-robustbase
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=0.11.0
    - r-rcpparmadillo >=0.4.100.0
    - r-pcapp >=1.8_1
    - r-robustbase

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

about:
  home: https://CRAN.R-project.org/package=ccaPP
  license: GPL-2
  summary: Canonical correlation analysis and maximum correlation via projection pursuit, as
    well as fast implementations of correlation estimators, with a focus on robust and
    nonparametric methods.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

extra:
  recipe-maintainers:
    - conda-forge/r
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr

# Package: ccaPP
# Type: Package
# Title: (Robust) Canonical Correlation Analysis via Projection Pursuit
# Version: 0.3.3
# Date: 2019-12-09
# Depends: R (>= 3.2.0), parallel, pcaPP (>= 1.8-1), robustbase
# Imports: Rcpp (>= 0.11.0)
# LinkingTo: Rcpp (>= 0.11.0), RcppArmadillo (>= 0.4.100.0)
# Suggests: knitr, mvtnorm
# VignetteBuilder: knitr
# Description: Canonical correlation analysis and maximum correlation via projection pursuit, as well as fast implementations of correlation estimators, with a focus on robust and nonparametric methods.
# License: GPL (>= 2)
# LazyLoad: yes
# Authors@R: c(person("Andreas", "Alfons", email = "alfons@ese.eur.nl", role = c("aut", "cre")), person("David", "Simcha", role = "ctb"))
# Author: Andreas Alfons [aut, cre], David Simcha [ctb]
# Maintainer: Andreas Alfons <alfons@ese.eur.nl>
# Encoding: UTF-8
# RoxygenNote: 6.1.1
# NeedsCompilation: yes
# Packaged: 2019-12-09 10:52:53 UTC; andreas
# Repository: CRAN
# Date/Publication: 2019-12-09 12:40:02 UTC
