### Get the default encoding
psyverse::opts$get(encoding);
### Set it to UTF-8-BOM
psyverse::opts$set(encoding = "UTF-8-BOM");
### Check that it worked
psyverse::opts$get(encoding);
### Reset this option to its default value
psyverse::opts$reset(encoding);
### Check that the reset worked, too
psyverse::opts$get(encoding);
Run the code above in your browser using DataLab