clear
rsource, terminator(END_OF_R) rpath("Path of Rterm.exe") roptions(`"--vanilla"')
//#install.packages("essurvey");
library(essurvey)
//# Set the working directory
setwd("Where you want to download the data to");
download_rounds(c(1, 2, 3, 4, 5, 6, 7, 8),
ess_email = "Registered email address",
output_dir = "data",
format = 'stata');
END_OF_R