R is non rev business class. This is used for free tickets, employees, travel agent rebate/bonus tickets etc. It could be that this was the only class with availability so they used that class to get you a confirmed booking. Normally you should not get automatic mile credit for such a flight but if you write a letter explaining the situation they should credit the correct amount of miles.