# -*- 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             cran f.pein lowpassFilter 1.0-2
revision            1
maintainers         nomaintainer
license             GPL-3
description         Lowpass Filtering
long_description    Creates lowpass filters which are commonly used in ion channel recordings.
checksums           rmd160  d99baa0a524825d5629b40908f9b8855a5bdc295 \
                    sha256  5dccf52de1c542bf02a7d5644f46b51588a2c871ec701f4ac2ec54ac75ec84c5 \
                    size    19102

depends_lib-append  port:R-Rcpp

compilers.setup     require_fortran

depends_test-append port:R-testthat

# FIXME: on PowerPC a few tests fail:
# [ FAIL 17 | WARN 17 | SKIP 0 | PASS 4686 ]
# Errors look like the following:
# test$acAntiderivative(Inf, 0) not equal to 1.
# 1/1 mismatches
# [1] NaN - 1 == NaN
# Backtrace:
# 1. └─lowpassFilter (local) testBessel(...) at test_lowpassFilter.R:211:3
# 2.   └─testthat::expect_equal(test$acAntiderivative(Inf, 0), 1, tol = 1e-12) at test_lowpassFilter.R:81:3
test.run            yes
