I'm trying to upload a file to a folder that is hosted inside a Team Drive in Google Drive. I can get the Team Drive and upload a file to the main folder using:
Hmm, I haven't quite sorted out how to upload into teamdrive subfolders, but I can't reproduce the error you're getting. Are you successfully logged into the right account?
When you run team_drive_get(), it returns a tibble. For example, if I get my shared tidyteam drive, I get:
(tidy_td <- team_drive_get("tidyteams"))
#> A tibble: 1 x 3
#> name id drive_resource
#> * <chr> <chr> <list>
#> 1 tidyteams XXXXXXXXXXXXXXXXXX <named list [8]>
If you look at the nested drive_resource do you have permissions necessary if you look at td[[3]][[1]][["capabilities"]]?