R-beta: C/Fortran function not in load table

Bill Venables wvenable at attunga.stats.adelaide.edu.au
Wed May 13 02:01:37 CEST 1998

Paul Gilbert writes:
 > >> knn1(train, test, cl)
 > >Error in .C("VR_knn1", as.integer(ntr), as.integer(nte), as.integer(p),
 > >: C/Fortran function not in load table
 > This sounds like the bug which causes .Dyn.libs to linger in .RData, causing
 > code not to be dyn.loaded. If you really didn't intend to save .RData then you
 > can rm .RData before you start R. Otherwise, once R is started, but before you
 > use library() do rm(.Dyn.libs).

... or do it in .First.  Here's mine, for example:

.First <- function () {
    options(width = 65, length = 99999, editor = "emacs -nw", 
        contrasts = c("contr.treatment", "contr.poly"), 
        printcmd = "psprint -")
    if (exists(".Dyn.libs")) remove(".Dyn.libs")  # <-----------
    if (interactive() && getenv("DISPLAY") != "") x11()

but it really should not be necessary.  Is the flaw and its fix
now understood?

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