Skip to content

Commit

Permalink
lapply()
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Mar 5, 2024
1 parent 2c39169 commit 6addffa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/record_versions.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ get_current_versions <- function(
read_versions_previous <- function(manifest) {
out <- jsonlite::read_json(path = manifest)
out <- do.call(what = vctrs::vec_rbind, args = out)
for (field in colnames(out)) {
out[[field]] <- as.character(out[[field]])
}
out <- lapply(out, as.character)
if (is.null(out$version_highest)) {
out$version_highest <- out$version_current
}
Expand Down

0 comments on commit 6addffa

Please sign in to comment.