From 99f6c9d57442dde7ea82005de8738b0f7c69563a Mon Sep 17 00:00:00 2001 From: stla Date: Tue, 22 Aug 2023 14:28:13 +0200 Subject: [PATCH] fixed rcmd check issues --- R/kantorovich_ompr.R | 4 ++++ tests/testthat.R | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/R/kantorovich_ompr.R b/R/kantorovich_ompr.R index 18ed3f7..5229a8f 100644 --- a/R/kantorovich_ompr.R +++ b/R/kantorovich_ompr.R @@ -1,3 +1,7 @@ +if(getRversion() >= "2.15.1") { + utils::globalVariables(c("i", "j", "p")) +} + #' Computes Kantorovich distance with 'ompr' #' #' Kantorovich distance using the \code{ompr} package diff --git a/tests/testthat.R b/tests/testthat.R index 3246132..076d23e 100644 --- a/tests/testthat.R +++ b/tests/testthat.R @@ -2,4 +2,4 @@ library(testthat) library(kantorovich) library(gmp) -test_check("kantorovich", reporter = SilentReporter()) +test_check("kantorovich")