-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* apply styler * fix working directory when linting in ci * fix linting issues
- Loading branch information
Showing
12 changed files
with
48 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
^LICENSE\.md$ | ||
^\.gitignore$ | ||
^CHANGELOG\.md$ | ||
^CHANGELOG\.md$ | ||
^\.lintr$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
linters: linters_with_defaults( | ||
line_length_linter(120) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ find_project_root <- function(path) { | |
} | ||
|
||
as.character(path) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#' Check if an object is a named list | ||
#' | ||
#' | ||
#' @param obj An object | ||
#' @return TRUE if the object is a named list, FALSE otherwise | ||
#' | ||
#' | ||
#' @noRd | ||
#' | ||
#' @examples | ||
#' is_named_list(list(a = 1, b = 2)) # TRUE | ||
#' is_named_list(list(1, 2)) # FALSE | ||
#' is_named_list(NULL) # TRUE | ||
#' is_named_list(list()) # TRUE | ||
#' is_named_list(c(1, 2, 3)) # FALSE | ||
#' | ||
#' @examples | ||
#' is_named_list(list(a = 1, b = 2)) # TRUE | ||
#' is_named_list(list(1, 2)) # FALSE | ||
#' is_named_list(NULL) # TRUE | ||
#' is_named_list(list()) # TRUE | ||
#' is_named_list(c(1, 2, 3)) # FALSE | ||
is_named_list <- function(obj) { | ||
is.null(obj) || (is.list(obj) && (length(obj) == 0 || !is.null(names(obj)))) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters