[R] [ESS] package loadable in R 3.1.1 Rterm but not in emacs/ESS

Frede Aakmann Tøgersen frtog at vestas.com
Sat Sep 27 10:50:31 CEST 2014


Hi

If you execute .libPaths() in both instances of R what do you see then?

There shouldn't be any differences.

Br.

Frede Tøgersen


Sendt fra Samsung mobil


-------- Oprindelig meddelelse --------
Fra: Christopher W Ryan
Dato:26/09/2014 16.41 (GMT+01:00)
Til: R-help ,ess-help at stat.math.ethz.ch
Emne: [ESS] package loadable in R 3.1.1 Rterm but not in emacs/ESS

I'm running R on Windows 7. Clean install on a brand new computer
yesterday.  I installed Protext then R then Vincent Goulet's emacs
with ESS, in that order.

I then installed some R packages, in the R terminal window.  Among them was car

Today I opened emacs, hit M-x R to start an R session, and tried to
load the car library. Results looked like the following:


R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> > options(chmhelp=FALSE, help_type="text")
> options(STERM='iESS', str.dendrogram.last="'", editor='emacsclient.exe', show.error.locations=TRUE)
>
> library(car)
Error in library(car) : there is no package called 'car'
>



However, in an R terminal (that is, outside of emacs) the car package
loads fine:

R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(car)
>

I have not encountered this before and am confused. Why would R 3.1.1
in its terminal "see" a library, whereas it would not in emacs?  (car
is just an example; the same thing happens with zoo, stringr, Hmisc,
and others.)

Thanks.

--Chris Ryan

______________________________________________
ESS-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

	[[alternative HTML version deleted]]



More information about the R-help mailing list