Code
write_utf8(drive_cp_message)
Output
Original file:
* 'i-am-a-file-TEST-drive_cp' <id: {FILE_ID}>
Copied to file:
* '{cp_name}' <id: {FILE_ID}>
Code
write_utf8(drive_cp_message)
Output
Original file:
* 'i-am-a-file-TEST-drive_cp' <id: {FILE_ID}>
Copied to file:
* 'i-am-a-folder-TEST-drive_cp/{cp_name}' <id: {FILE_ID}>
path
Code
drive_cp(file, nm_("i-am-a-folder"))
Condition
Error in `confirm_clear_path()`:
! Unclear if `path` specifies parent folder or full path to the new file, including its name.
See `?as_dribble()` for advice on how to make this clear.
Code
drive_cp(nm_("i-am-a-folder"))
Condition
Error in `drive_cp()`:
! The Drive API does not copy folders or shared drives.
Code
write_utf8(drive_cp_message)
Output
Original file:
* 'i-am-a-file-TEST-drive_cp' <id: {FILE_ID}>
Copied to file:
* 'i-am-a-folder-TEST-drive_cp/{cp_name}' <id: {FILE_ID}>
Code
file_cp <- drive_cp(nm_("i-am-a-file"), path = nm_("file-name"), name = nm_(
"file-name"))
Condition
Error in `as_parent()`:
! Parent specified via `path` is invalid:
x Does not exist.
Code
file_cp <- drive_cp(nm_("i-am-a-file"), append_slash(nm_("not-unique-folder")))
Condition
Error in `as_parent()`:
! Parent specified via `path` is invalid:
x Doesn't uniquely identify exactly one folder or shared drive.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.