| orderly_location_push | R Documentation |
Push tree to location. This function works out what packets are not known at the location and then what files are required to create them. It then pushes all the files required to build all packets and then pushes the missing metadata to the server. If the process is interrupted it is safe to resume and will only transfer files and packets that were missed on a previous call.
orderly_location_push(
expr,
location,
name = NULL,
dry_run = FALSE,
root = NULL
)
expr |
An expression to search for. Often this will be a vector of ids, but you can use a query here. |
location |
The name of a location to push to (see
|
name |
Optionally, the name of the packet to scope the query on. This
will be intersected with |
dry_run |
Logical, indicating if we should print a summary but not make any changes. |
root |
The path to the root directory, or |
Invisibly, details on the information that was actually moved (which might be more or less than what was requested, depending on the dependencies of packets and what was already known on the other location).
# Two roots, one local and one representing some remote orderly
# location. The remote location must use a file store at present.
local <- orderly_example()
remote <- orderly_example(use_file_store = TRUE)
orderly_location_add_path("remote", remote, root = local)
# We create a packet in the local root:
id <- orderly_run("data", root = local)
# Push a packet into our remote version
orderly_location_push(id, location = "remote", root = local)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.