# R and Python together in RStudio

**URL:** <https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458>\
**Category:** Offtopic\
**Created:** [December 18, 2019, 10:25pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458 "2019-12-18T22:25:02Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![Steven\_Sagaert](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steven_sagaert/32/29578_2.png) [@Steven\_Sagaert](https://discourse.julialang.org/u/Steven_Sagaert)\
**Post date:** [December 22, 2019, 2:59pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/22 "2019-12-22T14:59:53Z")

</div>

The only real change I see is how reference tracking is implemented and that’s good. They probably got inspired by [http://www.pqr-project.org](http://www.pqr-project.org). I wish they would take more of those features on or all of them. Now that would qualify as a new major release.

---

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [December 22, 2019, 3:28pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/23 "2019-12-22T15:28:13Z")

</div>

To me that’s kind of upsetting that this is only happening now… That seems like a feature of an actual programming language, that should be included from version 1.0 and on. The fact it was deemed nonessential for so long speaks volumes on to what was prioritized. No offense to R or whatever, my entire dissertation was performed using it, it’s just not what maybe some people think that it is.

---

<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:** [December 22, 2019, 4:30pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/24 "2019-12-22T16:30:20Z")

</div>

@anon92994695 yes, I have described _RCall_ in [Data Analysis with Julia](https://www.amazon.de/Datenanalyse-mit-Julia-Einstieg-Programmiersprache/dp/3749485089/ref=sr_1_2?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&keywords=datenanalyse+mit+Julia&qid=1577031585&sr=8-2) using the example of a PCA and factor analysis. This works quite well, only if the return of R is too complex, it becomes “cumbersome” to use the desired return parameters in Julia. R is “old” and you can notice that from time to time (I started with R about 2006). And that …

> Julia learned from the mistakes of both of these languages and corrected them from day 1.

… I expect from Julia, too. 🕶 (But often I still feel like a beginner! 😉)

---

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [December 22, 2019, 5:15pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/25 "2019-12-22T17:15:37Z")

</div>

Oh I am a beginner. I think the beauty of it is, pretty much everyone is right now. Don’t get me wrong the people contributing to the core language aren’t. But, I feel like even they still scratch their head sometimes and think “I guess you can do that?”. I think that’s whats so great about it in the first place. It’s generic and flexible enough that people can actually “discover” things rather then “force” them into existance or memorize a million doc’s pages. Not always, but it’s the best mileage I’ve gotten from minimal investment with any language. That’s why I’m obsessed and posting on here all the time about often trivial/contrived things. I’m a resident cheerleader of sorts :P.

---

<div class="post-metadata">

**Author:** ![Yifan\_Liu](https://avatars.discourse-cdn.com/v4/letter/y/4da419/32.png) [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Post date:** [December 22, 2019, 5:43pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/26 "2019-12-22T17:43:52Z")

</div>

exactly. R seems very slow in terms of incorporating performance-enhancing features.

I talked to some statistics professors who exclusively use R for their teaching and research. They told me that R is the only language that is written by statisticians and for statisticians. In addition, they are not worried about the performance of R since Rcpp is very neat to use.

---

<div class="post-metadata">

**Author:** ![Yifan\_Liu](https://avatars.discourse-cdn.com/v4/letter/y/4da419/32.png) [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Post date:** [December 22, 2019, 5:50pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/27 "2019-12-22T17:50:16Z")

</div>

It is a pity that the maintainer of pqR, Radford Neal, is not a member in the R foundation.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [December 23, 2019, 9:14am UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/28 "2019-12-23T09:14:08Z")

</div>

> [@Yifan\_Liu](#):
>
> R is the only language that is written by statisticians and for statisticians

I have heard this before, but I am not sure I understand what it means.

People sometimes say this to imply that R can be used by people with limited programming experience. Which is true for just coding scripts. But when it comes to writing performant R packages (which many statisticians do to demo new results), then it’s up C++ creek without a paddle.

---

<div class="post-metadata">

**Author:** ![Zach\_Christensen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zach_christensen/32/7220_2.png) [@Zach\_Christensen](https://discourse.julialang.org/u/Zach_Christensen)\
**Post date:** [December 23, 2019, 9:51am UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/29 "2019-12-23T09:51:22Z")

</div>

To be fair, there is a paddle. It’s Rcpp, but then you realize there are some holes in the paddle. So you look at Python for a bit. There’s like three ways to do the same thing as Rcpp in Python which opens some nice possibilities. Then you need to do something more in line with classic statistics than machine learning and it would require tons of statistical packages in in C++ and connecting them to Python. After that you find Julia.

---

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [December 23, 2019, 1:56pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/30 "2019-12-23T13:56:02Z")

</div>

Perfect explanaition… Just perfect… Should be framed in my office somewhere…

edit - one day I hope the wiki reads something more like this

`Julia language is an offshoot of the popular language called "Necessity". Although necessity is not programmatic, Julia is. This makes the language appealing to people who need to get things done. For other non-need based uses Julia is unpopular. Languages such as heaxagony, brainfuck, python and R have empirically been shown to meet these necessary minimal conditions[1,2,3,4,5,...100000]. Although, people struggling with getting things to work and work reliably, felt it was a good idea to look at the short comings of their means to meet their needs and create Julia.`

Now I’m being arrogant… Time to get off here before I say more unemployable things - I still use python and R from time to time as last resorts. Usually because someone else is too scared to leave their comfortzone and needs me to look at something… From time to time I even troubleshoot handcoded VB6.0 routines for matrix multiplication for people. Usually while having existential crisis’, contemplating joining the priesthood, going on a spirit journey, investing in a ponzi scheme, anything to find meaning/feel alive, but by all means I do what’s asked…

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [December 23, 2019, 9:21pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/31 "2019-12-23T21:21:32Z")

</div>

> [@Tamas\_Papp](#):
>
> it’s up C++ creek without a paddle.

Love the Australianism. Rcpp is highly regarded though. I used it to do a simple function. But not as nice as Julia. Julia just needs to advance more on the TTFP porblem and feel less lethargic to use.

---

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [December 23, 2019, 9:28pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/32 "2019-12-23T21:28:33Z")

</div>

Xiaodai that’s why we have a wizard like you here :).

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [December 24, 2019, 2:40pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458/33 "2019-12-24T14:40:37Z")

</div>

Rcpp is great, but while it makes _interfacing_ with C++ code much easier, it does not make C++ programming any nicer _per se_. Many statisticians code a C++ version of their algorithm, and then wrap with Rcpp to demo in R.

[Previous page](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458.md?page=1)
