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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/miceadds_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/miceadds/miceadds_{{ version }}.tar.gz
  sha256: 74ab5503d6f3c0d016166a4c664918d60f1adb0672d8aefbc57385be3d287c3a

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-rcpp
    - r-rcpparmadillo
    - r-mice >=3.0.0
    - r-mitools
    - libblas
    - liblapack
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp
    - r-rcpparmadillo
    - r-mice >=3.0.0
    - r-mitools

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

about:
  home: https://github.com/alexanderrobitzsch/miceadds, https://sites.google.com/site/alexanderrobitzsch2/software
  license: GPL-2.0-or-later
  summary: Contains functions for multiple imputation which complements existing functionality in R. In particular, several imputation methods for the mice package (van Buuren & Groothuis-Oudshoorn, 2011, <doi:10.18637/jss.v045.i03>) are included. Main features of the miceadds package include plausible value imputation (Mislevy,
    1991, <doi:10.1007/BF02294457>), multilevel imputation for variables at any level or with any number of hierarchical and non-hierarchical levels (Grund, Luedtke & Robitzsch, 2018, <doi:10.1177/1094428117703686>; van Buuren, 2018, Ch.7, <doi:10.1201/9780429492259>), imputation using partial least squares (PLS) for high
    dimensional predictors (Robitzsch, Pham & Yanagida, 2016), nested multiple imputation (Rubin, 2003, <doi:10.1111/1467-9574.00217>), substantive model compatible imputation (Bartlett et al., 2015, <doi:10.1177/0962280214521348>), and features for the generation of synthetic datasets (Reiter, 2005, <doi:10.1111/j.1467-985X.2004.00343.x>;
    Nowok, Raab, & Dibben, 2016, <doi:10.18637/jss.v074.i11>).
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: miceadds
# Type: Package
# Title: Some Additional Multiple Imputation Functions, Especially for 'mice'
# Version: 3.11-6
# Date: 2021-01-21 11:48:47
# Author: Alexander Robitzsch [aut,cre] (<https://orcid.org/0000-0002-8226-3132>), Simon Grund [aut] (<https://orcid.org/0000-0002-1290-8986>), Thorsten Henke [ctb]
# Maintainer: Alexander Robitzsch <robitzsch@ipn.uni-kiel.de>
# Description: Contains functions for multiple imputation which complements existing functionality in R. In particular, several imputation methods for the mice package (van Buuren & Groothuis-Oudshoorn, 2011, <doi:10.18637/jss.v045.i03>) are included. Main features of the miceadds package include plausible value imputation (Mislevy, 1991, <doi:10.1007/BF02294457>), multilevel imputation for variables at any level or with any number of hierarchical and non-hierarchical levels (Grund, Luedtke & Robitzsch, 2018, <doi:10.1177/1094428117703686>; van Buuren, 2018, Ch.7, <doi:10.1201/9780429492259>), imputation using partial least squares (PLS) for high dimensional predictors (Robitzsch, Pham & Yanagida, 2016), nested multiple imputation (Rubin, 2003, <doi:10.1111/1467-9574.00217>), substantive model compatible imputation (Bartlett et al., 2015, <doi:10.1177/0962280214521348>), and features for the generation of synthetic datasets (Reiter, 2005, <doi:10.1111/j.1467-985X.2004.00343.x>; Nowok, Raab, & Dibben, 2016, <doi:10.18637/jss.v074.i11>).
# Depends: R (>= 3.0), mice (>= 3.0.0)
# Imports: graphics, methods, mitools, Rcpp, stats, utils
# LinkingTo: Rcpp, RcppArmadillo
# Suggests: BIFIEsurvey, blme, car, CDM, coda, foreign, grouped, imputeR, inline, lme4, MASS, MBESS, MCMCglmm, mdmb, numDeriv, readxl, sandwich, simputation, sirt, sjlabelled, synthpop, TAM
# Enhances: Amelia, jomo, micemd, mitml, pan
# URL: https://github.com/alexanderrobitzsch/miceadds, https://sites.google.com/site/alexanderrobitzsch2/software
# License: GPL (>= 2)
# BugReports: https://github.com/alexanderrobitzsch/miceadds/issues?state=open
# NeedsCompilation: yes
# Packaged: 2021-01-21 10:52:29 UTC; sunpn563
# Repository: CRAN
# Date/Publication: 2021-01-21 11:40:08 UTC
