URL Downloading script in R – notes Variables Make sure your links in Variables section are correct When accessing folders or files (software file, destination folder, etc.), make sure you always use double backslash “\\” when constructing the path (i.e. “C:\\User\\Lukas\\Desktop\\aria2c.exe”) When defining folders, it’s good to always include double backslash “\\” at the end of path (i.e. “C:\\User\\Lukas\\Desktop\\ess401\\”) Workspace setup You might create new folder from R interface – the included dir.create() command will do that. When preparing for download, check whether the directory is present. Importing data After importing datalist, make sure the datalist is correct – has right column count, has headers (where aplicable), includes all variables, includes all hyperlinks Each of included lists differ slightly – some lists have headers and some not; some have more than one variable, some not; some have different separators For loop When using loop, make sure you are looping over variable (column in datalist) which contains URLs. It is the bold font in command “for(i in datalist$VAR)”