Skip to content

Commit

Permalink
Add :eval no directive to passively called blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Davison committed Sep 21, 2010
1 parent ca2ac87 commit b9adf17
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions scraps/dan-tests.org
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
******* R
********* code
#+source: dir-test-R
#+begin_src R
#+begin_src R :eval no
date()
system("hostname")
getwd()
Expand All @@ -24,7 +24,7 @@
#+end_src

#+results:
: [1] "Mon Sep 20 23:33:07 2010"
: [1] "Tue Sep 21 22:55:13 2010"
: Luscinia
: [1] "/tmp"

Expand All @@ -41,7 +41,7 @@
******* ruby
********* code
#+source: dir-test-ruby
#+begin_src ruby
#+begin_src ruby :eval no
system("date")
system("hostname")
system("pwd")
Expand Down Expand Up @@ -73,7 +73,7 @@ system("pwd")
******* python
********* code
#+source: dir-test-python
#+begin_src python
#+begin_src python :eval no
import os, time
print time.ctime()
print os.uname()
Expand Down Expand Up @@ -104,7 +104,7 @@ system("pwd")
******* shell
********* code
#+source: dir-test-shell
#+begin_src sh
#+begin_src sh :eval no
date
hostname
pwd
Expand Down Expand Up @@ -277,7 +277,7 @@ into matlab-shell.
******* perl
********* code
#+source: dir-test-perl
#+begin_src perl
#+begin_src perl :eval no
system("date");
system("hostname");
system("pwd");
Expand Down Expand Up @@ -354,7 +354,7 @@ ans =
******* R
********* code
#+source: dir-test-R-value
#+begin_src R
#+begin_src R :eval no
c(date(), system("hostname", intern=TRUE), getwd())
#+end_src

Expand All @@ -379,7 +379,7 @@ ans =
******* ruby
********* code
#+source: dir-test-ruby-value
#+begin_src ruby
#+begin_src ruby :eval no
[1, 2]
#+end_src

Expand All @@ -402,7 +402,7 @@ ans =
******* python
********* code
#+source: dir-test-python-value
#+begin_src python
#+begin_src python :eval no
import os, time
[time.ctime(), os.uname(),os.getcwd()]
#+end_src
Expand All @@ -424,7 +424,7 @@ ans =
******* shell
********* code
#+source: dir-test-shell-value
#+begin_src sh
#+begin_src sh :eval no
echo This is the first line
echo There should have been a line before me
echo `hostname`
Expand Down Expand Up @@ -456,7 +456,6 @@ ans =
#+results:
: 300763


********* string
#+begin_src octave :session *babel-octave*
ans = 'string from octave with 100%'
Expand Down Expand Up @@ -554,7 +553,7 @@ x+0
******* python
********* code
#+source: dir-test-python-value-nonsession
#+begin_src python
#+begin_src python :eval no
import os, time
return [time.ctime(), os.uname(),os.getcwd()]
#+end_src
Expand Down Expand Up @@ -606,11 +605,11 @@ x+0
| /home/davison/bench | | | | | | | |
| There | should | be | a | line | after | me | |
| This | is | the | last | line | | | |

******* perl
********* code
#+source: dir-test-perl-value
#+begin_src perl :results value
#+begin_src perl :results value :eval no
(`date`,`hostname`,`pwd`) ;
#+end_src

Expand Down Expand Up @@ -648,7 +647,7 @@ x+0
| | | | | | |
******* clojure
********* code
#+begin_src clojure
#+begin_src clojure :eval no
(+ 2 2)
#+end_src
********* local
Expand Down

0 comments on commit b9adf17

Please sign in to comment.