In all my R installations I have the R package : classInt. I can call it from the R gui (even those located in the R Knime default installation) : D:\KNIME_2.10.4\plugins\org.knime.ext.r3.bin.win32.x86_3.0.3.0042976\R-Inst
with the instruction library(classInt)
when I try to use this same instruction in an R view (Table) Node, I've got the error message :
ERROR R Snippet java.lang.IllegalStateException: Execution of R script failed: Erreur dans library(classInt) : aucun package nommé 'classInt' n'est trouvé
ERROR R View (Table) Execute failed: Execution of R script failed: Erreur dans library(classInt) : aucun package nommé 'classInt' n'est trouvé.
Thank for your reply. The fact is, in Knime Preference I have :
R : D:\KNIME_2.10.4\plugins\org.knime.ext.r3.bin.win32.x86_3.0.3.0042976\R-Inst
R script : D:\KNIME_2.10.4\plugins\org.knime.ext.r3.bin.win32.x86_3.0.3.0042976\R-Inst
If I follow this link and type in the corresponding Rguide or more directly in the R.exe library(classInt) it works. Returning in Knime I have again in the R view (Table) :
ERROR R Snippet java.lang.IllegalStateException: Execution of R script failed: Erreur dans library(classInt) : aucun package nommé 'classInt' n'est trouvé
ERROR R View (Table) Execute failed: Execution of R script failed: Erreur dans library(classInt) : aucun package nommé 'classInt' n'est trouvé
I dowloaded other packages and it works perfectly. Only this one causes a problem.
I really can't figure where the problem comes from but it seems that installling from R doesn't work properly on my machine. So I used knime to fill the good R library. After having downloaded the zip R packages in a special folder I just execute a workflow like in attachment to filll the proper R library directory and it works fine. If it can help somebody in the future...
with my installation ROCR works. Check your R directory installation in "Preferences->Knime->R" for me it's "C:\Program Files\KNIME_2.10.4\plugins\org.knime.ext.r3.bin.win32.x86_3.0.3.0044664\R-Inst"
go to the library directory under it and check if you have the directory ROCR within it. If not unzip it and copy the directory ROCR you obtained after unzip.
I had not thought about that. Indeed, I used default R directory installation and in this case I haven't checked this setting. As a result, library(ROCR) works with my installation :-).