main r