adding €-sign in valueBox() in RShiny

54 Views Asked by At

My valueBox() in the server is generated as:

valueBox(winterMean, subtitle = "Mean Winter Performance", color = "black")

What I want to have the subtitle Mean Winter Performance € / MWh, but unfortunately I don't know how to add the €-sign. The unicode for the € is € but this doesn't work here!

1

There are 1 best solutions below

2
On BEST ANSWER

You could use unicode UTF-16 encoding:

valueBox(100, subtitle = "Mean Winter Performance \u20ac/MWh ", color = "black")