# R "added library" error

**URL:** <https://forum.knime.com/t/r-added-library-error/837>\
**Category:** KNIME Extensions\
**Tags:** scripting\
**Created:** [August 17, 2010, 12:26am UTC](https://forum.knime.com/t/r-added-library-error/837 "2010-08-17T00:26:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fox3c](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@fox3c](https://forum.knime.com/u/fox3c)\
**Post date:** [August 17, 2010, 12:26am UTC](https://forum.knime.com/t/r-added-library-error/837/1 "2010-08-17T00:26:18Z")

</div>

So I'm trying to run a local R snippet using the dprep (data processing) package.&nbsp; I'm been trying to run some of the discretization algorithms like chiMerge, but I'm getting the following error:

**ERROR&nbsp;&nbsp; &nbsp; R Snippet (Local)&nbsp;&nbsp; &nbsp; Execute failed: Execution of R script failed: Calls: chiMerge -\> table**

I've tried outputting the data into a csv, loading it directly into R, and running the same command within R, and it works fine.&nbsp; Here's the command:

**a\<-chiMerge(data1, 1:4, alpha=.05)**

I don't understand why I'm getting the error.&nbsp; It appears that "table" is actually another function within the dprep package.&nbsp; Also of note, the dprep package is no longer maintained in CRAN, so that may have something to do with it.&nbsp; I use other R snippets all the time without a hitch.&nbsp; Anyone have any idea why I'm might be getting this error?&nbsp; Or how I might get around it?

thanks in advance,

Casey

---

<div class="post-metadata">

**Author:** ![Ergonomist](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ergonomist/32/2122_2.png) [@Ergonomist](https://forum.knime.com/u/Ergonomist)\
**Post date:** [September 1, 2010, 10:45am UTC](https://forum.knime.com/t/r-added-library-error/837/2 "2010-09-01T10:45:52Z")

</div>

Just a thought - the R versions might differ. On a fresh install, KNIME uses its own R package, which may be either older or newer than the one you tried in manually. In order to make sure, check the "R executable" setting. You can set the R nodes to use your R installation by default in File / Preferences / KNIME / R.

HTH  
 E

---

<div class="post-metadata">

**Author:** ![AI](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/e274bd/32.png) [@AI](https://forum.knime.com/u/AI)\
**Post date:** [February 4, 2011, 2:37pm UTC](https://forum.knime.com/t/r-added-library-error/837/3 "2011-02-04T14:37:38Z")

</div>

Hi! A bit late for u, but I found a solution.

THe dprep package last built is 2.9, so it is not included anymore. You can start the R Gui (located in your Knime-Plugin Folder under ext.R.... and install dprep.

Here is a link where you can get it:

http://cran.r-project.org/&nbsp;&nbsp;&nbsp; -\> go to r binaries contrib-\>2.9 dprep

install it locally or remote (Muenchen Server)

if the error is still there, u need an older R-Installation. Therefor either install an older R-Inst in the same folder (rename the other one \_Inst\_backup) or you can install an older knime version (2.1), install the RPlugins and copy the R Installation to your new knime folder. Than install the dprep paket and it'll work.

If you didn't get the steps done contact me. I'll help u

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 2, 2023, 9:32pm UTC](https://forum.knime.com/t/r-added-library-error/837/4 "2023-06-02T21:32:18Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
