View source: R/init_datacommons.R
init_datacommons | R Documentation |
Initialize a project to keep track of separate dataset repositories and distributions.
init_datacommons(dir, name = "Data Commons", repos = NULL,
default_user = "", remote = NULL, url = NULL, refresh_after = FALSE,
overwrite = FALSE, serve = FALSE, host = "127.0.0.1", port = 3000,
use_local = FALSE, verbose = interactive())
dir |
Path to the desired data commons directory. |
name |
Name of the data commons. |
repos |
A vector of repository names to add to |
default_user |
GitHub username to prepend to repository names if needed. |
remote |
Name of the data commons' GitHub repository ( |
url |
URL of the data commons' monitor site; defaults to the GitHub Pages URL associated with |
refresh_after |
Logical; if |
overwrite |
Logical; if |
serve |
Logical; if |
host |
The IPv4 address to listen to if |
port |
The port to listen on if |
use_local |
Logical; if |
verbose |
Logical; if |
The shell scripts included in the project's scripts
directory can be used to retrieve
and update repositories over SSH.
This will clone or pull repositories listed in scripts/repos.txt
:
sh scripts/get_repos.sh
This will add, commit, and push all changes in all repositories:
sh scripts/update_repos.sh "commit message"
Path to the datacommons directory.
## Not run:
init_datacommons(
"../datacommons",
name = "Data Commons",
remote = ""
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.