I've been using R for the last few weeks, but not with much success. If I try sourcing test.R from the 'class' package, I get this error: Error in .C("VR_knn1", as.integer(ntr), as.integer(nte), as.integer(p), : C/Fortran function not in load table I checked the class.so file, and sure enough VR_knn1 is there. Why can't R find it? By the way, I'm running RedHat Linux, and downloaded the .rpm from lib.stat.cmu.edu/R/CRAN/bin/i386-linux/RedHat-5.0/R-base-0.61.2-1.i386.rpm Any help would be appreciated. -- Michael Kiefte Department of Linguistics University of Alberta -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Dear Michael Kiefte, as a happy (very new) user of R (thanks to everyone involved in writing this fine package- it's great!), all I could find out was that with the latest (?) _alpha_ version, for reasons unintelligible to me (sorry), the .../R-snapshot/library/class/R/class file lacks a line like library.dynam("class.so") at its very end. With this line included, the test.R from the class package works like a charm on my ELF Linux-2.0.91/GLIBC-2.1x box; otherwise, I see the error message you have described. Obviously, this is not a topic for the R-_beta_ discussion list, forgive me for having mentioned it here... In R-0.61.2 (compiled out of the box, that is, from the gzipped tar file), the last line of the R code for the class package in .../R-0.61.2/library/class/R/class is library.dynam("class", package = "class") For this version, the test.R file produces a nice graphical output without any changes... Best regards, Ernst --- ernst.molitor at uni-bonn.de Institute for Medical Microbiology and Immunology University of Bonn, FRG -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>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 tableI 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._