Closed spsanderson closed 2 years ago
I get the same thing when using
install.packages("RDCOMClient", repos = "http://www.omegahat.net/R")
However, similar to
https://github.com/omegahat/RDCOMClient/issues/32
if I use
devtools::install_github("omegahat/RDCOMClient")
then this installation seems to work and can load the package using library() but also get fatal errors (session abort, RStudio bomb). The 'COMCreate()' works ok but the 'Outlook$CreateItem(0)' is what gives the session abort, RStudio bomb.
Outlook <- COMCreate("Outlook.Application")
Email = Outlook$CreateItem(0)
Email[["to"]] = to
Email[["subject"]] = subject
Email[["body"]] = body # If no body, then email comes with an attachment
Email$Send()
Any solutions would be greatly appreciated! I love using this to send an email when a batch job is done.
I've pushed numerous changes to RDCOMClient and related packages now that I have a Windows setup in place (!). The outlook example works fine with this installation, at leas on my machine.
The logging of errors is now off, by default, and can be turned on by a call to an R function (writeErrors()) and one can specify the name of the file to which the information will be written.
Confirmed that the devtools::install_github("omegahat/RDCOMClient")
works on R version 4.2.0 (2022-04-22 ucrt) and 2022.02.3+492 Prairie Trillium (desktop) and also that the Outlook example above works correctly now.
You are the best, thank you kind sir!
Amazing! works!
Hi Duncan,
This is awesome! It compiles and I get a lot of the functionality, but some things don’t seem to work, and a crucial one for me is illustrated by the following:
library("RDCOMClient")
f<-writeErrors(TRUE)
WordApp <- RDCOMClient::COMCreate("Word.Application")
WordApp[["Visible"]] <- TRUE
readLines(f)
The Word application is not made visible for me so I cannot see what’s happening while I run my scripts at the Word end. It seems to work fine with PowerPoint. Has the ability to assign attributes to handles been modified perhaps, and set to read only?
Kind regards,
Rik Schoemaker
From: Duncan Temple Lang @.> Sent: 15 July 2022 06:21 To: omegahat/RDCOMClient @.> Cc: Subscribed @.***> Subject: Re: [omegahat/RDCOMClient] Trying to install RDCOMClient on R 4.2.0 (Issue #37)
I've pushed numerous changes to RDCOMClient and related packages now that I have a Windows setup in place (!). The outlook example works fine with this installation, at leas on my machine.
The logging of errors is now off, by default, and can be turned on by a call to an R function (writeErrors()) and one can specify the name of the file to which the information will be written.
— Reply to this email directly, view it on GitHubhttps://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1185157772, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFPJYF6N6JX3HQD652QTA7DVUDRI5ANCNFSM5Y3POL6A. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>
Hi Rik
I thought you were on vacation!
Thanks for pointing this out. It works for Excel which is what I tested. I have put a new version on github and the omegahat repository which fixes the issue. I was adding the ability to chain assignments to properties such as x[["Interior"]][["ColorIndex"]] = 3 without getting an error as one can not assign to the Interior property. So I am handling it slightly differently for now. Thanks again Duncan
On Fri, Jul 15, 2022 at 11:41 PM Rik Schoemaker @.***> wrote:
Hi Duncan,
This is awesome! It compiles and I get a lot of the functionality, but some things don’t seem to work, and a crucial one for me is illustrated by the following:
library("RDCOMClient")
Error logging
f<-writeErrors(TRUE)
Starts the Word application with WordApp as handle
WordApp <- RDCOMClient::COMCreate("Word.Application")
And makes it visible
WordApp[["Visible"]] <- TRUE
readLines(f)
[1] "FUNCDESC 2" "readOnly. 1"
The Word application is not made visible for me so I cannot see what’s happening while I run my scripts at the Word end. It seems to work fine with PowerPoint. Has the ability to assign attributes to handles been modified perhaps, and set to read only?
Kind regards,
Rik Schoemaker
From: Duncan Temple Lang @.> Sent: 15 July 2022 06:21 To: omegahat/RDCOMClient @.> Cc: Subscribed @.***> Subject: Re: [omegahat/RDCOMClient] Trying to install RDCOMClient on R 4.2.0 (Issue #37)
I've pushed numerous changes to RDCOMClient and related packages now that I have a Windows setup in place (!). The outlook example works fine with this installation, at leas on my machine.
The logging of errors is now off, by default, and can be turned on by a call to an R function (writeErrors()) and one can specify the name of the file to which the information will be written.
— Reply to this email directly, view it on GitHub< https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1185157772>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AFPJYF6N6JX3HQD652QTA7DVUDRI5ANCNFSM5Y3POL6A>.
You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>
— Reply to this email directly, view it on GitHub https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186101863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEYAGIXYGKUIFJGMLHAY6DVUJKQ7ANCNFSM5Y3POL6A . You are receiving this because you commented.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": " https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186101863", "url": " https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186101863", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": " https://github.com" } } ]
Duncan Temple Lang Associate Dean for Graduate Programs Professor, Department of Statistics UC Davis
Hi Duncan, Thanks!! Yes, I’m on vacation, but this is very important to us :-). Don’t know how soon I can test it out but will feed back as soon as I can! Cheers, Rik
On 16 Jul 2022, at 21:37, Duncan Temple Lang @.***> wrote:
Hi Rik
I thought you were on vacation!
Thanks for pointing this out. It works for Excel which is what I tested. I have put a new version on github and the omegahat repository which fixes the issue. I was adding the ability to chain assignments to properties such as x[["Interior"]][["ColorIndex"]] = 3 without getting an error as one can not assign to the Interior property. So I am handling it slightly differently for now. Thanks again Duncan
On Fri, Jul 15, 2022 at 11:41 PM Rik Schoemaker @.***> wrote:
Hi Duncan,
This is awesome! It compiles and I get a lot of the functionality, but some things don’t seem to work, and a crucial one for me is illustrated by the following:
library("RDCOMClient")
Error logging
f<-writeErrors(TRUE)
Starts the Word application with WordApp as handle
WordApp <- RDCOMClient::COMCreate("Word.Application")
And makes it visible
WordApp[["Visible"]] <- TRUE
readLines(f)
[1] "FUNCDESC 2" "readOnly. 1"
The Word application is not made visible for me so I cannot see what’s happening while I run my scripts at the Word end. It seems to work fine with PowerPoint. Has the ability to assign attributes to handles been modified perhaps, and set to read only?
Kind regards,
Rik Schoemaker
From: Duncan Temple Lang @.> Sent: 15 July 2022 06:21 To: omegahat/RDCOMClient @.> Cc: Subscribed @.***> Subject: Re: [omegahat/RDCOMClient] Trying to install RDCOMClient on R 4.2.0 (Issue #37)
I've pushed numerous changes to RDCOMClient and related packages now that I have a Windows setup in place (!). The outlook example works fine with this installation, at leas on my machine.
The logging of errors is now off, by default, and can be turned on by a call to an R function (writeErrors()) and one can specify the name of the file to which the information will be written.
— Reply to this email directly, view it on GitHub< https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1185157772>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AFPJYF6N6JX3HQD652QTA7DVUDRI5ANCNFSM5Y3POL6A>.
You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>
— Reply to this email directly, view it on GitHub https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186101863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEYAGIXYGKUIFJGMLHAY6DVUJKQ7ANCNFSM5Y3POL6A . You are receiving this because you commented.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": " https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186101863", "url": " https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186101863", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": " https://github.com" } } ]
Duncan Temple Lang Associate Dean for Graduate Programs Professor, Department of Statistics UC Davis
— Reply to this email directly, view it on GitHubhttps://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186274704, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFPJYF6X3FF3EYGVOT7JU33VUMFPVANCNFSM5Y3POL6A. You are receiving this because you commented.Message ID: @.***>
Hi Duncan,
I couldn’t resist 😊 You really pulled it off; everything seems to be working exactly like it should!! You star, thank you so much!
Kind regards,
Rik
From: Rik Schoemaker @.> Sent: 16 July 2022 23:00 To: omegahat/RDCOMClient @.> Subject: Re: [omegahat/RDCOMClient] Trying to install RDCOMClient on R 4.2.0 (Issue #37)
Hi Duncan, Thanks!! Yes, I’m on vacation, but this is very important to us :-). Don’t know how soon I can test it out but will feed back as soon as I can! Cheers, Rik
On 16 Jul 2022, at 21:37, Duncan Temple Lang @.**@.>> wrote: Hi Rik
I thought you were on vacation!
Thanks for pointing this out. It works for Excel which is what I tested. I have put a new version on github and the omegahat repository which fixes the issue. I was adding the ability to chain assignments to properties such as x[["Interior"]][["ColorIndex"]] = 3 without getting an error as one can not assign to the Interior property. So I am handling it slightly differently for now. Thanks again Duncan
On Fri, Jul 15, 2022 at 11:41 PM Rik Schoemaker @.<mailto:@.>> wrote:
Hi Duncan,
This is awesome! It compiles and I get a lot of the functionality, but some things don’t seem to work, and a crucial one for me is illustrated by the following:
library("RDCOMClient")
Error logging
f<-writeErrors(TRUE)
Starts the Word application with WordApp as handle
WordApp <- RDCOMClient::COMCreate("Word.Application")
And makes it visible
WordApp[["Visible"]] <- TRUE
readLines(f)
[1] "FUNCDESC 2" "readOnly. 1"
The Word application is not made visible for me so I cannot see what’s happening while I run my scripts at the Word end. It seems to work fine with PowerPoint. Has the ability to assign attributes to handles been modified perhaps, and set to read only?
Kind regards,
Rik Schoemaker
From: Duncan Temple Lang @.<mailto:@.>> Sent: 15 July 2022 06:21 To: omegahat/RDCOMClient @.<mailto:@.>> Cc: Subscribed @.<mailto:@.>> Subject: Re: [omegahat/RDCOMClient] Trying to install RDCOMClient on R 4.2.0 (Issue #37)
I've pushed numerous changes to RDCOMClient and related packages now that I have a Windows setup in place (!). The outlook example works fine with this installation, at leas on my machine.
The logging of errors is now off, by default, and can be turned on by a call to an R function (writeErrors()) and one can specify the name of the file to which the information will be written.
— Reply to this email directly, view it on GitHub< https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1185157772>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AFPJYF6N6JX3HQD652QTA7DVUDRI5ANCNFSM5Y3POL6A>.
You are receiving this because you are subscribed to this thread.Message ID: @.**@.mailto:***@***.******@***.***>>
— Reply to this email directly, view it on GitHub https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186101863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEYAGIXYGKUIFJGMLHAY6DVUJKQ7ANCNFSM5Y3POL6A . You are receiving this because you commented.Message ID: @.<mailto:@.>> [ { @.<mailto:@.>": "http://schema.org", @.<mailto:@.>": "EmailMessage", "potentialAction": { @.<mailto:@.>": "ViewAction", "target": " https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186101863", "url": " https://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186101863", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.<mailto:@.>": "Organization", "name": "GitHub", "url": " https://github.com" } } ]
Duncan Temple Lang Associate Dean for Graduate Programs Professor, Department of Statistics UC Davis
— Reply to this email directly, view it on GitHubhttps://github.com/omegahat/RDCOMClient/issues/37#issuecomment-1186274704, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFPJYF6X3FF3EYGVOT7JU33VUMFPVANCNFSM5Y3POL6A. You are receiving this because you commented.Message ID: @.**@.>>
I am trying to install RDCOMClient on R 4.2.0 This is what I get in the console: