[ESS] R code gives error in Emacs but not in Tinn-R

Kasper Daniel Hansen khansen at stat.berkeley.edu
Wed Dec 2 23:03:16 CET 2009


On Nov 30, 2009, at 11:24 PM, Debabrata Midya wrote:

> 1. Running R Code using Emacs
> 
> library(foreach)
> 
> I have selected only the above line and then use C-c C-r to run. 
> 
> Then I have got this message below:
> 
> Error in library(foreach) : there is no package called 'foreach'
> 
> Note: I am 100% sure this library is installed.

Clearly that is not the case, as R tells you.

Are you sure that both ESS and Tinn-R refers to the same version of R?  Specifically, I would execute the following two commands in both R's and compare their results:

R.home()
.libPaths()

If the output differs between ESS and Tinn-R, you have your answer.

Kasper


More information about the ESS-help mailing list