0

I have gone through this question and have set options(scipen=999) and that solves all problems related to converting large numbers to scientific format in R/R Environment. But while using write_xlsx in Shiny, when I open the file downloaded in Excel I see that the large numbers get converted to scientific format.

100000000000 becomes 1e+11
200000000000 becomes 2e+11

How can I stop this from happening? Providing part of the server code.

    output$dl_bulk <-
       
      downloadHandler(
      filename = "Data.xlsx",
      content = function(file){
        write_xlsx(list("PP" = df_p(), "PM" = df_m(), "PR" = df_r(), "PS" = df_s()), path = file)
      }
      )
Sky_7
  • 77
  • 1
  • 10

0 Answers0