@@ -368,7 +368,7 @@ fmt_scientific <- function(
368368 # of suffix labels, or NULL (the case where `suffixing` is FALSE)
369369 suffix_labels <- normalize_suffixing_inputs(suffixing , scale_by , system = " intl" )
370370
371- valid_class <- c(" numeric" , " integer" )
371+ valid_class <- c(" numeric" , " integer" , " integer64 " )
372372 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
373373
374374 # If `n_sigfig` is defined (and not `NA`) modify the number of
@@ -898,7 +898,7 @@ fmt_engineering <- function(
898898 # of suffix labels, or NULL (the case where `suffixing` is FALSE)
899899 suffix_labels <- normalize_suffixing_inputs(suffixing , scale_by , system = " intl" )
900900
901- valid_class <- c(" numeric" , " integer" )
901+ valid_class <- c(" numeric" , " integer" , " integer64 " )
902902 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
903903
904904 # Pass `data`, `columns`, `rows`, and the formatting
@@ -1518,7 +1518,7 @@ fmt_number_si <- function(
15181518 sep_mark <- get_locale_sep_mark(locale , sep_mark , use_seps )
15191519 dec_mark <- get_locale_dec_mark(locale , dec_mark )
15201520
1521- valid_class <- c(" numeric" , " integer" )
1521+ valid_class <- c(" numeric" , " integer" , " integer64 " )
15221522 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
15231523
15241524 # Pass `data`, `columns`, `rows`, and the formatting
@@ -2116,7 +2116,7 @@ fmt_percent <- function(
21162116 locale <- normalize_locale(locale = locale )
21172117 locale <- resolve_locale(data = data , locale = locale )
21182118
2119- valid_class <- c(" numeric" , " integer" )
2119+ valid_class <- c(" numeric" , " integer" , " integer64 " )
21202120 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
21212121
21222122 if (scale_values ) {
@@ -2426,7 +2426,7 @@ fmt_partsper <- function(
24262426 locale <- normalize_locale(locale = locale )
24272427 locale <- resolve_locale(data = data , locale = locale )
24282428
2429- valid_class <- c(" numeric" , " integer" )
2429+ valid_class <- c(" numeric" , " integer" , " integer64 " )
24302430 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
24312431
24322432 # Scale values according to `to_units` value
@@ -2801,7 +2801,7 @@ fmt_fraction <- function(
28012801 ))
28022802 }
28032803
2804- valid_class <- c(" numeric" , " integer" )
2804+ valid_class <- c(" numeric" , " integer" , " integer64 " )
28052805 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
28062806
28072807 # Use locale-based `sep_mark` if a locale ID is provided
@@ -3200,10 +3200,10 @@ round_gt <- function(x, digits = 0) {
32003200# '
32013201# ' @section Compatibility of formatting function with data values:
32023202# '
3203- # ' `fmt_currency()` is compatible with body cells that are of the `"numeric"` or
3204- # ' `"integer"` types. Any other types of body cells are ignored during
3205- # ' formatting. This is to say that cells of incompatible data types may be
3206- # ' targeted, but there will be no attempt to format them.
3203+ # ' `fmt_currency()` is compatible with body cells that are of the `"numeric"`,
3204+ # ' `"integer"`, or `"integer64"` types. Any other types of body cells are
3205+ # ' ignored during formatting. This is to say that cells of incompatible data
3206+ # ' types may be targeted, but there will be no attempt to format them.
32073207# '
32083208# ' @section Compatibility of arguments with the `from_column()` helper function:
32093209# '
@@ -3522,7 +3522,7 @@ fmt_currency <- function(
35223522 locale <- normalize_locale(locale = locale )
35233523 locale <- resolve_locale(data = data , locale = locale )
35243524
3525- valid_class <- c(" numeric" , " integer" )
3525+ valid_class <- c(" numeric" , " integer" , " integer64 " )
35263526 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
35273527
35283528 # Resolve the currency either from direct input in `currency` or
@@ -3731,7 +3731,7 @@ fmt_roman <- function(
37313731 # Ensure that arguments are matched
37323732 case <- rlang :: arg_match0(case , values = c(" upper" , " lower" ))
37333733
3734- valid_class <- c(" numeric" , " integer" )
3734+ valid_class <- c(" numeric" , " integer" , " integer64 " )
37353735 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
37363736
37373737 # Pass `data`, `columns`, `rows`, and the formatting
@@ -3969,7 +3969,7 @@ fmt_index <- function(
39693969 # Use locale-based `idx_set` if a locale ID is provided
39703970 idx_set <- get_locale_idx_set(locale )
39713971
3972- valid_class <- c(" numeric" , " integer" )
3972+ valid_class <- c(" numeric" , " integer" , " integer64 " )
39733973 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
39743974
39753975 # Pass `data`, `columns`, `rows`, and the formatting
@@ -4338,7 +4338,7 @@ fmt_spelled_num <- function(
43384338 # Obtain a locale-based `num_spellout_set` vector
43394339 num_spellout_set <- get_locale_num_spellout(locale = locale )
43404340
4341- valid_class <- c(" numeric" , " integer" )
4341+ valid_class <- c(" numeric" , " integer" , " integer64 " )
43424342 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
43434343
43444344 # Pass `data`, `columns`, `rows`, and the formatting
@@ -4650,7 +4650,7 @@ fmt_bytes <- function(
46504650 locale <- normalize_locale(locale = locale )
46514651 locale <- resolve_locale(data = data , locale = locale )
46524652
4653- valid_class <- c(" numeric" , " integer" )
4653+ valid_class <- c(" numeric" , " integer" , " integer64 " )
46544654 check_columns_valid_if_strict(data , {{ columns }}, valid_class )
46554655
46564656 # Use locale-based marks if a locale ID is provided
0 commit comments