From pgilbert@bank-banque-canada.ca  Mon Mar 30 22:12:30 1998
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Mon, 30 Mar 1998 16:12:30 -0500
Subject: R-beta: Not loading C library
References: <351FD4CA.798F14@kiefte.v-wave.com>
Message-ID: <98Mar30.161712est.13442@mailgate.bank-banque-canada.ca>

>I try sourcing test.R from the 'class' package, I get this error:
>EError in .C("VR_knn1", as.integer(ntr), as.integer(nte), as.integer(p),
>: C/Fortran function not in load table

I haven't used this package but you should be using library("class") rather than
source to get class.so loaded. Also beware,
(R-devel: I HOPE THIS SIMPLE BUG IS FIXED IN NEW RELEASES OF R BECAUSE IT HAS
THE POTENTIAL TO CAUSE A LOT
OF UNNECESSARY PROBLEMS)
there was a message once on r-devel about a bug in library.dynam which may be
causing the problem. I've lost the message, but as I recall, if you save your
workspace when you q() (ie. create the .RData file) then when R starts it
reloads  a variable .Dyn.libs which indicates libraries which have been loaded
(even
though they are not yet loaded in the new session). I think if you
    rm(.Dyn.libs)
before you do
    library("class")
then it may work.

Paul Gilbert

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


R-beta: Not loading C library
Paul Gilbert