Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Nov 14, 2024
1 parent deabb5d commit 66a36c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 1 addition & 4 deletions R/find.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 66a36c6

Please sign in to comment.