<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ab0fd49e842cbe106a0d4643a70ae96b7b082f0b">https://github.com/macports/macports-ports/commit/ab0fd49e842cbe106a0d4643a70ae96b7b082f0b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ab0fd49e842cbe106a0d4643a70ae96b7b082f0b
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sat Jan 20 03:21:18 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> R-rtmpt: new port
</span>---
R/R-rtmpt/Portfile | 32 ++++++++++++++++++++++++++++++++
R/R-rtmpt/files/patch-fix-math.diff | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-rtmpt/Portfile b/R/R-rtmpt/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2725c2eb0ff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-rtmpt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,32 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup R 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+R.setup cran raphael.hartmann rtmpt 2.0-0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append math
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Fitting of RT-MPT models
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 a5e4bd1ca012386e7fc08678b71d5c699ccfb48c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 f8d91f71b97d471a3c9c125b408ed090525fe2f20e07796607e90235505db1ae \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 259904
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:gsl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-coda \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-data.table \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-loo \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-Ryacas \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-stringr \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-truncnorm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# error: 'isfinite' was not declared in this scope; did you mean 'std::isfinite'?
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# error: 'isnan' was not declared in this scope; did you mean 'std::isnan'?
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-fix-math.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_test-append port:R-knitr \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-rmarkdown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-rtmpt/files/patch-fix-math.diff b/R/R-rtmpt/files/patch-fix-math.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..6b0c5559a7c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-rtmpt/files/patch-fix-math.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,35 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/diffusion.cpp 2023-12-11 23:53:04.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/diffusion.cpp 2024-01-20 03:07:04.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -109,7 +109,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (err - ans > errziel) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // MONITOR(1, 5)++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- err = (isfinite(ans)) ? errziel * (1 + zahl * 0.1) + ans : 2 * err;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ err = (std::isfinite(ans)) ? errziel * (1 + zahl * 0.1) + ans : 2 * err;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ goto NEW;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ans;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/onetimes.cpp 2023-12-11 23:53:04.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/onetimes.cpp 2024-01-20 03:10:35.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -525,7 +525,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ loglik += 2 * icdjs * xsi;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (!isfinite(loglik)) { restart = true; loglik = -1.0e10; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (!std::isfinite(loglik)) { restart = true; loglik = -1.0e10; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else restart = false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pars->restart = restart;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ free(x);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/rwiener.cpp 2023-12-11 23:53:04.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/rwiener.cpp 2024-01-20 03:16:07.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -159,7 +159,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ double sl = upper[j].slope;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ double help = log(fabs(sl)); int sign = sl > 0 ? 1 : -1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (isnan(sl)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (std::isnan(sl)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ flag = true;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>