Skip to content

Commit

Permalink
fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
SamPassmore committed Jun 13, 2023
1 parent 04bebe7 commit 5a84d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/write_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ bt_write <- function(tree, data, variables, dir = "./", na.omit = FALSE, filenam
data = data[,variables, drop = FALSE]

if(class(data) == c("tbl_df", "tbl", "data.frame")){
stop("Data cannot be a tibble. Please use a data.frame")
data = as.dataframe(data)
}

# remove nas if necessary
Expand Down

0 comments on commit 5a84d6a

Please sign in to comment.