R toolbox