Hi and welcome!
There are many possibilities why your code does not work, so without any further information we cannot give you any useful help.
If you could give us a reproducible example (FAQ: What's a reproducible example (`reprex`) and how do I do one?) people can have a look at your problem and help you finding a solution.
1 Like