| orderly_location_pull | R Documentation |
Pull one or more packets (including all their files) into this
archive from one or more of your locations. This will make files
available for use as dependencies (e.g., with
orderly_dependency()).
orderly_location_pull(
expr,
name = NULL,
location = NULL,
fetch_metadata = FALSE,
recursive = NULL,
options = NULL,
root = NULL
)
expr |
The query expression. A |
name |
Optionally, the name of the packet to scope the query on. This
will be intersected with |
location |
Optional vector of locations to pull from. We might in future expand this to allow wildcards or exceptions. |
fetch_metadata |
Logical, indicating if we should pull
metadata immediately before the search. If |
recursive |
If non-NULL, a logical, indicating if we should
recursively pull all packets that are referenced by the packets
specified in |
options |
DEPRECATED. Please don't use this any more, and
instead use the arguments |
root |
The path to the root directory, or |
It is possible that it will take a long time to pull packets, if you are moving a lot of data or if you are operating over a slow connection. Cancelling and resuming a pull should be fairly efficient, as we keep track of files that are copied over even in the case of an interrupted pull.
Invisibly, the ids of packets that were pulled
# Two roots, one local and one representing some remote orderly location:
local <- orderly_example()
remote <- orderly_example()
# We create a packet in the remote root:
orderly_run("data", root = remote)
# Add the remote as a path location to the local root:
orderly_location_add_path("remote", remote, root = local)
# Pull a packet into our local version
orderly_location_pull(quote(latest(name == "data")),
fetch_metadata = TRUE, root = local)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.