get_database | R Documentation |
Extracts the path to the database from an rtoi/package environment. If both, environment and rtoi database are defined the rtoi database is used.
get_database(x)
## S4 method for signature 'rtoi'
get_database(x)
## S4 method for signature 'missing'
get_database()
set_database(x, ...)
## S4 method for signature 'rtoi'
set_database(x, value)
## S4 method for signature 'character'
set_database(x)
x |
an rtoi object. |
... |
additional arguments. |
value |
character argument. The value for change the database directory of x. |
the database path of an rtoi
## Not run:
# load example rtoi
file.copy(from=system.file("ex/Navarre",package="rsat"),
to=tempdir(),
recursive = TRUE)
navarre <- read_rtoi(file.path(tempdir(),"Navarre"))
# get the databse used by navarre
get_database(navarre)
# set the a new database path
set_database(navarre,"new_path")
# get the database used by rsat by default
get_database()
# set the a new database path for the entire environment
set_database("new_path")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.