View source: R/datacommons_view.R
datacommons_view | R Documentation |
Add, edit, or refresh a view within a data commons project.
datacommons_view(commons, name, output = NULL, ..., variables = NULL,
ids = NULL, files = NULL, run_after = NULL, run_before = NULL,
measure_info = list(), remote = NULL, url = NULL, children = list(),
execute = TRUE, prefer_repo = TRUE, preselect_files = FALSE,
refresh_map = FALSE, overwrite = FALSE, verbose = TRUE)
commons |
Path to the data commons project. |
name |
Name of the view (it's directory in the project's |
output |
Path to a site project's main directory. |
... |
Passes arguments to |
variables |
A vector of variables, to be added to the view's |
ids |
A vector of ids, to be added to the view's |
files |
A regular expression string used to filter files containing |
run_after |
Path to a script to be sourced after refreshing the view, or code to
be added to such a script (e.g., |
run_before |
Path to a script to be sourced before refreshing the view, or code to be added to such a script. |
measure_info |
A list of variable metadata to include in the |
remote |
Name of the view's GitHub repository ( |
url |
URL of the view's site; defaults to the GitHub Pages URL associated with |
children |
A list of child sites associated with the view. Each entry should contain at least a
|
execute |
Logical; if |
prefer_repo |
Logical; if |
preselect_files |
Logical; if |
refresh_map |
Logical; if |
overwrite |
Logical; if |
verbose |
Logical; if |
An invisible version of the view list (the view's view.json
file).
## Not run:
# create a view within a data commons project
datacommons_view(".", "view_name", variables = c("variable_a", "variable_b"))
# refresh that view
datacommons_view(".", "view_name")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.