# Using RCall, R 3.5.3 -\> R 3.6.1

**URL:** <https://discourse.julialang.org/t/using-rcall-r-3-5-3-r-3-6-1/26675>\
**Category:** Statistics\
**Created:** [July 23, 2019, 10:07am UTC](https://discourse.julialang.org/t/using-rcall-r-3-5-3-r-3-6-1/26675 "2019-07-23T10:07:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gunter\_Faes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunter_faes/32/12580_2.png) [@Gunter\_Faes](https://discourse.julialang.org/u/Gunter_Faes)\
**Post date:** [July 23, 2019, 10:07am UTC](https://discourse.julialang.org/t/using-rcall-r-3-5-3-r-3-6-1/26675/1 "2019-07-23T10:07:40Z")

</div>

First of all, this is just a field report!

With R version 3.6.0, some major changes and enhancements have been implemented compared to the previous versions (e.g. R 3.5.3). This means that it became necessary to install the current R version 3.6.1 and to adapt RCall. Julia and R didn’t get along after the R upgrade. After the upgrade I checked the correctness of the register entries and set the path variable to the new R version. But that didn’t help…

I’d like to share my experience with you, which is really important: You have to set the Julia environment variable R\_HOME with the R directory:

```julia
julia> ENV["R_HOME"] = "C:\\Program Files\\R\\R-3.6.1"

```

Then _build RCall_ must be executed:

```julia
pkg> build RCall

```

Afterwards the communication between Julia and R went smoothly again.

The solution was already mentioned [here](https://discourse.julialang.org/t/using-rcall/22714), I just wanted to describe it more clearly.

Regards,  
Guenter

---

<div class="post-metadata">

**Author:** ![Gunter\_Faes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunter_faes/32/12580_2.png) [@Gunter\_Faes](https://discourse.julialang.org/u/Gunter_Faes)\
**Post date:** [July 23, 2019, 10:08am UTC](https://discourse.julialang.org/t/using-rcall-r-3-5-3-r-3-6-1/26675/2 "2019-07-23T10:08:12Z")

</div>

It’s solved!
