Rearrange R evaluation code so that .Last.value evaluated in :results value case...
commited688ed93866dc083424a5ae1577aac8d56f405b
authorDan Davison <davison@stats.ox.ac.uk>
Thu, 3 Sep 2009 15:47:32 +0000 (3 11:47 -0400)
committerDan Davison <davison@stats.ox.ac.uk>
Thu, 3 Sep 2009 15:47:32 +0000 (3 11:47 -0400)
treea4943b1700590bba96770e0358abb66537d2caac
parent37e152f61dc0e0f223665552d478312080d75d98
Rearrange R evaluation code so that .Last.value evaluated in :results value case only

One example of a problem that crops up without this is a block like

f <- function(x) x

without this change, in :results output mode, we make an attempt to
coerce .Last.value (a function) to a data frame, which throws an
error.
lisp/langs/org-babel-R.el