fix resource package R