Skip to content
Prev 1130 / 63424 Next

R-beta: Not loading C library

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._