From db970ab6676f7935d38dd334675e1c3add032b4b Mon Sep 17 00:00:00 2001 From: ASuGuit Date: Thu, 21 May 2026 08:30:02 +0200 Subject: [PATCH] Fix CRAN notes --- DESCRIPTION | 2 +- tests/tinytest.R | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 34c42b9..cbf6c3b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -15,7 +15,7 @@ Authors@R: Description: The goal of 'automatedRecLin' is to perform record linkage (also known as entity resolution) in unsupervised or supervised settings. It compares pairs of records from two datasets using selected comparison functions to estimate the probability or density ratio between matched and non-matched records. Based on these estimates, it predicts a set of matches that maximizes entropy. For details see: Lee et al. (2022) , Vo et al. (2023) , Sugiyama et al. (2008) . License: GPL-3 Encoding: UTF-8 -URL: https://github.com/ncn-foreigners/automatedRecLin, https://ncn-foreigners.ue.poznan.pl/automatedRecLin/ +URL: https://github.com/ncn-foreigners/automatedRecLin BugReports: https://github.com/ncn-foreigners/automatedRecLin/issues Roxygen: list(markdown = TRUE) Imports: diff --git a/tests/tinytest.R b/tests/tinytest.R index 7300eb3..61016c5 100644 --- a/tests/tinytest.R +++ b/tests/tinytest.R @@ -1,3 +1,19 @@ if ( requireNamespace("tinytest", quietly=TRUE) ){ + old_omp_thread_limit <- Sys.getenv("OMP_THREAD_LIMIT", unset = NA_character_) + Sys.setenv("OMP_THREAD_LIMIT" = "1") + on.exit({ + if (is.na(old_omp_thread_limit)) { + Sys.unsetenv("OMP_THREAD_LIMIT") + } else { + Sys.setenv("OMP_THREAD_LIMIT" = old_omp_thread_limit) + } + }, add = TRUE) + + if ( requireNamespace("data.table", quietly=TRUE) ){ + old_dt_threads <- data.table::getDTthreads() + data.table::setDTthreads(1L) + on.exit(data.table::setDTthreads(old_dt_threads), add = TRUE) + } + tinytest::test_package("automatedRecLin", ncpu = NULL) }