| copy_dir_contents | R Documentation |
fs::dir_copy(src, dst) has different semantics across platforms and fs
versions: on some it creates dst and copies the contents of src into it,
on others it creates dst/basename(src)/.... This helper forces the
"copy contents into target" semantics by creating a fresh, empty dst and
then copying each top-level entry from src into it with base R.
copy_dir_contents(src, dst)
src |
Character path to the source directory. |
dst |
Character path to the destination directory. Created if absent; wiped if present. |
Invisible dst.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.