Skip to content

Commit

Permalink
is_data now checks that the data structure is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
sbuis committed Jul 16, 2024
1 parent 0e3a73a commit 7c5d879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/is_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
is.data <- function(data_list) {

# Check data_list format
if (!is.list(data_list) || !all(sapply(
if (length(data_list)==0 || !is.list(data_list) || !all(sapply(
data_list,
function(x) is.data.frame(x)
))) {
Expand Down

0 comments on commit 7c5d879

Please sign in to comment.