Skip to content

Instantly share code, notes, and snippets.

@danielecook
Created May 6, 2020 15:16
Show Gist options
  • Save danielecook/51d739d056cc45182e41717528d25ef8 to your computer and use it in GitHub Desktop.
Save danielecook/51d739d056cc45182e41717528d25ef8 to your computer and use it in GitHub Desktop.
Rstudio setwd to current working file
try(setwd(dirname(rstudioapi::getActiveDocumentContext()$path)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment