openRepository {gep2pep} | R Documentation |
The repository must have been created by
createRepository
. Provides an R object to interact
with the repository.
openRepository(path)
path |
Path to a directory where the repository has been
created with |
This function only calls the repo_open
function
from the repo
package on path
. It is meant to
allow users not to explicitly load the repo
library,
unless they want to access advanced features.
An object of class repo
that can be passed to
gep2pep
functions.
createRepository
db <- loadSamplePWS() repo_path <- file.path(tempdir(), "gep2pepTemp") rp <- createRepository(repo_path, db) rp2 <- openRepository(repo_path) ## rp and rp2 point to the same data: identical(rp$entries(), rp2$entries()) ## > [1] TRUE unlink(repo_path, TRUE)