There are various forums on here giving examples of how to email data from an R script to someone. However, In my project I am having users run an R script, and then have that R script somehow communicate the results generated by the user to me. The first part of the script is already written in R, so a solution in R is much preferred. (besides matlab and R I have very limited knowledge of other languages, I unfortunately don’t know PHP)
The problem is that the identity of the user must be protected such that no one can identify the person who ran the script from the file they send to me or deposit somewhere, so I can’t just use their email address in the from line. What are my options here? Could I set up an email account for them to email it to me? Could I have it so that the results are automatically uploaded to a repository online (maybe dropbox or google drive)? How can I do these things securely?
You can send mail using the SendMailR package. There is no requirement that the from address be a real e-mail address. Use your own SMTP server as the server settings.