How to substract in R studio

I’m very new to R. Please advice to execute Dif <- R1-26.

I need to substract the optimum value (26) from the raster R1.