View source: R/remove_table_forresdat.R
remove_table_forresdat | R Documentation |
forresdat
This function removes one or more tables from the data package forresdat
by making a commit on a local clone of the git repository.
While removing the table(s), it also updates the metadata (.json
file)
remove_table_forresdat(tables, repo_path, push = FALSE, branch = "develop")
tables |
vector with table names of tables that should be removed |
repo_path |
name and path of local |
push |
push commits directly to the remote on GitHub? Default is FALSE (no). (This option can only be used with SSH.) |
branch |
branch from repository |
No value is returned, the tables are removed from the git repository.
## Not run:
#make a local clone of forresdat and change path before running
library(forrescalc)
# add path to your local clone of forresdat
path_to_forresdat <- "xxx/forresdat"
# if you don't have a local clone yet, make it:
git2r::clone("https://github.com/inbo/forresdat.git", path_to_forresdat)
remove_table_forresdat(
tables = c("qCoverHerbs", "qtotalCover"),
repo_path = path_to_forresdat
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.