Hello,
Both are a good programming language you can learn any one but R-programming is best for machine learning because R is based on object-oriented programming it has any inbuild pre-define class, library and package are available. by using this class can any easily implement the program. One more thing R-programming is an extension of c++.
If you are interested to learn machine learning then I will suggest you can join Machine Learning With Live Project. because they give the opportunity to work on the live project. the industry likes to hire those students they have some working experience.