How to do line breaks in ipython cell magic?

I am trying to run the following code but apparently the parser cannot read windows’ line break \r\n so it would not work. How to properly add line breaks in R cell magic?

%%R -i df

library(ggplot2)
ggplot(df, aes(x=reorder(cups_of_coffee,productivity), y=productivity)) + 
geom_col() + 
coord_flip()