added R directory