From 8a7f59dfeb0db6c3a10616e5f4b3ce256d55d94f Mon Sep 17 00:00:00 2001
From: Alois Dirnaichner <alodi@directbox.com>
Date: Fri, 21 Feb 2020 16:42:28 +0100
Subject: [PATCH] Using stop instead of return to end EDGE_transport script in
 reporting mode.

---
 scripts/iterative/EDGE_transport.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/iterative/EDGE_transport.R b/scripts/iterative/EDGE_transport.R
index f5d329a..52f2414 100644
--- a/scripts/iterative/EDGE_transport.R
+++ b/scripts/iterative/EDGE_transport.R
@@ -240,7 +240,7 @@ if (opt$reporting) {
           file=datapath("demandF_plot_EJ.RDS"))
   saveRDS(shares_intensity_demand$demandF_plot_pkm,
           file=datapath("demandF_plot_pkm.RDS"))
-  return()
+  stop()
 }
 
 
-- 
GitLab