addResourcePath('datasets', system.file('data', package='datasets'))
resourcePaths()
removeResourcePath('datasets')
resourcePaths()
# make sure all resources are removed
lapply(names(resourcePaths()), removeResourcePath)
Run the code above in your browser using DataLab