# -*- 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

# Revert to GitHub once updated there.
R.setup             cran r-lib usethis 3.1.0 v
revision            0
categories-append   devel
platforms           {darwin any}
maintainers         nomaintainer
license             MIT
description         Automate package and project setup
long_description    {*}${description}
homepage            https://usethis.r-lib.org
checksums           rmd160  6721c64c3d8e8924be49d2a4fa7f9b63e4b54af4 \
                    sha256  63afe81c1db19be1dbbf71313c93600306181a4051f84099469d338dbe6916d8 \
                    size    384582
supported_archs     noarch

depends_lib-append  port:R-cli \
                    port:R-clipr \
                    port:R-crayon \
                    port:R-curl \
                    port:R-desc \
                    port:R-fs \
                    port:R-gert \
                    port:R-gh \
                    port:R-glue \
                    port:R-jsonlite \
                    port:R-lifecycle \
                    port:R-purrr \
                    port:R-rappdirs \
                    port:R-rlang \
                    port:R-rprojroot \
                    port:R-rstudioapi \
                    port:R-whisker \
                    port:R-withr \
                    port:R-yaml

depends_test-append port:R-covr \
                    port:R-knitr \
                    port:R-magick \
                    port:R-pkgload \
                    port:R-rmarkdown \
                    port:R-roxygen2 \
                    port:R-spelling \
                    port:R-styler \
                    port:R-testthat

# There seems to be a problem with R BATCH:
# https://trac.macports.org/ticket/67059
# Due to this a chunk of tests fail to run.
test.run            yes
