From fe159b601dc85f21e74c4df655d4119269f4ecf7 Mon Sep 17 00:00:00 2001 From: DavidhoPIK <101278418+DavidhoPIK@users.noreply.github.com> Date: Wed, 10 Apr 2024 18:35:54 +0200 Subject: [PATCH] Improved terms and clarity of t07_startScript.md --- _tutorials/t07_startScript.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/_tutorials/t07_startScript.md b/_tutorials/t07_startScript.md index 688a529..1abde5b 100644 --- a/_tutorials/t07_startScript.md +++ b/_tutorials/t07_startScript.md @@ -69,12 +69,20 @@ before we write our own starting script. If you navigate to **scripts/start/default.R**, you’ll see that the **default.R** script has the following structure: (you can open this -script in R or even in a plain-text editor). +script in RStudio or even in a plain-text editor). ``` r -###################################### -#### Script to start a MAgPIE run #### -###################################### +# | (C) 2008-2024 Potsdam Institute for Climate Impact Research (PIK) +# | authors, and contributors see CITATION.cff file. This file is part +# | of MAgPIE and licensed under AGPL-3.0-or-later. Under Section 7 of +# | AGPL-3.0, you are granted additional permissions described in the +# | MAgPIE License Exception, version 1.0 (see LICENSE file). +# | Contact: magpie@pik-potsdam.de + +# ------------------------------------------------ +# description: start run with default.cfg settings +# position: 1 +# ------------------------------------------------ # Load start_run(cfg) function which is needed to start MAgPIE runs source("scripts/start_functions.R") @@ -84,7 +92,7 @@ start_run(cfg="default.cfg") ``` This is a basic script with no complex structure but let’s go through -this step-by-step. The first line is: +this step-by-step. The first command is: ``` r source("scripts/start_functions.R") @@ -96,7 +104,7 @@ start\_functions.R does but we just have to remember that this script loads the config file and then loads start\_run function with this config which is needed to start MAgPIE runs. -Moving forward, the second line is: +Moving forward, the second command is: ``` r start_run(cfg="default.cfg")