From fedde073ace671780574f25ea8293d9134e5bacf Mon Sep 17 00:00:00 2001 From: Tommy Rushton Date: Tue, 9 Apr 2024 16:54:52 +0200 Subject: [PATCH] Fix source evaluation (for Org 9.6). --- module2/exo2/exercice_R_en.org | 6 +++--- module2/exo2/exercice_python_en.org | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module2/exo2/exercice_R_en.org b/module2/exo2/exercice_R_en.org index 2b73d64..c3368b5 100644 --- a/module2/exo2/exercice_R_en.org +++ b/module2/exo2/exercice_R_en.org @@ -1,5 +1,5 @@ #+TITLE: Your title -#+AUTHOR: Your name +#+AUTHOR: Thomas Rushton #+DATE: Today's date #+LANGUAGE: en # #+PROPERTY: header-args :eval never-export @@ -54,12 +54,12 @@ summary(cars) : Max. :25.0 Max. :120.00 Finally, an example for graphical output: -#+begin_src R :results output graphics :file "./cars.png" :exports results :width 600 :height 400 :session *R* +#+begin_src R :file cars.png :results output graphics file :exports results :width 600 :height 400 :session *R* plot(cars) #+end_src #+RESULTS: -[[file:./cars.png]] +[[file:cars.png]] Note the parameter ~:exports results~, which indicates that the code will not appear in the exported document. We recommend that in the diff --git a/module2/exo2/exercice_python_en.org b/module2/exo2/exercice_python_en.org index 5782f49..3fa3ccf 100644 --- a/module2/exo2/exercice_python_en.org +++ b/module2/exo2/exercice_python_en.org @@ -1,5 +1,5 @@ #+TITLE: Your title -#+AUTHOR: Your name +#+AUTHOR: Thomas Rushton #+DATE: Today's date #+LANGUAGE: en # #+PROPERTY: header-args :eval never-export @@ -60,7 +60,7 @@ print(x) #+end_example Finally, an example for graphical output: -#+begin_src python :results output file :session :var matplot_lib_filename="./cosxsx.png" :exports results +#+begin_src python :session :results output file :var matplot_lib_filename="./cosxsx.png" :exports results import matplotlib.pyplot as plt plt.figure(figsize=(10,5)) -- 2.18.1