# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           R 1.0

R.setup             github stan-dev cmdstanr 0.7.1 v
revision            1
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             BSD
description         R interface to CmdStan
long_description    {*}${description}
homepage            https://mc-stan.org/cmdstanr
checksums           rmd160  d9c9d3628bbaf75b36f0bd89e79cd58c3bd9870a \
                    sha256  9a35fae846501907d2f1bec622427f83472241c52ceebe9a3fdb8be67dbea80e \
                    size    1947568
supported_archs     noarch

depends_lib-append  port:R-checkmate \
                    port:R-data.table \
                    port:R-jsonlite \
                    port:R-posterior \
                    port:R-processx \
                    port:R-R6 \
                    port:R-withr

notes "
CmdStanR requires a working installation of CmdStan, the shell interface to Stan.\
If you don’t have CmdStan installed then CmdStanR can install it for you via install_cmdstan() command.
Please refer to: https://mc-stan.org/cmdstanr/articles/cmdstanr.html
"

depends_test-append port:R-bayesplot \
                    port:R-knitr \
                    port:R-loo \
                    port:R-Rcpp \
                    port:R-RcppEigen \
                    port:R-rlang \
                    port:R-rmarkdown \
                    port:R-testthat

test.run            yes
