Closed mlamias closed 1 year ago
I'm getting this error also after updating R to 4.2 from 4.1. I suspect it's to do with this change: https://bitcoden.com/answers/r-warning-lengthx-2-1-in-coercion-to-logical1
work around by using semicoma, ie "recipient1@mail.com;recipient2@mail.com"
Hey @hongooi73
I saw your commit where you added the if(!is_empty(addr_list) && any(is.na(addr_list)))
to solve this issue but i think you missed line 116 where the same pattern repeats. Now, in R 4.3 this behaviour is no longer a warning but an error.
https://github.com/Azure/Microsoft365R/blob/0b44737257b6b0c46d60471b294822d9001f5d9f/R/build_email_request.R#L116
I created a fork that solves this problem #150
@robayo thanks for the heads-up, I've added the fix.
Hi... I am still getting the error below even after devtools::install_github("Azure/Microsoft365R") to get the most updated version of the package.
Error in !is_empty(addr_list) && is.na(addr_list) : 'length = 3' in coercion to 'logical(1)'
This should be fixed in the dev branch. Let me know if it still breaks.
i have reinstalled the package via devtools::install_github("Azure/Microsoft365R", force = TRUE), and i am still getting the same error .... Please advise.
You have to install the dev branch: install_github("Azure/Microsoft365R@dev")
I am attempting to send a message to multiple email recipients using the following sample code:
The email appears to be sent correctly to all recipients, but when I sent up the email message, I receive a warning message that reads as follows:
When I address the email to only a single recipient, I do not get this warning. Is there a reason why I receive this message when attempting to send to multiple recipients? Is there a different method of constructing the code to avoid this warning message, or is this a bug of some sort?
Thanks.