Created
March 20, 2015 08:16
-
-
Save micstr/c50cd3f7c2ec6cc4bd08 to your computer and use it in GitHub Desktop.
identify machine name to adapt server connections or directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Identify what machine you are running on in R | |
# Use [[ to get the name out of entry | |
# Help from http://r.789695.n4.nabble.com/computer-name-td3593120.html | |
k.machine.name <- Sys.info()[["nodename"]] | |
k.dir.proj = "C:/Users/Michael/GitHub/FVCA" #ALIEN | |
if (identical(k.machine.name, "FVCA-BLOOMBERG")) { | |
k.dir.proj <- "C:/Users/Info/Documents/GitHub/FVCA" #FVCA-BLOOMBERG OVERRIDE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment