Skip to content

Commit 5ea75a8

Browse files
committed
avoid overflow
- Size of very large blobs is displayed correctly.
1 parent 7beed64 commit 5ea75a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/format.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ obj_sum.blob <- function(x) {
3232
is_vector_s3.blob <- function(x) TRUE
3333

3434
blob_size <- function(x, digits = 3, trim = TRUE, ...) {
35-
x <- vapply(x, length, integer(1))
35+
x <- vapply(x, length, numeric(1))
3636

3737
power <- min(floor(log(abs(x), 1000)), 4)
3838
if (power < 1) {

0 commit comments

Comments
 (0)