post_site | R Documentation |
Create new site in SB
post_site(sites, on_exists = c("stop", "skip", "clear", "replace"),
verbose = TRUE)
sites |
one or more local site IDs (e.g. nwis_09238475) |
on_exists |
character. what should be done when an item already exists? |
verbose |
logical. Should status messages be given? |
an item list
Corinna Gries
## Not run:
login_sb()
set_scheme("mda_streams_dev")
sites <- c("nwis_00000000", "nwis_00000001", "nwis_00000002")
is.null(post_site()) # returns NULL (empty list) if sites is missing or NULL
(post_site(sites)) # adds sites, returns item IDs
(post_site(sites, on_exists="skip")) # leaves existing items untouched, returns item IDs
(post_site(sites, on_exists="clear")) # empties existing sites of child items, returns item IDs
mda.streams:::delete_site(sites)
set_scheme("mda_streams")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.