From abdc62bdba5b67143fbbae63f2327666582a345b Mon Sep 17 00:00:00 2001 From: Leonidas Zhak <70497898+LeonidasZhak@users.noreply.github.com> Date: Sun, 7 Jun 2026 20:48:55 +0800 Subject: [PATCH] docs: fix bare infinitive 'allows to fill' in fill_run.Rd Changed 'allows to fill' to 'allows filling' in the @param run_for_first description. The verb 'allow' requires a gerund (allow + -ing) or a noun phrase before 'to' (allow + someone + to). Files changed: - src/fill_run.cpp (roxygen source) - R/RcppExports.R (generated) - man/fill_run.Rd (generated) - DESCRIPTION (roxygen2 version update) --- DESCRIPTION | 2 +- R/RcppExports.R | 2 +- man/fill_run.Rd | 2 +- src/fill_run.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3d9f728..287712d 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -25,6 +25,6 @@ Suggests: knitr, rmarkdown, tinytest -RoxygenNote: 7.3.3 Roxygen: list(markdown = TRUE) VignetteBuilder: knitr +Config/roxygen2/version: 8.0.0 diff --git a/R/RcppExports.R b/R/RcppExports.R index 6b64a4c..e6ddaf2 100644 --- a/R/RcppExports.R +++ b/R/RcppExports.R @@ -6,7 +6,7 @@ #' Fill `NA` with last non-NA element. #' @inheritParams runner #' @param run_for_first If first elements are filled with `NA`, `run_for_first = TRUE` -#' allows to fill all initial `NA` with nearest non-NA value. By default +#' allows filling all initial `NA` with nearest non-NA value. By default #' `run_for_first = FALSE`. #' @param only_within `NA` are replaced only if previous and next non-NA #' values are the same. By default `only_within = FALSE`. diff --git a/man/fill_run.Rd b/man/fill_run.Rd index 8ce101d..533724c 100755 --- a/man/fill_run.Rd +++ b/man/fill_run.Rd @@ -11,7 +11,7 @@ fill_run(x, run_for_first = FALSE, only_within = FALSE) input data.} \item{run_for_first}{If first elements are filled with \code{NA}, \code{run_for_first = TRUE} -allows to fill all initial \code{NA} with nearest non-NA value. By default +allows filling all initial \code{NA} with nearest non-NA value. By default \code{run_for_first = FALSE}.} \item{only_within}{\code{NA} are replaced only if previous and next non-NA diff --git a/src/fill_run.cpp b/src/fill_run.cpp index 4e43305..2d35e11 100755 --- a/src/fill_run.cpp +++ b/src/fill_run.cpp @@ -7,7 +7,7 @@ using namespace Rcpp; //' Fill `NA` with last non-NA element. //' @inheritParams runner //' @param run_for_first If first elements are filled with `NA`, `run_for_first = TRUE` -//' allows to fill all initial `NA` with nearest non-NA value. By default +//' allows filling all initial `NA` with nearest non-NA value. By default //' `run_for_first = FALSE`. //' @param only_within `NA` are replaced only if previous and next non-NA //' values are the same. By default `only_within = FALSE`.