R-beta: R-0.62.1 under Digital Unix

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Jul 1 15:24:37 CEST 1998

"Mark A. Beaumont" <M.Beaumont at ucl.ac.uk> writes:

> Following my previous practice I then make a symbolic link to R from
> /usr/local/bin. However when I then run R I get.

> ...opening messages...
> Error: memory exhausted
> > 1+1
> [1] 2
> > a <- c(1,2,3,4)
> > a
> [1] 1 2 3 4
> > help()
> Error: Object ".Library" not found
> > help(c)
> Error: Object ".lib.loc" not found

Some thing is clearly going wrong during the reading of the init code.
The question is "where?". It *is* a bit of a design problem in R that
that isn't readily seen. 

It could be in the reading of $RHOME/library/base/R/base which you
might want to check looks reasonable. You could also try to run
(from the top level of the R source tree) something like

R> source('library/base/R/base',echo=T)

which should rerun the init code, but with echoing turned on, so that
if it stops prematurely, you'll know why.

It is somewhat unlikely that the base file should be the culprit,
though, because it only defines a bunch of functions without actually
executing anything except "<-". 

Perhaps something in the system Rprofile is doing you in. Again, try
sourcing it with echo on. In particular, might there be a problem with
getenv() on your system?

Just to be sure, also check for stray .RData and .Rprofile files. If
the former exists and is too large, that would explain it all by

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list