From f75b4a06cef55d67124ec423b02605978ed003ba Mon Sep 17 00:00:00 2001 From: SofiaOtero Date: Mon, 21 Oct 2024 09:13:18 +0200 Subject: [PATCH] Minor fix --- tests/testthat/test-fit_peak.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-fit_peak.R b/tests/testthat/test-fit_peak.R index 55a02f4..7549755 100644 --- a/tests/testthat/test-fit_peak.R +++ b/tests/testthat/test-fit_peak.R @@ -4,9 +4,9 @@ test_that("Can run the fit_peak fun without error", { obs <- 10 season <- c("2018/2019", "2019/2020", "2020/2021") season_num_rev <- rev(seq(from = 1, to = length(season))) - observations <- rep(rnorm(10, obs), length(season)) + observations <- rep(stats::rnorm(10, obs), length(season)) - peak_input <- tibble( + peak_input <- tibble::tibble( observation = observations, weight = 0.8^rep(season_num_rev, each = obs), season = season[rep(seq(from = 1, to = length(season)), each = obs)]