Skip to content

drive_auth() for a specific folder in Google Drive #464

Open
@bdschwartzkopf

Description

@bdschwartzkopf

Hi,
I have been searching hi and low for an answer to my problem but have not found anything.

I am trying to output ggplot plots to specific Google Drive folders but am not having any luck. I imagine it is the scope I am using in drive_auth().

I am not interested in allowing full access to my Google Drive (i.e., scope="drive"), and only want to access certain folders. I tried scope="drive.file" hoping this would work, but I have not been able to save any output to a specific folder.

this is what my drive_upload code looks like:
drive_upload(media="Output/Plots/plot.jpeg",
path=as_id("1OGVyempjkFEH7IPqC0D9-lncpqwPN-Pf"),
name="plot",
type="jpeg")

Is allowing access to only certain folders possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions