Browse Source

updates to DBabelExample for better viewing through the webpage

Eric Schulte 9 years ago
parent
commit
cd154e0bcd

BIN
images/babel/r-example.png


+ 3 - 4
org-contrib/babel/languages/R/RBabelExample.org

@@ -15,8 +15,7 @@ I like cereal, especially when it spells.
 Graph courtesy of
 http://addictedtor.free.fr/graphiques/sources/source_78.R
 
-
-#+BEGIN_SRC R :exports none :results none silent :var basename="test"
+#+begin_src R :exports code :results none silent :var basename="r-example"
 
  # Data from org
  doublePlot = function (base, plotFunc,
@@ -63,9 +62,9 @@ barplot(yhist$counts, axes=FALSE, xlim=c(0, top), space=0, horiz=TRUE)
 
 
   })
-#+END_SRC
+#+end_src
 
-# [[file:test.png]]
+[[file:../../../../images/babel/r-example.png]]
 
 #+LATEX: \includegraphics[width=\textwidth]{test.pdf}
 

+ 1 - 1
org-contrib/babel/languages/ob-doc-R.org

@@ -58,7 +58,7 @@
   :END:
 Examples demonstrating the use of R code within Org-mode.
 
-- [[file:R/RBabelExample.org][RBabelExample]] ([[http://repo.or.cz/w/Worg.git/tree/HEAD:/org-contrib/babel/languages/R/RBabelExample.org][.org]], [[http://repo.or.cz/w/Worg.git/tree/HEAD:/org-contrib/babel/languages/R/RBabelExample.pdf][.pdf]])-- a short introductory example
+- [[file:R/RBabelExample.org][RBabelExample]] ([[http://repo.or.cz/w/Worg.git/blob/HEAD:/org-contrib/babel/languages/R/RBabelExample.org][.org]], [[http://repo.or.cz/w/Worg.git/blob_plain/HEAD:/org-contrib/babel/languages/R/RBabelExample.pdf][.pdf]]) -- a short introductory example
 - [[file:../uses.org::#foo][foo.org]] ([[http://repo.or.cz/w/Worg.git/blob_plain/HEAD:/org-contrib/babel/examples/foo.org][.org]], [[http://repo.or.cz/w/Worg.git/blob_plain/HEAD:/org-contrib/babel/examples/foo.pdf][.pdf]],  [[http://repo.or.cz/w/Worg.git/blob_plain/HEAD:/org-contrib/babel/examples/foo.org.html][preview]]) -- a more complex example
 
 * Configuration in Org-babel				     :Write:noexport: