The r is for raw string. Otherwise, we need to escape some of the backslashes (i.e.: \\text{...}).
This renders the formulas less readable in my opinion.