Closed swraithel closed 6 years ago
I suspect (but can't readily test) that you want to get rid of the class on the result of the call to glue(). e.g. ...$SaveAsFile(as.character(glue("C:/....{attach_name}")) or just avoid using glue() for this very simple task, e.g. file.path("C:/U...", attach_name) which is more sensible.
When RDCOMClient sees a class on an object, it tries to create a COM object.
I suspect that this will resolve the problem and remove the need for RDCOMServer. However, if you want RDCOMServer, you can build it from source if you have Rtools installed.
Thanks for the quick reply. You were correct. Removing the glue
class via the file.path
function did the trick. Thanks for the help!
I've been working to look through my outlook emails and download the associated attachments. I've been able to complete every step except for the final step using the
SaveAsFile
.The resulting error message is :
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘RDCOMServer’ Error in .COM(x, name, ...) : Can't attach the RDCOMServer package needed to create a generic COM object
I've tried installing RDCOMServer but it's not available R Version 3.4.1 Any recommendations or is this simply a compatibility issue?