clean up R directory