The use of R and KNIME can be a little bit challenging but you might want to refer to these two entries explaining the steps
Install R alongside KNIME on Windows and MacOS