Royal icing can be stored in the fridge for up to 2 weeks. Make sure to cover it properly on the top with cling wrap touching the surface in an airtight container. When you take it out you will need to mix it thoroughly again if separated.