BUGFIX: variable was tested before being loaded

This commit is contained in:
hyginn 2020-10-03 08:57:03 +10:00
parent e0ff45fe94
commit 285c0db8a5

View File

@ -36,6 +36,9 @@ if (! file.exists("./myScripts/.myProfile.R")) {
} else { # local profile exists ... validate state: } else { # local profile exists ... validate state:
cat("\n\nLoading local functions ...") cat("\n\nLoading local functions ...")
source(".utilities.R") # local profile appears sane, source utilities
source("./myScripts/.myProfile.R")
if (! exists("myEMail")) { # ... has eMail been defined? if (! exists("myEMail")) { # ... has eMail been defined?
cat("ERROR !\n") cat("ERROR !\n")
cat("=======\n") cat("=======\n")
@ -59,9 +62,6 @@ if (! file.exists("./myScripts/.myProfile.R")) {
cat(" and fix the problem or contact your instructor to continue.\n\n") cat(" and fix the problem or contact your instructor to continue.\n\n")
} }
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 if (! exists("MYSPE")) { # if MYSPE has not yet been defined, define it now
# ... and write it into the profile. # ... and write it into the profile.