very basic R nodes in KNIME - knime.in, knime.out and handle Flow Variables
The Component will provide you with a curated R version in a conda environment "knime_r_environment"
You will need a working Miniforge (https://github.com/conda-forge/miniforge) or Miniconda (https://docs.conda.io/en/latest/miniconda.html) or Anaconda environment. As an alternative you could install your own R/RStudio and point KNIME to it without propagation.
In the /data/ folder there will be an Excel File my_r_packages_.xlsx that would contain a list of R packages from the installation.
---------------------------------
# you will need a working Anaconda oder Miniconda installation
# please note - the popular Anaconda package has changed its licensing recently.
# So make sure you comply with that. Or use Miniconda with conda-forge for the time being
# https://docs.conda.io/en/latest/miniconda.html
# following: https://hub.knime.com/marcelw/spaces/Public/latest/Conda_Environment_Propagation_for_R~WqCc-xp5owF0HC4p
conda create -n knime_r_environment -c defaults -c conda-forge r-base r-rserve r-essentials
# you might have to install a special version of RServe > 1.8.6
conda install -c conda-forge r-rserve=1.8_7
#
# To activate this environment, use
#
conda activate knime_r_environment
#
# To deactivate an active environment, use
#
# $ conda deactivate
# install in one step
conda install -c conda-forge r-ggplot2 r-sessioninfo r-foreign r-readr r-readxl r-cairo
# install in individual steps
conda install -c conda-forge r-sessioninfo
conda install -c conda-forge r-foreign
conda install -c conda-forge r-readr
conda install -c conda-forge r-cairo
# if you want to use h2o from within KNIME
conda install -c conda-forge r-h2o
# check the conda environments
conda info --envs
Workflow
very basic R nodes in KNIME - knime.in, knime.out and handle Flow Variables
External resources
- basic KNIME/R yaml/yml file to install R via conda
- find KNIME YAML environment configurations on local machine
- Miniforge
- Miniconda installation - "Miniconda is a free minimal installer for conda"
- Conda - Managing environments
- Conda_Environment_Propagation_for_R
- (official) KNIME Interactive R Statistics Integration Installation Guide
- A meta collection and article about R and KNIME
Used extensions & nodes
Created with KNIME Analytics Platform version 4.7.1
- Go to item
- Go to item
- Go to item
- Go to item
- Go to item
- Go to item
Loading deployments
Loading ad hoc executions
Legal
By using or downloading the workflow, you agree to our terms and conditions.
Discussion
Discussions are currently not available, please try again later.