openRepository: Opens an existing repository of pathway collections.

Description Usage Arguments Details Value See Also Examples

Description

The repository must have been created by createRepository. Provides an R object to interact with the repository.

Usage

1

Arguments

path

Path to a directory where the repository has been created with createRepository.

Details

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.

Value

An object of class repo that can be passed to gep2pep functions.

See Also

createRepository

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

franapoli/gep2pep documentation built on May 30, 2019, 4:34 p.m.