R is one of the later sounds in English. Research on U.S. children suggests many produce it reliably somewhere between ages 5 and 6, and it is normal for younger children to still be working on it.
Every child is different, and age ranges from research are guides, not deadlines. If your child is frustrated, hard to understand, or you're unsure, ask a speech-language pathologist.