# Create temp directory
tmp <- tempdir()
# Create library
libname(dat, tmp)
# Add data to the library
lib_add(dat, mtcars, beaver1, iris)
# library 'dat': 3 items
# - attributes: not loaded
# - path: C:\Users\User\AppData\Local\Temp\RtmpCSJ6Gc
# - items:
# Name Extension Rows Cols Size LastModified
# 1 mtcars rds 32 11 7.5 Kb 2020-11-05 19:32:00
# 2 beaver1 rds 114 4 5.1 Kb 2020-11-05 19:32:04
# 3 iris rds 150 5 7.5 Kb 2020-11-05 19:32:08
# Remove items from the library
lib_remove(dat, c("beaver1", "iris"))
# library 'dat': 1 items
# - attributes: not loaded
# - path: C:\Users\User\AppData\Local\Temp\RtmpCSJ6Gc
# - items:
# Name Extension Rows Cols Size LastModified
# 1 mtcars rds 32 11 7.5 Kb 2020-11-05 19:32:40
# Clean up
lib_delete(dat)
Run the code above in your browser using DataLab