The best way to learn is by building random crap :P make things that you want to exist and teach yourself along the way! That way you don’t just learn how to write code, but also how code should be structured and how you can write specific functionality!
unfortunately i have no idea how to do that with R but ill give it a try if i have time between projects