# R Node Problems on macOS for R version 3.5.3 with KNIME 3.7.1

**URL:** <https://forum.knime.com/t/r-node-problems-on-macos-for-r-version-3-5-3-with-knime-3-7-1/14966>\
**Category:** KNIME Extensions\
**Tags:** scripting\
**Created:** [April 25, 2019, 1:05am UTC](https://forum.knime.com/t/r-node-problems-on-macos-for-r-version-3-5-3-with-knime-3-7-1/14966 "2019-04-25T01:05:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EPHUACH](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ephuach/32/3302_2.png) [@EPHUACH](https://forum.knime.com/u/EPHUACH)\
**Post date:** [April 25, 2019, 1:05am UTC](https://forum.knime.com/t/r-node-problems-on-macos-for-r-version-3-5-3-with-knime-3-7-1/14966/1 "2019-04-25T01:05:42Z")

</div>

Hi,

Good day.  
Does any one know how to install Rserve 1.8.6 in MacOS,  
latest Rserve for macos is only with 1.7.3.1 ?  
I having issue with the R3.5.3 and KNIME 3.7.1  
where my R node show “R evaluation failed” at KNIME.

Error:  
**ERROR: Could not execute internal command.ERROR: R evaluation failed.: "sapply(ls(),function(a)class(get(a,envir=globalenv()))[1])"ERROR: R evaluation failed.: "sapply(ls(),function(a)class(get(a,envir=globalenv()))[1])"ERROR: eval failed**

Regards,  
Ed

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [April 25, 2019, 4:37am UTC](https://forum.knime.com/t/r-node-problems-on-macos-for-r-version-3-5-3-with-knime-3-7-1/14966/2 "2019-04-25T04:37:18Z")

</div>

There is a blog entry where I try to address this problem:

> [@Install R alongside KNIME on Windows and MacOS](https://forum.knime.com/t/install-r-alongside-knime-on-windows-and-macos/13287):
>
> Over the last months I have collected a few entries about the installation of [R](https://www.r-project.org) alongside KNIME that contain some maybe useful hints how to overcome certain obstacles while installing them. I want to bring them together here. (If you are looking for a basic guide about how to install R in the first place you might look [here](https://medium.com/@GalarnykMichael/install-r-and-rstudio-on-windows-5f503f708027) or [here](https://www.dummies.com/programming/r/how-to-install-r/)). A few maybe unnecessary remarks upfront. Yes it takes some effort to get KNIME and R up and running but in the end you will be rewarded with the whole world of pos…

---

<div class="post-metadata">

**Author:** ![EPHUACH](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ephuach/32/3302_2.png) [@EPHUACH](https://forum.knime.com/u/EPHUACH)\
**Post date:** [April 26, 2019, 4:54am UTC](https://forum.knime.com/t/r-node-problems-on-macos-for-r-version-3-5-3-with-knime-3-7-1/14966/3 "2019-04-26T04:54:30Z")

</div>

Hi mlauber71,

Thanks for the update and info. It do help a lots to resolve this problem.  
After read lots of post including the ref link you provided, here are the step i do to resolve this Rserve 1.8.6 issue on mac.

Here are my steps to Install Rserve1.8.6 in my mac:

1. Remove old clang, gfortran in my usr/local and usr/local/bin
2. Reinstall latest Xcode, clang and gfortran.
3. Check gcc and install, make sure all dependency install:
  - brew install gcc  
 ![gcc](https://forum-cdn.knime.com/uploads/default/original/2X/6/6ab62c1ac79908d2b9898d3b9c67db989067916c.png)

4. Install macOS\_SDK\_headers\_for\_macOS\_10.14.pkg  
 ![sdk](https://forum-cdn.knime.com/uploads/default/original/2X/8/8341235690703df0972749be6df6dc2e97a40443.png)
5. Make change on Makeconf file:
  - “/Library/Frameworks/R.framework/Resources/etc/Makeconf”
  - Change CXX = g++ instead of clang++  
 ![makeconf](https://forum-cdn.knime.com/uploads/default/original/2X/b/bbbda2071a0eb9d61628460959694592f69036c0.png)

6. Re-install Rserve package again:
  - install.packages(‘Rserve’,“[http://rforge.net/",type="source](http://rforge.net/%22,type=%22source)”)

Here is my Rserve with working R node in KNIME:

 ![rserve](https://forum-cdn.knime.com/uploads/default/original/2X/a/ad5ce8219c131cf865eaa44805eb78a1f2b3844b.png)  
 ![knime](https://forum-cdn.knime.com/uploads/default/original/2X/2/2d4170a3d5881644da15b8958696d35dd7457ed0.png)

Cheers and have a good day,  
Ed

---

<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:** [August 9, 2019, 8:39am UTC](https://forum.knime.com/t/r-node-problems-on-macos-for-r-version-3-5-3-with-knime-3-7-1/14966/4 "2019-08-09T08:39:37Z")

</div>

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