Updates the R API interface