The syntax is correct now, but it's impossible to help you if you just say it doesn't work.
FAQ: How to do a minimal reproducible example ( reprex ) for beginners - meta / Guides & FAQs - Posit Forum (formerly RStudio Community)