From 29452ef5495d2b46cb8d7ef31f2d7faf897ca468 Mon Sep 17 00:00:00 2001 From: rmflight Date: Mon, 8 Apr 2024 17:49:13 -0400 Subject: [PATCH] fixes the warning in the test --- DESCRIPTION | 2 +- tests/testthat/test-left_censorship.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 2cf41f7..47c3d21 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ICIKendallTau Title: Calculates information-content-informed Kendall-tau -Version: 1.0.4 +Version: 1.0.5 Date: 2024-04-08 Authors@R: c(person(given = c("Robert", "M"), family = "Flight", role = c("aut", "cre"), email = "rflight79@gmail.com", comment = diff --git a/tests/testthat/test-left_censorship.R b/tests/testthat/test-left_censorship.R index aa05a81..d3aa704 100644 --- a/tests/testthat/test-left_censorship.R +++ b/tests/testthat/test-left_censorship.R @@ -20,7 +20,7 @@ test_that("test_left_censorship works", { sample_indices = withr::with_seed(1234, sample(n_sample, n_miss, replace = TRUE)) zero_dataset = noisy_dataset - for (i_loc in seq_len(all_indices)) { + for (i_loc in seq_along(all_indices)) { zero_dataset[all_indices[i_loc], sample_indices[i_loc]] = 0 }