saving gmail attachments

Hello dears,
i have an email came with two or three excel sheets,
one of rstudio experts teached me how to acccess an email with gmailr
but i'm trying to download these files locally
how an i do that please
hereunder are my trials

emailname = gm_messages("subject")
1
Email = gm_message(id = emailname[[1]]$"messages"[[1]]$"id")
gm_save_attachments(x=Email, path = "D:/Uploading Files", user_id = "me")
save_attachments(Email,"excelfile.xlsx")

but no action happened , no errors and the files not stored locally , how can i store them ? this task is repeated 10th of times on a daily basis to save attachments , and i need to use R to do that ,
And is there a way to read these files into R before saving them locally ??
can you help me please ?
thanks in advance

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.