Skip to content

Commit

Permalink
docs: improve on error message
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Oct 19, 2023
1 parent 2f0ffe4 commit 13e2325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/JoinKeys.R
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ join_key <- function(dataset_1, dataset_2 = NULL, keys) {
primary_key <- function(dataset_1, keys) {
if (checkmate::test_character(keys) &&
!checkmate::test_names(names(keys), type = "unnamed")) {

Check warning on line 493 in R/JoinKeys.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/JoinKeys.R,line=493,col=4,[indentation_linter] Indentation should be 8 spaces but is 4 spaces.
stop("Primary keys must match exactly: keys = c('A' = 'B') are not allowed")
stop("Primary keys parameter must be a unamed character vector: keys = c('A' = 'A') are not allowed")
}
join_key(dataset_1 = dataset_1, dataset_2 = dataset_1, keys = keys)
}

0 comments on commit 13e2325

Please sign in to comment.