R programming for machine learning