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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/sdcMicro_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/sdcMicro/sdcMicro_{{ version }}.tar.gz
  sha256: a1447a5a5d5a3af04925afc5e2b664db51aa97459c13dfdb7542e915c9e0aa8a

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]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-dt
    - r-mass
    - r-rcpp
    - r-vim >=4.7.0
    - r-car
    - r-cardata
    - r-cluster
    - r-data.table
    - r-e1071
    - r-ggplot2
    - r-haven
    - r-knitr
    - r-prettydoc
    - r-rhandsontable
    - r-rmarkdown
    - r-robustbase
    - r-shiny >=1.4.0
    - r-shinybs
    - r-xtable
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-dt
    - r-mass
    - r-rcpp
    - r-vim >=4.7.0
    - r-car
    - r-cardata
    - r-cluster
    - r-data.table
    - r-e1071
    - r-ggplot2
    - r-haven
    - r-knitr
    - r-prettydoc
    - r-rhandsontable
    - r-rmarkdown
    - r-robustbase
    - r-shiny >=1.4.0
    - r-shinybs
    - r-xtable

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

about:
  home: https://github.com/sdcTools/sdcMicro
  license: GPL-2.0-only
  summary: Data from statistical agencies and other institutions are mostly confidential. This
    package (see also Templ, Kowarik and Meindl (2017) <doi:10.18637/jss.v067.i04>)
    can be used for the generation of anonymized (micro)data, i.e. for the creation
    of public- and scientific-use files. The theoretical basis for the methods implemented
    can be found in Templ (2017) <doi:10.1007/978-3-319-50272-4>. Various risk estimation
    and anonymisation methods are included. Note that the package includes a graphical
    user interface (Meindl and Templ, 2019 <doi:10.3390/a12090191>) that allows to use
    various methods of this package.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: sdcMicro
# Type: Package
# Title: Statistical Disclosure Control Methods for Anonymization of Data and Risk Estimation
# Version: 5.6.1
# Date: 2021-07-20
# Authors@R: c( person("Matthias", "Templ", email="matthias.templ@gmail.com", role = c("aut", "cre"), comment=c(ORCID="0000-0002-8638-5276")), person("Bernhard", "Meindl", email = "Bernhard.Meindl@statistik.gv.at", role = c("aut")), person("Alexander", "Kowarik", email="Alexander.Kowarik@statistik.gv.at", role = "aut", comment=c(ORCID="0000-0001-8598-4130")))
# Description: Data from statistical agencies and other institutions are mostly confidential. This package (see also Templ, Kowarik and Meindl (2017) <doi:10.18637/jss.v067.i04>) can be used for the generation of anonymized (micro)data, i.e. for the creation of public- and scientific-use files. The theoretical basis for the methods implemented can be found in Templ (2017) <doi:10.1007/978-3-319-50272-4>. Various risk estimation and anonymisation methods are included. Note that the package includes a graphical user interface (Meindl and Templ, 2019 <doi:10.3390/a12090191>) that allows to use various methods of this package.
# LazyData: TRUE
# ByteCompile: TRUE
# LinkingTo: Rcpp
# Depends: R (>= 2.10)
# Suggests: laeken,testthat
# Imports: utils, stats, graphics, car, carData, rmarkdown, knitr, data.table, xtable, robustbase, cluster, MASS, e1071, tools, Rcpp, methods, ggplot2, shiny (>= 1.4.0), haven, rhandsontable, DT, shinyBS, prettydoc, VIM(>= 4.7.0)
# License: GPL-2
# URL: https://github.com/sdcTools/sdcMicro
# Collate: '0classes.r' 'addGhostVars.R' 'addNoise.r' 'aux_functions.r' 'createNewID.R' 'dataGen.r' 'dataSets.R' 'dRisk.R' 'dRiskRMD.R' 'dUtility.R' 'freqCalc.r' 'globalRecode.R' 'groupAndRename.R' 'GUIfunctions.R' 'indivRisk.R' 'LocalRecProg.R' 'localSupp.R' 'localSuppression.R' 'mdav.R' 'measure_risk.R' 'methods.r' 'microaggregation.R' 'modRisk.R' 'muargus_compatibility_functions.R' 'mvTopCoding.R' 'plotFunctions.R' 'plotMicro.R' 'pram.R' 'rankSwap.R' 'RcppExports.R' 'report.R' 'riskyCells.R' 'sdcMicro-package.R' 'shuffle.R' 'suda2.R' 'timeEstimation.R' 'topBotCoding.R' 'valTable.R' 'zzz.R' 'printFunctions.R' 'mafast.R' 'maG.R' 'sdcApp.R' 'show_sdcMicroObj.R'
# RoxygenNote: 7.1.1
# VignetteBuilder: knitr
# Encoding: UTF-8
# NeedsCompilation: yes
# Packaged: 2021-07-26 09:56:02 UTC; matthias
# Author: Matthias Templ [aut, cre] (<https://orcid.org/0000-0002-8638-5276>), Bernhard Meindl [aut], Alexander Kowarik [aut] (<https://orcid.org/0000-0001-8598-4130>)
# Maintainer: Matthias Templ <matthias.templ@gmail.com>
# Repository: CRAN
# Date/Publication: 2021-07-26 13:10:02 UTC
