Ich möchte E-Mail unter Batch-Regime von R (Aufruf "D: \ R \ R-3.2.5 \ bin \ i386 \ R" --Internet2 CMD BATCH Skript. R). Unter gui-Regime funktioniert alles sehr gut.senden Sie E-Mail mit der Bibliothek gmailr unter Batch-Regime von R
Erste edit:
gmail_auth(scope='full',secret_file = 'client_id.json')
notification_email <- mime() %>%
to("[email protected]") %>%
from("[email protected]") %>%
subject("subject"))
send_message(notification_email)
aber haben
Error:oauth_listener() needs an interactive environment.
Zweite bearbeiten
ohne gmail_auth
notification_email <- mime() %>%
to("[email protected]") %>%
from("[email protected]") %>%
subject("subject"))
send_message(notification_email)
haben auch
Error: oauth_listener() needs an interactive environment.
danke! das funktioniert! –