Skip to content

Instantly share code, notes, and snippets.

#https://www.r-bloggers.com/send-emails-with-attachments-from-r-command-line/
#load package
library(“sendmailR”)
#use string formatting and your system info to format FROM address
from <- sprintf(“<Project1@%s>”, Sys.info()[4])
to <- “<example@example.com>”
subject <- “Test Email From R”
@victor-geere
victor-geere / AndroidHttpAsyncTask.java
Last active September 19, 2016 09:30
Android GET json in AsyncTask
public class HttpAsyncTask extends AsyncTask<String, Void, Integer> {
private Context mContext;
public HttpAsyncTask(Context context) {
mContext = context.getApplicationContext();
}
@Override
protected void onPreExecute() {