Execute failed: New line in quoted string (or closing quote missing).

You should first follow the

https://docs.knime.com/2020-07/r_installation_guide/index.html

And if you encounter further problems you might want to explore this topic. Please note some hints might be outdated.