I am trying to download attachments from outlook in R But getting an error

library(RDCOMClient)
outlook_app <- COMCreate("Outlook.Application")
search <- outlook_app$AdvancedSearch(
"Inbox",
"urn:schemas:httpmail:subject = 'GG'"
)

Sys.sleep(5)

results <- search$Results()

results$Item(1)$ReceivedTime() # Received time of first search result
as.Date("1899-12-30") + floor(results$Item(1)$ReceivedTime())

Error :-

No support for InterfaceSupportsErrorInfo
checkErrorInfo -2147352567

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