In R one can use options(digits=n) to adjust the number of digits in the output value. However, this does not work in Shiny, and sprintf() does not work with very low numbers either since it would only display zeros. So, how could i obtain in Shiny something like
options(digits = 4)
p.val$p.value [1] 3.724e-23
So that i could use it in the title of the plot in renderPlot?