From: Nick Dokos <nicholas.dokos@hp.com>
To: "Christopher W. Ryan" <cryan@binghamton.edu>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: how do scientists use org mode?
Date: Thu, 02 Feb 2012 00:10:17 -0500 [thread overview]
Message-ID: <5920.1328159417@alphaville> (raw)
In-Reply-To: Message from "Christopher W. Ryan" <cryan@binghamton.edu> of "Wed, 01 Feb 2012 23:25:27 EST." <4F2A1037.4010108@binghamton.edu>
Christopher W. Ryan <cryan@binghamton.edu> wrote:
> Thanks everyone for the advice and ideas. I see lots of potential, and
> also lots to learn.
>
> I made my first attempt at an R code block in an Org file. I'm running
> Ubuntu 10.04 LTS. Synaptic tells me that I have emacs 23.1+1-4ubuntu7.2,
> and Org 6.34c-1.
>
> I added this to my .emacs:
>
> ;; active Babel languages
> (org-babel-do-load-languages
> 'org-babel-load-languages
> '((R . t)
> ))
>
> Here is the source block:
>
> #+begin_src R
> getwd()
> dd <- read.csv("cars.csv", sep=",", header=TRUE)
> head(dd)
> str(dd)
> dd$date <- as.Date(as.character(dd$Date), format="%d-%b-%y")
> names(dd)[4] <- "city"
> table(is.na(dd$date))
> min(dd$date, na.rm=TRUE); max(dd$date, na.rm=TRUE)
> #+end_src
>
> emacs seems to do the syntax highlighting properly, so I guess it is
> recognizing this as a code block.
>
> When I put point inside the block and type C-c C-c, emacs gives me this
> message:
>
> C-c C-c can do nothing useful at this location.
>
> I wonder if I have Babel? Is it "built in" to the emacs or Org versions
> that I have?
>
You probably have babel, but not the ob-R.el module - that came in 6.36+:
,----
| $ git blame -L1,1 lisp/ob-R.el
| 07388931 lisp/babel/langs/ob-R.el (Eric Schulte 2010-06-11 16:02:42 -0700 1) ;;; ob-R.el --- org-babel functions for R code evaluation
| $ git describe 07388931
| release_6.36-324-g0738893
`----
You can use some other language (elisp, shell, python probably all
existed in 6.34). But you will be happier I think with a more recent
version of org: visit http://orgmode.org/org-mode-download.html
and choose your poison.
o Many people update to the latest development version fairly frequently,
using git.
o Many others use the standard distribution (7.8.03 as of this writing):
download a .zip or .tgz file and install it. Alternatively, you can
use the Emacs package manager (ELPA): there are several entries in the
FAQ
http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development
that describe these methods in more detail.
o Many others use whatever is bundled with their emacs (invariably an
ancient org version that causes problems to everybody involved: org-mode
is moving very fast).
Nick
next prev parent reply other threads:[~2012-02-02 5:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 21:21 how do scientists use org mode? GMX Christoph 13
2012-01-27 1:35 ` Thomas S. Dye
2012-01-27 17:07 ` Eric S Fraga
2012-01-27 18:27 ` John Hendy
2012-01-28 17:39 ` Tomas Grigera
2012-01-30 17:37 ` Christopher W. Ryan
2012-01-30 19:51 ` cberry
2012-01-31 19:20 ` Christopher W Ryan
2012-01-31 20:13 ` Thomas S. Dye
2012-02-02 17:19 ` Christopher W. Ryan
2012-01-31 19:58 ` Simon Thum
2012-02-02 4:25 ` Christopher W. Ryan
2012-02-02 5:10 ` Nick Dokos [this message]
2012-01-28 15:38 ` Bodhi
2012-02-01 8:41 ` Sven Bretfeld
-- strict thread matches above, loose matches on Subject: below --
2012-02-03 21:06 GMX Christoph 13
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5920.1328159417@alphaville \
--to=nicholas.dokos@hp.com \
--cc=cryan@binghamton.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).