# Create a new database in a temporary directory
db <- create_db(tempdir(), "mydb.db")
# You can also create an in-memory database
db2 <- create_db(path = NULL, ":memory:")
# Cleanup
close_db(db)
close_db(db2)
file.remove(file.path(tempdir(), "mydb.db"))
Run the code above in your browser using DataLab