No, sorry to flog a dead horse, but you do not appear to get it yet and you
really should understand this concept. The minimal reproducible example would
have been R code that we could run that generated an email that you think
should have the matrix in it, but does not. In practically all help
I understand what you are saying. I just didn't think that showing a sendmailR
with a matrix as the body of the message would have been very helpful since it
is the fact that the received email has no content that is the problem and that
would not have shown up in the R console output.
On Nov 1
You provided examples of what you wanted, but not examples where the same code
in a different context failed to provide the result you wanted. "Reproducible"
means "reproduces the problem".
---
Jeff Newmiller
I thought that I had provided an example of what I wanted to do but in any
case, capture.output seems to work, as in
sendmailR(to,from, capture.output(matrix_to_send))
I'm sure that there are myriad other ways (I tried print, which is mentioned in
FAQ 7.16 but it doesn't work in this context)
You have not provided the minimal reproducible code that the footer of this
email asks for, so we are playing 20 questions.
Perhaps you should convert the matrix to a data frame? Or is this an example of
FAQ 7.16?
---
Jeff N
I think it'd be easier and safer to save the matrix, either as an .Rdata
binary or as a text file, zip that file, and use the sendmailR tools to
attach the file to your message.
Fuchs Ira-3 wrote
> I have a matrix which has colnames and I would like to send this matrix
> using sendmailR. How can
That's the ticket! So many functions…so little time. Thanks to everyone.
On Nov 18, 2013, at 9:47 AM, David Winsemius wrote:
>
> On Nov 18, 2013, at 8:30 AM, Ira Fuchs wrote:
>
>> Thanks for the suggestion. I just tried dput and it did not produce what
>> sendmailR requires for the body param
On Nov 18, 2013, at 8:30 AM, Ira Fuchs wrote:
Thanks for the suggestion. I just tried dput and it did not produce
what sendmailR requires for the body parameter. Here is a simplified
version of what I need to do:
x=matrix(c(1,2,3),1,3)
x
[,1] [,2] [,3]
[1,]123
colnames(x
Thanks for the suggestion. I just tried dput and it did not produce what
sendmailR requires for the body parameter. Here is a simplified version of what
I need to do:
> x=matrix(c(1,2,3),1,3)
> x
[,1] [,2] [,3]
[1,]123
> colnames(x)=c("a","b","c")
> x
a b c
[1,] 1 2 3
> dp
On 18 November 2013 05:37, Ira Fuchs wrote:
> I have a matrix which has colnames and I would like to send this matrix using
> sendmailR. How can I convert this simple matrix
My 1 cent; In case of large objects or full session, suitable for
attachment; RData might be more convenient, i.e., ?save
What about dput()?
On Mon, Nov 18, 2013 at 8:35 AM, Ira Fuchs wrote:
> I have a matrix which has colnames and I would like to send this matrix using
> sendmailR. How can I convert this simple matrix to a format which can be used
> as the body variable in sendmailR? I see how I can create a file
andag 18 november 2013 14:35
Aan: r-help@r-project.org
Onderwerp: [R] Sending a matrix in an email
I have a matrix which has colnames and I would like to send this matrix using
sendmailR. How can I convert this simple matrix to a format which can be used
as the body variable in sendmailR? I see how I ca
I have a matrix which has colnames and I would like to send this matrix using
sendmailR. How can I convert this simple matrix to a format which can be used
as the body variable in sendmailR? I see how I can create a file attachment
using mime_part but I would like to send the matrix in the body
I have a matrix which has colnames and I would like to send this matrix using
sendmailR. How can I convert this simple matrix to a format which can be used
as the body variable in sendmailR? I see how I can create a file attachment
using mime_part but I would like to send the matrix in the body
14 matches
Mail list logo