Skip to content

Commit

Permalink
Merge pull request #6 from vjcitn/vince
Browse files Browse the repository at this point in the history
there is a little bug in contains_required
  • Loading branch information
juyeongkim authored Oct 2, 2020
2 parents f3a0708 + d78060f commit 35bd510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: binman
Title: A Binary Download Manager
Version: 0.1.1
Version: 0.1.1-1
Authors@R: c(
person("John", "Harrison", , "[email protected]",
role = "aut", comment = "original author"),
Expand Down
2 changes: 1 addition & 1 deletion R/assertions.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ assertthat::on_failure(is_data.frame) <- function(call, env) {
}

contains_required <- function(x, required){
is.list(x) && (required %in% names(x))
is.list(x) && all(required %in% names(x))
}

assertthat::on_failure(contains_required) <- function(call, env) {
Expand Down

0 comments on commit 35bd510

Please sign in to comment.