./myScripts/.myProfile.R needs to be sourced after!

.utilities.R to ensure utility functions are available.
This commit is contained in:
hyginn 2020-10-01 03:04:35 +10:00
parent 9e77d948e9
commit 39417c8e60

View File

@ -36,8 +36,6 @@ if (! file.exists("./myScripts/.myProfile.R")) {
} else { # local profile exists ... validate state:
cat("\n\nLoading local functions ...")
source("./myScripts/.myProfile.R")
if (! exists("myEMail")) { # ... has eMail been defined?
cat("ERROR !\n")
cat("=======\n")
@ -63,6 +61,8 @@ if (! file.exists("./myScripts/.myProfile.R")) {
source(".utilities.R") # local profile appears sane, source utilities
source("./myScripts/.myProfile.R")
if (! exists("MYSPE")) { # if MYSPE has not yet been defined, define it now
# ... and write it into the profile.
prf <- readLines("./myScripts/.myProfile.R")