[ESS] Unable to load library (package)

Kasper Daniel Hansen kaha at biostat.ku.dk
Fri Jun 24 19:13:16 CEST 2005


On Fri, 24 Jun 2005, Aric Gregson wrote:

> --On 6/24/05 4:35 AM +0200 Kasper Daniel Hansen sent:
> 
> > My guess is that it is a path issue, that your path is not the same
> > in the  two instances.
> >
> > Could you do a
> >   R> .libPaths()
> > on the two platforms. You will probably see that they differ and that
> > you  need to add something to the ESS process. The easiest way to do
> > this  (there are probably others), is to create a file
> >   ~/.Renviron
> > containing the line
> > R_LIBS=/Users/kdh/Rlib
> > with the /Usres/kdh/Rlib being exchanged with something appropriate.
> > If  you need several directories, use : to separate them.
> 
> I've created the file ~/.Renviron and placed the two directories that 
> came up in R Aqua. However, ESS still returns the same error. Do I need 
> to tell ESS to use the file ~/.Renviron somehow?

R should use the ~/.Renviron file automatically.

But before you spend more time on this: do you get two different results 
from .libPaths() when you execute the command in R Aqua as opposed to 
within ESS? If that is the case, you take the paths in R Aqua not present 
in ESS and add them to the ~/.Renviron

In my case (which for now is pretty default, I am new to MacOS), my 
~/.Renviron looks like

R_LIBS=/Users/kdh/Library/R/library
R_PAPERSIZE=letter
R_EDITOR=/usr/bin/nano

With that setting .libPaths() returns
> .libPaths()
[1] "/Users/kdh/Library/R/library"                     
[2] "/Library/Frameworks/R.framework/Resources/library"

If in doubt, just send me the output of the two .libPaths() commands. It 
might be something completely different you have problems with ... I am 
just makiing a guess based on my own struggles :)

Kasper

> >> Update (related??)
> >>
> >> I see now that I have the following message in Emacs:
> >>
> >>     Proc    Status    Buffer   Tty  Command
> >>     R       run         *R*    /dev/ttyp2 R --no-readline
> >>
> >> ===========================================================
> >> ess-help,
> >>
> >> I have searched the archives, but did not find anything specific.
> >>
> >> I get the following error after ESS starts without problems or
> >> errors:
> >>     > library(Design)
> >>     Error in library(Design) : there is no package called 'Design'
> >>
> >> This after I just did rebuild the package from local source. It works
> >> fine in R Aqua. There are other packages that I cannot load as well.
> >> I have the packages installed in /Library/...., not in the local
> >> userland.
> >>
> >> I am running OS X 10.3.9, ESS 5.2.8, R version 2.1.0 and Carbon
> >> GnuEmacs of April 2005.
> >>
> >> Any suggestions? It is working fine on another mac with same
> >> configuration (at least I thought the same configuration).
> >>
> >> thanks,
> >>
> >> aric
> >>
> >> ______________________________________________
> >> ESS-help at stat.math.ethz.ch mailing list
> >> https://stat.ethz.ch/mailman/listinfo/ess-help
> >>
> 
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>




More information about the ESS-help mailing list