I am using the R package "trackdown" to share some Rmd files with my collaborators. I want to share in a Google drive folder that was shared with me and that I am also an editor.
I have been using the following code:
trackdown::upload_file = (file = here::here("file-test.Rmd"),
gpath = "Name of Folder/",
shared_drive = "Name of Folder/")
I am getting the following error:
Error in `handle_shared_drives()`:
! Can't find the requested `shared_drive`.
Run `rlang::last_error()` to see where the error occurred.
I don't understand what I am doing wrong.
Unfortunately, accessing the "Shared Folder"/"Shared with me" section is not feasible due to restrictions in Google APIs. This problem is more thoroughly discussed in the following question: Google API to create/update files on 'Shared with me' folders
If you want to use trackdown in a shared folder, there are two options available to you:
Create a folder and share it with others. Utilize a shared drive, which is distinct from a shared folder. Note that only certain plans allow the creation of shared drives.