{% set pfx = 'r-' %}
{% set version = '3.5.1' %}
{% set rc_version = '3.4.3' %}
{% set ml_version = '9.3.0' %}
{% set build_mrclient = False %}

{% set url = 'https://mran.blob.core.windows.net/install/mro/'+version+'/microsoft-r-open-'+version+'.exe' %}  # [win64]
{% set fn = 'microsoft-r-open-'+version+'.exe' %}  # [win64]
{% set shasum = '30de2b2fefed091452695e03c805fcefcef00ab30b3df04363b72d9d44bac494' %}  # [win64]

{% set url = 'https://mran.blob.core.windows.net/install/mro/'+version+'/microsoft-r-open-'+version+'.tar.gz' %}  # [linux64]
{% set fn = 'microsoft-r-open-'+version+'.tar.gz' %}  # [linux64]
{% set shasum = '9791aafb94844544930a1d896f2bf1404205dbf2ec059c51ae75ebb3a31b3792' %}  # [linux64]

{% set url = 'https://mran.blob.core.windows.net/install/mro/'+version+'/microsoft-r-open-'+version+'.pkg' %}  # [osx]
{% set fn = 'microsoft-r-open-'+version+'.pkg' %}  # [osx]
{% set shasum = '95739c07d4fb90f9a3aef19269dd4939f368457d928328adf5126b30c4229601' %}  # [osx]

package:
  name: mro-suite
  version: {{ version }}

source:
  - url: {{ url }}
    fn: {{ fn }}
    sha256: {{ shasum }}
    folder: unpack
  - url: https://repo.continuum.io/pkgs/free/linux-64/mkl-2017.0.1-0.tar.bz2  # [linux64]
    sha256: 89be3b0077bd1b7cc75feaec6eec8e33b0b118f7f9056d15be5d3ead05bdf9e9  # [linux64]
    folder: anaconda-mkl  # [linux64]
#  - url: https://packages.microsoft.com/rhel/6/prod/microsoft-r-client-packages-{{ rc_version }}.rpm  # [linux64]
# Could use debs for Ubuntu 14.04 if necessary here.
  - url: https://packages.microsoft.com/rhel/6/prod/microsoft-r-client-packages-{{ rc_version }}.rpm  # [linux64]
    sha256: 09ac75ba26bb7ad89f6aada1c8783120efcb5b8e8906d2791a41d77c80a450fe  # [linux64]
    # This was unpack-r-client in https://raw.githubusercontent.com/AnacondaRecipes/aggregateMRO/28f9d65b1c2ef96bf8942eb73289879c1e4ecc3c/mro-feedstock/recipe/meta.yaml
    folder: unpack/opt  # [linux64]
#  - url: https://packages.microsoft.com/sles/11/prod/microsoft-r-client-packages-{{ rc_version }}.rpm  # [linux64]
#    sha256: 0fedaec862282a58974589a93f413ef1f665203fd8a16fc1be24ac3b4b7eeee6  # [linux64]
#    folder: unpack-r-client  # [linux64]
#  - url: ~/conda/microsoft-r-client-mml-3.4.3.rpm  # [linux64]
#    sha256: 6b0fb7b4071324a58f57d2895082101c068c15eb00a82134cd81469947fde861  # [linux64]
#    folder: unpack-r-client-mml  # [linux64]
  - url: https://packages.microsoft.com/rhel/7/prod/microsoft-mlserver-mml-r-{{ ml_version }}.rpm  # [linux64]
    sha256: bf03d183575b64dc663b00537306131cc6b3fac5cbfeca5edeaaaaf97ecb6294  # [linux64]
    folder: unpack  # [linux64]
  - url: https://packages.microsoft.com/rhel/7/prod/microsoft-mlserver-mlm-r-{{ ml_version }}.rpm  # [linux64]
    sha256: 36d9dd3718a81466880aaa8653797dd92832a3278c691f65d8c62ac8699764f5  # [linux64]
    folder: unpack/mlm-training-models/opt  # [linux64]
#  - url: https://packages.microsoft.com/rhel/6/prod/microsoft-r-client-mml-{{ rc_version }}.rpm  # [linux64]
#  - url: https://packages.microsoft.com/ubuntu/14.04/prod/pool/main/m/microsoft-mlserver-mml-r-{{ ml_version }}/microsoft-mlserver-mml-r-{{ ml_version }}.deb  # [linux64]
#    sha256: 2861b9b0bc31b3e9f2156018ba0b81f36f6e773ac099e494cf6fbf082f18f8a8  # [linux64]
#    folder: unpack-r-client  # [linux64]

#  - url: ~/conda/microsoft-r-client-mlm-3.4.3.rpm  # [linux64]
#    sha256: f832ff1df02666f65ee14e53feff69866fb8fa713e14ea1fa73373d13c5658e4  # [linux64]
#    folder: unpack-r-client-mlm  # [linux64]
#  - url: https://packages.microsoft.com/ubuntu/14.04/prod/pool/main/m/microsoft-mlserver-mlm-r-{{ ml_version }}/microsoft-mlserver-mlm-r-{{ ml_version }}.deb  # [linux64]
#    sha256: c4dfc37df142cbe2026d89fa9a1dda46f41a4f5490a16dc9e5c7cae32948b144  # [linux64]
#    folder: mlm-training-models  # [linux64]


#  - url: https://rserverdistribution.azureedge.net/production/RClient/3.4.1.0/1360/1033/0900ccb335c04a048f26b4bb3320aef8/RClientSetup.exe  # [win64]
  - url: https://rserverdistribution.azureedge.net/production/RClient/9.3.0/2606/1033/7454f336f971415281296299baf7fa73/RClientSetup.exe  # [win64]
#    sha256: 011cb6eddb4ad58cb8c3de4032a2243187c879eefa7cf82896dbdc3823c1944f  # [win64]
    sha256: 44dca045e6e5e8083377ee17aedcf2ca0ccd8ac9518a7f173ad934bd127dad5a  # [win64]
    folder: unpack-r-client  # [win64]
#  - url: ~/conda/RClientSetup.exe  # [win64]
#    sha256: 44dca045e6e5e8083377ee17aedcf2ca0ccd8ac9518a7f173ad934bd127dad5a  # [win64]
#    folder: unpack-r-client  # [win64]
  - url: https://github.com/wixtoolset/wix3/releases/download/wix311rtm/wix311-binaries.zip  # [win64]
    sha256: da034c489bd1dd6d8e1623675bf5e899f32d74d6d8312f8dd125a084543193de                 # [win64]
    folder: wix                                                                              # [win64]
  # The normal RevoUtils looks in the Windows Registry to determine if it's the Client or the Server version.
  # We do not write to the Windows Registry so were provided with this one instead.
  # - url: ./RevoUtils_Windows_10.0.8.zip                                                      # [win64]
  #   sha256: b0b4fd446fe4251f0962066aba8623da4bbfb682616188b0f4792ec0e05fdb7e                 # [win64]
  #   folder: RevoUtils                                                                        # [win64]
  # - url: ./RevoUtils_Linux_10.0.8.tar.gz                                                     # [linux64]
  #   sha256: 10b8d1aca460ae345c4194591ac3aa215947b47ddfd93a3a0bd2aa24b377eb60                 # [linux64]
  #   folder: RevoUtils                                                                        # [linux64]
  # - url: ./RevoUtils_Mac_10.0.8.tar.gz                                                       # [osx]
  #   sha256: 04fb3dc63e56042b27a0e08751a5eb497628fe045d0b0d326b9c48ccc297c551                 # [osx]
  #   folder: RevoUtils                                                                        # [osx]
  - url: http://vault.centos.org/5.11/os/x86_64/CentOS/libpng-1.2.10-17.el5_8.x86_64.rpm     # [linux64]
    folder: libpng-centos5                                                                   # [linux64]

build:
  merge_build_host: True

requirements:
  build:
    - python-libarchive-c
    - posix  # [win]
    - m2-p7zip  # [win]
    - m2-patch  # [win]
    - curl  # [unix]
  host:
    - m2w64-toolchain  # [win]
    - m2-base  # [win]

outputs:
  - name: mro-base
    version: {{ version }}
    script: install-mro-base.sh
    activate_in_script: True
    build:
      merge_build_host: True
      number: 1  # [osx]
      rpaths:
        - lib/R/lib/
        - lib/
      no_link:
        # These files are modified by R CMD javareconf and can
        # point to different Java implementations in each env.
        - lib/R/etc/Makeconf
        - lib/R/etc/ldpaths
        - lib/R/etc/javaconf
        - lib/R/etc/x64/Makeconf
        - lib/R/etc/x64/ldpaths
        - lib/R/etc/x64/javaconf
      run_exports:
        - {{ pin_subpackage('mro-base', min_pin='x.x.x', max_pin='x.x.x') }}
      missing_dso_whitelist:
        - /opt/X11/lib/libICE.6.dylib
        - /opt/X11/lib/libSM.6.dylib
        - /opt/X11/lib/libX11.6.dylib
        - /opt/X11/lib/libXext.6.dylib
        - /opt/X11/lib/libXmu.6.dylib
        - /opt/X11/lib/libXrender.1.dylib
        - /opt/X11/lib/libXss.1.dylib
        - /opt/X11/lib/libXt.6.dylib
    requirements:
      build:
        - m2-base   # [win]
        - m2-patch  # [win]
        - curl      # [unix]
        - make      # [not win]
        - {{ compiler('fortran') }}  # [not win]
        - {{ compiler('cxx') }}  # [not win]
        - {{ compiler('c') }}  # [not win]
        - {{ cdt('xorg-x11-proto-devel') }}  # [linux]
        - {{ cdt('libxrender') }}            # [linux]
        - {{ cdt('libxext') }}               # [linux]
        - {{ cdt('libuuid') }}               # [linux]
        - {{ cdt('libsm-devel') }}           # [linux]
        - {{ cdt('libice-devel') }}          # [linux]
        - {{ cdt('libx11-devel') }}          # [linux]
        - {{ cdt('libxft') }}                # [linux]
        - {{ cdt('libxt') }}                 # [linux]
        - {{ cdt('libxt-devel') }}           # [linux]
        - {{ cdt('libxcb') }}                # [linux]
        - {{ cdt('libxau') }}                # [linux]
        - {{ cdt('java-1.7.0-openjdk') }}    # [linux]
      host:
        - llvm-openmp >=4.0.1  # [osx]
        - expat  # [osx]
        - libcurl  # [osx]
        - libiconv  # [osx]
        - ncurses  # [osx]
        - zlib  # [linux]
        - pango  # [linux]
        - cairo  # [linux]
        - glib  # [linux]
      run:
        - _r-mutex 1.* mro_2
        # Needed by R CMD javareconf
        - make                               # [not win]
        - {{ compiler('fortran') }}  # [not win]
        - {{ compiler('cxx') }}  # [not win]
        - {{ compiler('c') }}  # [not win]
        - llvm-openmp >=4.0.1  # [osx]
        - curl >=7.58.0  # [not win]
      test:
        commands:
          - $R -e "print('Hello World!')"           # [not win]
          - "\"%R%\" -e \"print('Hello World!')\""  # [win]
    about:
      home: http://www.r-project.org/
      license: GPL-2 | GPL-3
      license_family: GPL3
      license_file: COPYING
      summary: 'R is a free software environment for statistical computing and graphics.'

  - name: r-kernsmooth
    version: '2.23_15'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6
        - /lib/libm.so.6
        - libc.so.6
        - libm.so.6

    # Suggests: MASS
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - libgfortran >=3.0.1  # [osx]
      run:
        - mro-base {{ version }}
        - libgfortran >=3.0.1  # [osx]

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

    about:
      home: https://mran.microsoft.com/package/KernSmooth
      license: Unlimited
      summary: 'Functions for kernel smoothing (and density estimation) corresponding to the book:  Wand,
        M.P. and Jones, M.C. (1995) "Kernel Smoothing".'
      
      license_family: MIT

  - name: r-mass
    version: '7.3_49'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6

    # Suggests: lattice, nlme, nnet, survival
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: http://www.stats.ox.ac.uk/pub/MASS4/
      license: GPL-2 | GPL-3
      summary: Functions and datasets to support Venables and Ripley, "Modern Applied Statistics
        with S" (4th edition, 2002).
      license_family: GPL3

  - name: r-matrix
    version: '1.2_14'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6
        - /lib/libm.so.6
        - libc.so.6
        - libm.so.6

    # Suggests: expm, MASS
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-lattice', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - libgfortran >=3.0.1  # [osx]
      run:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-lattice', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - libgfortran >=3.0.1  # [osx]

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

    about:
      home: http://Matrix.R-forge.R-project.org/
      license: GPL (>= 2) | file LICENCE
      summary: A rich hierarchy of matrix classes, including triangular, symmetric, and diagonal
        matrices, both dense and sparse and with pattern, logical and numeric entries.   Numerous
        methods for and operations on these matrices, using 'LAPACK' and 'SuiteSparse' libraries.
      license_family: GPL3

  - name: r-microsoftr
    version: '3.5.0.108'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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


    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://mran.microsoft.com/package/MicrosoftR
      license: file LICENSE
      summary: Umbrella package with licenses and notices for all Microsoft R packages
      license_family: OTHER

  - name: r-r6
    version: '2.2.2'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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

    # Suggests: knitr, microbenchmark, pryr, testthat, ggplot2, scales
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://github.com/wch/R6/
      license: MIT + file LICENSE
      summary: The R6 package allows the creation of classes with reference semantics, similar to
        R's built-in reference classes. Compared to reference classes, R6 classes are simpler
        and lighter-weight, and they are not built on S4 classes so they do not require
        the methods package. These classes allow public and private members, and they support
        inheritance, even when the classes are defined in different packages.
      license_family: MIT

  - name: r-runit
    version: '0.4.26'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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


    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://sourceforge.net/projects/runit/
      license: GPL-2
      summary: R functions implementing a standard Unit Testing framework, with additional code inspection
        and report generation tools
      license_family: GPL2

  - name: r-revoioq
    version: '10.0.0'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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

    # Suggests: RevoUtils
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-runit', min_pin='0.4.26', max_pin=None) }}
      run:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-runit', min_pin='0.4.26', max_pin=None) }}

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

    about:
      home: https://mran.microsoft.com/package/RevoIOQ
      license: GPL-2
      summary: Test suite for Microsoft R Services.
      license_family: GPL2

  - name: r-revomods
    version: '11.0.0'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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


    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://mran.microsoft.com/package/RevoMods
      license: GPL-2
      summary: Microsoft modifications and extensions to standard R functions
      license_family: GPL2

  - name: r-revoutils
    version: '11.0.0'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:
      rpaths:
        - lib/R/lib/
        - lib/

    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://mran.microsoft.com/package/RevoUtils
      license: GPL-2
      summary: Utility functions for Microsoft R
      license_family: GPL2

  - name: r-revoutilsmath
    version: '11.0.0'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:
      skip: True  # [osx]
      rpaths:
        - lib/R/lib/
        - lib/
      # Necesssary because we rename this to libRblas.so.mkl and to
      # libRblas.so in the post-link then back again in post-unlink
      missing_dso_whitelist:
        - libRblas.so
        - /lib64/ld-linux-x86-64.so.2
        - /lib/libc.so.6
        - /lib/libm.so.6
        - libc.so.6
        - libm.so.6
        - /lib/libdl.so.2
        - /lib/libpthread.so.0

    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - libgcc-ng >=7.2.0  # [linux]
      run:
        - mro-base {{ version }}
        - libgcc-ng >=7.2.0  # [linux]

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

    about:
      home: https://mran.microsoft.com/package/RevoUtilsMath
      license: file LICENSE
      summary: Utility functions for managing math threading.
      license_family: OTHER

  - name: r-boot
    version: '1.3_20'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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

    # Suggests: MASS, survival
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://mran.microsoft.com/package/boot
      license: Unlimited
      summary: Functions and datasets for bootstrapping from the book "Bootstrap Methods and Their
        Application" by A. C. Davison and  D. V. Hinkley (1997, CUP), originally written
        by Angelo Canty for S.
      license_family: MIT

  - name: r-checkpoint
    version: '0.4.4'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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

    # Suggests: knitr, rmarkdown, testthat(>= 0.9), MASS, darts, mockery, cli
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://github.com/RevolutionAnalytics/checkpoint
      license: GPL-2
      summary: The goal of checkpoint is to solve the problem of package reproducibility in R. Specifically,
        checkpoint allows you to install packages as they existed on CRAN on a specific
        snapshot date as if you had a CRAN time machine. To achieve reproducibility, the
        checkpoint() function installs the packages required or called by your project and
        scripts to a local library exactly as they existed at the specified point in time.
        Only those packages are available to your project, thereby avoiding any package
        updates that came later and may have altered your results. In this way, anyone using
        checkpoint's checkpoint() can ensure the reproducibility of your scripts or projects
        at any time. To create the snapshot archives, once a day (at midnight UTC) Microsoft
        refreshes the Austria CRAN mirror on the "Microsoft R Archived Network" server (<https://mran.microsoft.com/>).
        Immediately after completion of the rsync mirror process, the process takes a snapshot,
        thus creating the archive. Snapshot archives exist starting from 2014-09-17.
      license_family: GPL2

  - name: r-class
    version: '7.3_14'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6

    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-mass', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
      run:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-mass', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}

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

    about:
      home: http://www.stats.ox.ac.uk/pub/MASS4/
      license: GPL-2 | GPL-3
      summary: Various functions for classification, including k-nearest neighbour, Learning Vector
        Quantization and Self-Organizing Maps.
      license_family: GPL3

  - name: r-cluster
    version: '2.0.7_1'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6
        - /lib/libm.so.6
        - libc.so.6
        - libm.so.6

    # Suggests: MASS, Matrix
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - libgfortran >=3.0.1  # [osx]
      run:
        - mro-base {{ version }}
        - libgfortran >=3.0.1  # [osx]

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

    about:
      home: https://mran.microsoft.com/package/cluster
      license: GPL (>= 2)
      summary: Methods for Cluster analysis.  Much extended the original from Peter Rousseeuw, Anja
        Struyf and Mia Hubert, based on Kaufman and Rousseeuw (1990) "Finding Groups in
        Data".
      license_family: GPL3

  - name: r-codetools
    version: '0.2_15'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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


    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://mran.microsoft.com/package/codetools
      license: GPL
      summary: Code analysis tools for R.
      license_family: GPL

  - name: r-curl
    version: '3.2'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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

      missing_dso_whitelist:
        - /lib/librt.so.1
        - /lib/libc.so.6
        - librt.so.1
        - libc.so.6

    # Suggests: testthat (>= 1.0.0), knitr, jsonlite, rmarkdown, magrittr, httpuv, webutils
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - libcurl  # [osx]
      run:
        - mro-base {{ version }}

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

    about:
      home: https://github.com/jeroen/curl#readme (devel) https://curl.haxx.se/libcurl/ (upstream)
      license: MIT + file LICENSE
      summary: The curl() and curl_download() functions provide highly configurable drop-in replacements
        for base url() and download.file() with better performance, support for encryption
        (https, ftps), gzip compression, authentication, and other 'libcurl' goodies. The
        core of the package implements a framework for performing fully customized requests
        where data can be processed either in memory, on disk, or streaming via the callback
        or connection interfaces. Some knowledge of 'libcurl' is recommended; for a more-user-friendly
        web client see the 'httr' package which builds on this package with http specific
        tools and logic.
      license_family: MIT

  - name: r-deployrrserve
    version: '9.0.0'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:
      skip: True  # [osx]
      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6
        - /lib/libm.so.6
        - libc.so.6
        - libm.so.6
        - /lib/libcrypt.so.1
        - /lib/libdl.so.2
        - /lib/libpthread.so.0
        - /lib/librt.so.1

    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - libstdcxx-ng >=7.2.0  # [linux]
        - libgcc-ng >=7.2.0  # [linux]
      run:
        - mro-base {{ version }}
        - libstdcxx-ng >=7.2.0  # [linux]
        - libgcc-ng >=7.2.0  # [linux]

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

    about:
      home: http://www.rforge.net/Rserve/
      license: GPL version 2
      summary: Rserve acts as a socket server (TCP/IP or local sockets)  which allows binary requests
        to be sent to R. Every connection has a separate workspace and working directory.
        Client-side implementations are available for popular languages such as C/C++ and
        Java, allowing any application to use facilities of R without the need of linking
        to R code. Rserve supports remote connection, user authentication and file transfer.
        A simple R client is included in this package as well.
      license_family: GPL2

  - name: r-doparallel
    version: '1.0.13'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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

    # Suggests: caret, mlbench, rpart
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-foreach', min_pin='1.2.0', max_pin=None) }}
        - {{ pin_subpackage('r-iterators', min_pin='1.0.0', max_pin=None) }}
      run:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-foreach', min_pin='1.2.0', max_pin=None) }}
        - {{ pin_subpackage('r-iterators', min_pin='1.0.0', max_pin=None) }}

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

    about:
      home: https://mran.microsoft.com/package/doParallel
      license: GPL-2
      summary: Provides a parallel backend for the %dopar% function using the parallel package.
      license_family: GPL2

  - name: r-foreach
    version: '1.5.0'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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

    # Suggests: randomForest, future
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-codetools', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-iterators', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
      run:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-codetools', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-iterators', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}

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

    about:
      home: https://mran.microsoft.com/package/foreach
      license: Apache License (== 2.0)
      summary: Support for the foreach looping construct.  Foreach is an idiom that allows for iterating
        over elements in a collection, without the use of an explicit loop counter.  This
        package in particular is intended to be used for its return value, rather than for
        its side effects.  In that sense, it is similar to the standard lapply function,
        but doesn't require the evaluation of a function.  Using foreach without side effects
        also facilitates executing the loop in parallel.
      license_family: APACHE

  - name: r-foreign
    version: '0.8_70'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6


    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://mran.microsoft.com/package/foreign
      license: GPL (>= 2)
      summary: Reading and writing data stored by some versions of 'Epi Info', 'Minitab', 'S', 'SAS',
        'SPSS', 'Stata', 'Systat', 'Weka', and for reading and writing some 'dBase' files.
      license_family: GPL3

  - name: r-iterators
    version: '1.0.10'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

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

    # Suggests: RUnit, foreach
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://mran.microsoft.com/package/iterators
      license: Apache License (== 2.0)
      summary: Support for iterators, which allow a programmer to traverse through all the elements
        of a vector, list, or other collection of data.
      license_family: APACHE

  - name: r-jsonlite
    version: '1.5'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6

    # Suggests: httr, curl, plyr, testthat, knitr, rmarkdown, R.rsp, sp
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://arxiv.org/abs/1403.2805, https://www.opencpu.org/posts/jsonlite-a-smarter-json-encoder
      license: MIT + file LICENSE
      summary: A fast JSON parser and generator optimized for statistical data and the web. Started
        out as a fork of 'RJSONIO', but has been completely rewritten in recent versions.
        The package offers flexible, robust, high performance tools for working with JSON
        in R and is particularly powerful for building pipelines and interacting with a
        web API. The implementation is based on the mapping described in the vignette (Ooms,
        2014). In addition to converting JSON data from/to R objects, 'jsonlite' contains
        functions to stream, validate, and prettify JSON data. The unit tests included with
        the package verify that all edge cases are encoded and decoded consistently for
        use with dynamic data in systems and applications.
      license_family: MIT

  - name: r-lattice
    version: '0.20_35'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6

    # Suggests: KernSmooth, MASS, latticeExtra
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: http://lattice.r-forge.r-project.org/
      license: GPL (>= 2)
      summary: A powerful and elegant high-level data visualization system inspired by Trellis graphics,
        with an emphasis on multivariate data. Lattice is sufficient for typical graphics
        needs, and is also flexible enough to handle most nonstandard requirements. See
        ?Lattice for an introduction.
      license_family: GPL3

  - name: r-mgcv
    version: '1.8_23'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6
        - /lib/libm.so.6
        - libc.so.6
        - libm.so.6
        - /lib/libpthread.so.0

    # Suggests: splines, parallel, survival, MASS
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-matrix', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-nlme', min_pin='3.1_64', max_pin=None) }}
        - libgcc-ng >=7.2.0  # [linux]
        - libgfortran >=3.0.1  # [osx]
        - llvm-openmp >=4.0.1  # [osx]
      run:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-matrix', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-nlme', min_pin='3.1_64', max_pin=None) }}
        - libgcc-ng >=7.2.0  # [linux]
        - libgfortran >=3.0.1  # [osx]
        - llvm-openmp >=4.0.1  # [osx]

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

    about:
      home: https://mran.microsoft.com/package/mgcv
      license: GPL (>= 2)
      summary: Generalized additive (mixed) models, some of their extensions and  other generalized
        ridge regression with multiple smoothing  parameter estimation by (Restricted) Marginal
        Likelihood,  Generalized Cross Validation and similar. Includes a gam()  function,
        a wide variety of smoothers, JAGS support and  distributions beyond the exponential
        family.
      license_family: GPL3

  - name: r-nlme
    version: '3.1_137'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6
        - /lib/libm.so.6
        - libc.so.6
        - libm.so.6

    # Suggests: Hmisc, MASS
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-lattice', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - libgfortran >=3.0.1  # [osx]
      run:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-lattice', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - libgfortran >=3.0.1  # [osx]

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

    about:
      home: https://mran.microsoft.com/package/nlme
      license: GPL (>= 2) | file LICENCE
      summary: Fit and compare Gaussian linear and nonlinear mixed-effects models.
      license_family: GPL3

  - name: r-nnet
    version: '7.3_12'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6

    # Suggests: MASS
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: http://www.stats.ox.ac.uk/pub/MASS4/
      license: GPL-2 | GPL-3
      summary: Software for feed-forward neural networks with a single hidden layer, and for multinomial
        log-linear models.
      license_family: GPL3

  - name: r-png
    version: '0.1_7'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6

    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: http://www.rforge.net/png/
      license: GPL-2 | GPL-3
      summary: This package provides an easy and simple way to read, write and display bitmap images
        stored in the PNG format. It can read and write both files and in-memory raw vectors.
      license_family: GPL3

  - name: r-rpart
    version: '4.1_13'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6

    # Suggests: survival
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: https://mran.microsoft.com/package/rpart
      license: GPL-2 | GPL-3
      summary: Recursive partitioning for classification,  regression and survival trees.  An implementation
        of most of the  functionality of the 1984 book by Breiman, Friedman, Olshen and
        Stone.
      license_family: GPL3

  - name: r-spatial
    version: '7.3_11'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6

    # Suggests: MASS
    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
      run:
        - mro-base {{ version }}

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

    about:
      home: http://www.stats.ox.ac.uk/pub/MASS4/
      license: GPL-2 | GPL-3
      summary: Functions for kriging and point pattern analysis.
      license_family: GPL3

  - name: r-survival
    version: '2.41_3'
    script: install-r-package.sh
    # This is required to make R link correctly on Linux.
    build:

      rpaths:
        - lib/R/lib/
        - lib/
      missing_dso_whitelist:
        - /lib/libc.so.6

    requirements:
      build:
        - m2-base  # [win]
      host:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-matrix', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
      run:
        - mro-base {{ version }}
        - {{ pin_subpackage('r-matrix', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}

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

    about:
      home: https://github.com/therneau/survival
      license: LGPL (>= 2)
      summary: Contains the core survival analysis routines, including definition of Surv objects,  Kaplan-Meier
        and Aalen-Johansen (multi-state) curves, Cox models, and parametric accelerated
        failure time models.
      license_family: LGPL

{% if build_mrclient == True %}

  - name: r-mrclient  # [linux or win]
    version: {{ rc_version }}  # [linux or win]
    script: install-r-mrclient.sh  # [linux or win]
    build:  # [linux or win]
      missing_dso_whitelist:  # [linux or win]
        - libmpiCC.so  # [linux or win]
        - libcoll.so  # [linux or win]
        - librxmpiCC.so  # [linux or win]
        - libmpio.so.1  # [linux or win]
        - libmpi.so.1  # [linux or win]
        - libmtmpi.so.1  # [linux or win]
        - /lib64/ld-linux-x86-64.so.2
        - /lib/libc.so.6
        - /lib/libm.so.6
        - libc.so.6
        - libm.so.6
        - /lib/libdl.so.2
        - /lib/libpthread.so.0
    requirements:  # [linux or win]
      host:  # [linux or win]
        - mro-base {{ version }}  # [linux or win]
        # Gotten from unpacking a broken package then:
        # find . -name DESCRIPTION -exec cat {} \; | grep Imports -A2
        - {{ pin_subpackage('r-microsoftr', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-revoutilsmath', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-curl', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-jsonlite', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-r6', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        # - {{ pin_subpackage('r-tools', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        # - {{ pin_subpackage('r-stats', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        # - {{ pin_subpackage('r-methods', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-iterators', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-foreach', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-rpart', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-lattice', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-revomods', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - libstdcxx-ng >=7.2.0  # [linux]
        - libgcc-ng >=7.2.0  # [linux]
        - libcurl  # [linux]
        - libuuid  # [linux]
        - zlib  # [linux]
        - unixodbc  # [linux]
        - openssl  # [linux]
      run:  # [linux or win]
        - {{ pin_subpackage('r-microsoftr', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-revoutilsmath', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-curl', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-jsonlite', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-r6', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        # - {{ pin_subpackage('r-tools', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        # - {{ pin_subpackage('r-stats', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        # - {{ pin_subpackage('r-methods', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-iterators', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-foreach', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-rpart', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-lattice', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-revomods', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - mro-base {{ version }}  # [linux or win]
        - libstdcxx-ng >=7.2.0  # [linux]
        - libgcc-ng >=7.2.0  # [linux]
    test:  # [linux or win]
      files:  # [linux or win]
        - tests/Flight_Delays_Sample.csv  # [linux or win]
        - tests/Weather_Sample.csv  # [linux or win]
        - tests/test-mrclient-incomplete.R  # [linux or win]
        - tests/test-mrclient.R  # [linux or win]
      commands:  # [linux or win]
        # You cannot use WARNING<colon> here without causing conda-build to die in _trim_None_strings
        - cd tests  # [linux or win]
        - Rscript test-mrclient.R || echo "WARNING .. Ignoring failure of test-mrclient.R, will test an incomplete version instead"  # [linux]
        - Rscript test-mrclient-incomplete.R  # [linux]
        - Rscript test-mrclient.R  # [win]
    about:  # [linux or win]
      home: https://docs.microsoft.com/en-us/machine-learning-server/r-client/what-is-microsoft-r-client  # [linux or win]
      license: Proprietary  # [linux or win]
      summary: A free, community-supported, data science tool for high performance analytics  # [linux or win]
      license_family: Proprietary  # [linux or win]

  - name: r-mrclient-mml  # [linux or win]
    version: {{ rc_version }}  # [linux or win]
    script: install-r-mrclient-mml.sh  # [linux or win]
    build:  # [linux]
      missing_dso_whitelist:  # [linux]
        - liblttng-ust.so.0  # [linux]
        - /lib64/ld-linux-x86-64.so.2
        - /lib/libc.so.6
        - /lib/libm.so.6
        - libc.so.6
        - libm.so.6
        - /lib/libdl.so.2
        - /lib/libpthread.so.0
        - /lib/librt.so.1
    requirements:  # [linux or win]
      host:  # [linux or win]
        - mro-base {{ version }}  # [linux or win]
        - {{ pin_subpackage('r-mrclient', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - zlib  # [linux]
        - libstdcxx-ng >=7.2.0  # [linux]
        - libgcc-ng >=7.2.0  # [linux]
        - libuuid  # [linux]
        - krb5  # [linux]
        - libcurl  # [linux]
      run:  # [linux or win]
        - mro-base {{ version }}  # [linux or win]
        - {{ pin_subpackage('r-mrclient', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - libgcc-ng >=7.2.0  # [linux]
        - libstdcxx-ng >=7.2.0  # [linux]
    test:  # [linux or win]
      commands:  # [linux or win]
        # You can put additional test commands to be run here.
        - $R -e "library('MicrosoftML')"           # [linux]
        - "\"%R%\" -e \"library('MicrosoftML')\""  # [win]
    about:  # [linux or win]
      home: https://docs.microsoft.com/en-us/machine-learning-server/r-reference/microsoftml/microsoftml-package  # [linux or win]
      license: Proprietary  # [linux or win]
      summary: Provides state-of-the-art fast, scalable machine learning algorithms and transforms for R  # [linux or win]
      license_family: Proprietary  # [linux or win]

  # The linux selectors here are only to cut down the build time by not
  # building a noarch: generic package multiple times on each OS.
  - name: r-mrclient-mlm  # [linux]
    version: {{ rc_version }}  # [linux]
    script: install-r-mrclient-mlm.sh  # [linux]
    build:  # [linux]
      noarch: generic  # [linux]
    requirements:  # [linux]
      host:  # [linux]
        - mro-base {{ version }}  # [linux]
        - {{ pin_subpackage('r-mrclient-mml', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux]
      run:  # [linux]
        - mro-base {{ version }}  # [linux]
        - {{ pin_subpackage('r-mrclient-mml', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux]
    test:  # [linux]
      files:  # [linux]
        - tests/test-mrclient-mlm-ImageFeaturizer_TrainAndClassifyImage.R  # [linux]
        - tests/Data/Pictures/  # [linux]
      # commands:  # [linux]
      #   - cd tests  # [linux]
      #   - Rscript test-mrclient-mlm-ImageFeaturizer_TrainAndClassifyImage.R  # [linux]
    about:  # [linux]
      home: https://docs.microsoft.com/en-us/machine-learning-server/install/microsoftml-install-pretrained-models  # [linux]
      license: Proprietary  # [linux]
      summary: Pre-trained machine learning models for sentiment analysis and image detection  # [linux]
      license_family: Proprietary  # [linux]

{% endif %}

  - name: mro-basics
    version: {{ version }}
    requirements:
      run:
        - {{ pin_subpackage('mro-base', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-boot', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-checkpoint', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-class', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-cluster', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-codetools', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-curl', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-deployrrserve', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-doparallel', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-foreach', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-foreign', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-iterators', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-jsonlite', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-kernsmooth', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-lattice', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-mass', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-matrix', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-mgcv', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-microsoftr', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-nlme', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-nnet', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-png', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-r6', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-revoioq', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-revomods', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-revoutilsmath', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}  # [linux or win]
        - {{ pin_subpackage('r-rpart', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-runit', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-spatial', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
        - {{ pin_subpackage('r-survival', min_pin='x.x.x.x.x.x', max_pin='x.x.x.x.x.x') }}
