rstudio / pins-r

Pin, Discover and Share Resources
https://pins.rstudio.com
Other
301 stars 62 forks source link

Fix folder creation by `gdrive_mkdir()` #819

Closed UchidaMizuki closed 5 months ago

UchidaMizuki commented 5 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 5 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.