copy_ws {rjdworkspace} | R Documentation |
Copy a WS
Description
Copy a WS
Usage
copy_ws(ws_name, from, to = tempdir(), overwrite = TRUE, verbose = TRUE)
Arguments
ws_name |
the name of the WS |
from |
the path to the folder containing the WS (the XML file + the WS folder) |
to |
the path to the new folder which will contains the WS (the XML file + the WS folder) |
overwrite |
Overwrite existing file (Defaults to TRUE) |
verbose |
A boolean to print indications on the processing status (optional and TRUE by default) |
Value
the function returns invisibly (with invisible()
) a boolean
specifying if the transfer was done or an error if the specified paths or
workspace don't exists
Examples
# Déplacement d'un WS dans un environnement temporaire
destination_dir <- tempdir()
# Copy of a worspace in a temporary environment
copy_ws(
ws_name = "ws_output",
from = file.path(system.file("extdata", package = "rjdworkspace"), "WS"),
to = destination_dir
)
[Package rjdworkspace version 1.1.7 Index]