init_cookies
init_cookies.Rd
init_cookies() creates a local copy of the JavaScript file required for cookies to work. It checks whether there is already a www/ folder and if not, it creates one. It then checks whether the cookie-consent.js file exists in the www/ folder. If the file exists, it will print a message in the console to let you know it has overwritten it. If the file doesn't exist, it will make one and confirm it has done so.
No input parameters are required, run init_cookies()
in the console to run
the function
Examples
if (interactive()) {
init_cookies()
}