From 66a36c690499b4bc7d597192ffeaa6327e7c3058 Mon Sep 17 00:00:00 2001 From: Sebastian Funk Date: Thu, 14 Nov 2024 09:56:16 +0000 Subject: [PATCH] lint --- NAMESPACE | 4 ++++ R/find.R | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index 14e69c9..7fa1c94 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -16,7 +16,11 @@ export(move) export(remove_lines) export(stanedit) export(write_model) +importFrom(checkmate,assert) importFrom(checkmate,assert_character) importFrom(checkmate,assert_class) +importFrom(checkmate,assert_logical) +importFrom(checkmate,check_character) +importFrom(checkmate,check_count) importFrom(methods,is) importFrom(utils,capture.output) diff --git a/R/find.R b/R/find.R index 6d7eb47..d79aa03 100644 --- a/R/find.R +++ b/R/find.R @@ -67,10 +67,7 @@ find_declaration <- function(x, name) { ## remove leading whitespace declaration <- setdiff( grep( - paste0( - "^(array[[:space:]]+)?[a-z]+[[:space:]]+", - name, - "[[:space:]]*$"), + paste0("^(array[[:space:]]+)?[a-z]+[[:space:]]+", name, "[[:space:]]*$"), lines ), union(