rstudio / pins-r

Pin, discover, and share resources
https://pins.rstudio.com
Other
317 stars 62 forks source link

Fix folder creation by `gdrive_mkdir()` #819

Closed UchidaMizuki closed 10 months ago

UchidaMizuki commented 10 months ago

Closes #818.

This PR changes to use drive_id instead of folder name when creating folders in gdrive. This change resolves the issue of creating folders due to duplicate folder names.

This change resolves #818 locally.

library(pins)
library(googledrive)
drive_auth("uchidamizuki@vivaldi.net")

board <- board_gdrive(as_id("11wUPQi82qsXArmMeu3ENdUK_QvdU1rMv"))
board |> 
  pin_write(iris, "iris")
#> Guessing `type = 'rds'`
#> Creating new version '20240111T113330Z-d16b7'
#> Writing to pin 'iris'

Created on 2024-01-11 with reprex v2.0.2

github-actions[bot] commented 10 months ago

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.