# For default values
format_list <- number_format_style(pct_excel = "0.00000000",
pct_decimals = 8)
# Set specific options, the rest will be kept as is
format_list <- format_list |> modify_number_formats(sum_excel = "#,###,##0.000")
# IMPORTANT: Don't forget to add individual formats to an excel style, otherwise
# they won't come into affect.
excel_style <- excel_output_style(number_formats = format_list)
Run the code above in your browser using DataLab