1

I am trying to write an R code to download attachments from emails with a specific subject to a specific folder. With the help of some information in this website I was able to write the initial part, but I face an error since the beginning.

I tried using the library RDCOMClient.

library(RDCOMClient)

outlook_app <- COMCreate("Outlook.Application")
outlookNameSpace = outlook_app$GetNameSpace("MAPI")
folder <- outlookNameSpace$Folders(1)$Folders('Inbox')

I get the following error:

<checkErrorInfo> 80020009 
No support for InterfaceSupportsErrorInfo
checkErrorInfo -2147352567
Error: Exception occurred." 

If anyone can help I would really be grateful, or if anyone has a better code I can use, it would be really helpful.

makeyourownmaker
  • 1,558
  • 2
  • 13
  • 33
elvis_va
  • 11
  • 3

0 Answers0