Skip to content

Commit

Permalink
workaround BiocGenerics (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Jan 13, 2025
1 parent ec01add commit c7a0800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/util.r
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fill_template = function(template, values, required=c()) {
upd = keys %in% names(values)
is_num = sapply(values, is.numeric)
if (length(is_num) > 0)
values[is_num] = format(values[is_num], scientific=FALSE, trim=TRUE)
values[is_num] = format.default(values[is_num], scientific=FALSE, trim=TRUE)
vals[upd] = unlist(values)[keys[upd]]
if (any(is.na(vals)))
stop("Template values required but not provided: ",
Expand Down

0 comments on commit c7a0800

Please sign in to comment.