[R] lib.fixup

David Brahm a215020 at agate.fmr.com
Fri Oct 12 16:27:39 CEST 2001

Hi, all,

Can anyone tell me what this line in library() does?
  .Internal(lib.fixup(env, .GlobalEnv))

The reason I ask is that I'm writing a function that uses a bit of library()
code, and I want to know if I should include it:

  g.data.attach <- function(dir, pos=2) {
    env <- attach(NULL, pos, paste("package",basename(dir),sep=":"))
    attr(env, "path") <- dir
    sys.source(file.path(dir, "R", basename(dir)), env, keep.source=F)

Thanks!  I'll try to make this my last message for today!

			  -- David Brahm (brahm at alum.mit.edu)
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