how to commit r script