Install R packages in KNIME R Statistics Integration (Windows Binaries)

Hi all,

I´ve installed the KNIME R Statistics Integration (Windows Binaries) [3.4.2.v201908271559] plug-in in KNIME, and I need to install some R packages (ggplot2…).

To do so, I execute R.exe located on C:\Program Files\KNIME\plugins\org.knime.ext.r3.bin.win32.x86_3.4.2.v201908122017\R-Inst\bin, and execute “install.packages(…” in the R console.

I´m wondering if there is a more direct way to install R packages from within a KNIME workflow, in the R script?

Thanks.

Hi @_Itu -

You can install R packages from within an R Snippet node too, using install.packages(). You will have to click through a couple of confirmation dialogs that pop up, but it does work.

2 Likes

I think you can bypass the cofirmation dialogs with the approach here:

1 Like