qry_row | R Documentation |
Returns dataframe containing specified columns and rows from the shinymgr database based on specified conditions.
qry_row(tableName, rowConditions, colConditions, shinyMgrPath)
tableName |
The name of the table of the shinymgr database (e.g. people, apps, etc.). |
rowConditions |
A dataframe where the keys correspond to columns of the specified dataframe and key values correspond to the equality condition that must be satisfied by any returning rows, else returns all rows (default returns all rows). |
colConditions |
A vector specifying the names of columns to be returned from the query (default returns all columns). |
shinyMgrPath |
File path to the main shiny manager project directory |
Dataframe consisting of the specified rows and columns
The shinymgr learnr tutorials include, in order:
learnr::run_tutorial(name = "intro", package = "shinymgr")
learnr::run_tutorial(name = "shiny", package = "shinymgr")
learnr::run_tutorial(name = "modules", package = "shinymgr")
learnr::run_tutorial(name = "app_modules", package = "shinymgr")
learnr::run_tutorial(name = "tests", package = "shinymgr")
learnr::run_tutorial(name = "shinymgr", package = "shinymgr")
learnr::run_tutorial(name = "database", package = "shinymgr")
learnr::run_tutorial(name = "shinymgr_modules", package = "shinymgr")
learnr::run_tutorial(name = "apps", package = "shinymgr")
learnr::run_tutorial(name = "analyses", package = "shinymgr")
learnr::run_tutorial(name = "reports", package = "shinymgr")
learnr::run_tutorial(name = "deployment", package = "shinymgr")
https://code.usgs.gov/vtcfwru/shinymgr
Other qry:
qry_app_flow()
,
qry_app_stitching()
,
qry_insert()
,
qry_mod_info()
# set the file path to the main shinymgr directory
parentPath <- tempdir()
shinyMgrPath <- paste0(parentPath, '/shinymgr')
shinymgr_setup(parentPath = parentPath, demo = TRUE)
# use the default database path
qry_row(
tableName = 'apps',
rowConditions = data.frame(pkAppName = 'iris_explorer'),
colConditions = c('appDisplayName', 'appDescription'),
shinyMgrPath = shinyMgrPath
)
# remove demo
unlink(shinyMgrPath, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.