Copy a WS
copy_ws(ws_name, from, to = tempdir(), overwrite = TRUE, verbose = TRUE)
the name of the WS
the path to the folder containing the WS (the XML file + the WS folder)
the path to the new folder which will contains the WS (the XML file + the WS folder)
Overwrite existing file (Defaults to TRUE)
A boolean to print indications on the processing status (optional and TRUE by default)
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
# 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
)
#> Successful copy!