From eb34aae3bcfa939dee91818af51d57b3c7f98f06 Mon Sep 17 00:00:00 2001
From: Thomas Rushby <t.w.rushby@soton.ac.uk>
Date: Wed, 22 Jul 2020 11:43:33 +0100
Subject: [PATCH] Add data path for R locally on Mac

---
 env.R | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/env.R b/env.R
index f0b55a1..4c86f69 100644
--- a/env.R
+++ b/env.R
@@ -15,6 +15,10 @@ repoParams$user <- repoParams$info[[7]]
 # use this guess to set a data path
 # default
 dPath <- "unkown - find this line in env.R and fix it!"
+if (repoParams$sysname == "Darwin") {
+  # we're on a Mac (local) so we can set the data path to the Resource drive (if mounted)
+  dPath <- "/Volumes/Resource/CivilEnvResearch/Public/SERG/data/"
+}
 if (repoParams$nodename == "srv02405") {
   # we're on the UoS RStudio server so we can set the data path to J: (as mounted)
   dPath <- path.expand("/mnt/SERG_data/")
-- 
GitLab