Skip to content

Instantly share code, notes, and snippets.

@ferblape
Created November 21, 2018 16:19
Show Gist options
  • Save ferblape/a5db41b7eb6f9dd13ffb76bca85924f1 to your computer and use it in GitHub Desktop.
Save ferblape/a5db41b7eb6f9dd13ffb76bca85924f1 to your computer and use it in GitHub Desktop.
R template
# Encodings
Sys.setlocale("LC_ALL", "en_US.UTF-8")
Sys.setenv(LANG="en_US.UTF-8")
Sys.setenv(LC_CTYPE="UTF-8")
# Dependencies
library("tidyverse")
# Set working directory
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment