mc_rm | R Documentation |
This function uses the mc
command to remove files or directories
at the specified target location.
mc_rm(target, recursive = FALSE, flags = "", verbose = FALSE)
target |
Character string specifying the target file or directory path to be removed. |
recursive |
Logical indicating whether to recursively remove
directories. Default is |
flags |
Additional flags to be passed to the |
verbose |
Logical indicating whether to list files removed.
Default is |
see mc("rm -h")
for details.
Returns the list from processx::run()
, with components status
,
stdout
, stderr
, and timeout
; invisibly.
# Remove a file
mc_rm("path/to/file.txt")
# Remove a directory recursively
mc_rm("path/to/directory", recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.