From 2432d64f183727d8de2640b3db03874586dd1369 Mon Sep 17 00:00:00 2001 From: hyginn Date: Mon, 21 Sep 2020 14:54:30 +1000 Subject: [PATCH] update process for moving .myProfile.R --- .Rprofile | 4 +++- .myProfile.R | 2 +- BIN-MYSPE.R | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.Rprofile b/.Rprofile index db29816..542c70d 100644 --- a/.Rprofile +++ b/.Rprofile @@ -14,7 +14,9 @@ init <- function() { cat("\n\n") cat("Please open the file \".myProfile.R\" (click on the file-name in the\n") - cat("\"files\" pane), edit it, and save it into the \"myScripts\" folder.\n\n") + cat("\"files\" pane), edit it and save it.\n") + cat("Then click the checkbox, and use the More -> Move... dialogue\n") + cat("to move it into the \"myScripts\" folder.\n\n") file.edit("ABC-units.R") return(invisible(NULL)) diff --git a/.myProfile.R b/.myProfile.R index 71acd44..d42d608 100644 --- a/.myProfile.R +++ b/.myProfile.R @@ -8,7 +8,7 @@ # correct. # # NOTE: -# After you have updated this script, save the file in your "myScripts" folder. +# After you have updated this script, move the file to your "myScripts" folder. # Utility scripts will look for it on the path: "./myScripts/.myProfile.R" # # ============================================================================== diff --git a/BIN-MYSPE.R b/BIN-MYSPE.R index cf7a22c..5c24bab 100644 --- a/BIN-MYSPE.R +++ b/BIN-MYSPE.R @@ -34,13 +34,13 @@ #TOC> ========================================================================== -#TOC> +#TOC> #TOC> Section Title Line #TOC> ----------------------------------------------- #TOC> 1 Preparations 47 #TOC> 2 Suitable MYSPE Species 59 #TOC> 3 Adopt "MYSPE" 83 -#TOC> +#TOC> #TOC> ========================================================================== @@ -48,7 +48,7 @@ # # Execute the two conditionals below: -if (! file.exists("scripts/.myProfile.R")) { +if (! file.exists("./myScripts/.myProfile.R")) { stop("PANIC: profile file does not exist. Fix problem or ask for help.") } if (! exists("myStudentNumber")) {