# Using the statistical package R?

**URL:** <https://talk.observablehq.com/t/using-the-statistical-package-r/1562>\
**Category:** Uncategorized\
**Created:** [January 8, 2019, 10:03am UTC](https://talk.observablehq.com/t/using-the-statistical-package-r/1562 "2019-01-08T10:03:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lborgman](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/lborgman/32/1347_2.png) [@lborgman](https://talk.observablehq.com/u/lborgman)\
**Post date:** [January 8, 2019, 10:03am UTC](https://talk.observablehq.com/t/using-the-statistical-package-r/1562/1 "2019-01-08T10:03:14Z")

</div>

Is there any way to use R from within Observable?

---

<div class="post-metadata">

**Author:** ![bgchen](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/bgchen/32/784_2.png) [@bgchen](https://talk.observablehq.com/u/bgchen)\
**Post date:** [January 8, 2019, 2:22pm UTC](https://talk.observablehq.com/t/using-the-statistical-package-r/1562/2 "2019-01-08T14:22:30Z")

</div>

I believe this is possible using [OpenCPU](https://www.opencpu.org/); I’m working on a simple demo notebook based on their [JSFiddle examples](http://jsfiddle.net/user/opencpu/fiddles/) which I’ll post after breakfast!

**EDIT** : here it is:

> **[Hello, R on OpenCPU!](https://beta.observablehq.com/@bryangingechen/hello-r-on-opencpu)**
>
> An Observable notebook by Bryan Gin-ge Chen.

---

<div class="post-metadata">

**Author:** ![gabovailati](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/gabovailati/32/3002_2.png) [@gabovailati](https://talk.observablehq.com/u/gabovailati)\
**Post date:** [April 26, 2020, 4:52am UTC](https://talk.observablehq.com/t/using-the-statistical-package-r/1562/3 "2020-04-26T04:52:41Z")

</div>

Have a look at this notebook: [https://observablehq.com/@gabrielvailati/monte-carlo-simulation-study](https://observablehq.com/@gabrielvailati/monte-carlo-simulation-study)

---

<div class="post-metadata">

**Author:** ![dara](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/dara/32/3057_2.png) [@dara](https://talk.observablehq.com/u/dara)\
**Post date:** [May 7, 2020, 1:35pm UTC](https://talk.observablehq.com/t/using-the-statistical-package-r/1562/4 "2020-05-07T13:35:06Z")

</div>

This is impressive and very useful

---

<div class="post-metadata">

**Author:** ![cfgbelo](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/cfgbelo/32/7347_2.png) [@cfgbelo](https://talk.observablehq.com/u/cfgbelo)\
**Post date:** [January 4, 2023, 9:09pm UTC](https://talk.observablehq.com/t/using-the-statistical-package-r/1562/5 "2023-01-04T21:09:04Z")

</div>

@bgchen and @gabovailati any ideia why the OpenCPU and Observable integrations that you made as example did not work anymore (at least not entirely)?

---

<div class="post-metadata">

**Author:** ![bgchen](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/bgchen/32/784_2.png) [@bgchen](https://talk.observablehq.com/u/bgchen)\
**Post date:** [January 4, 2023, 10:30pm UTC](https://talk.observablehq.com/t/using-the-statistical-package-r/1562/6 "2023-01-04T22:30:11Z")

</div>

My notebook should work now, after updating the URLs to the public OpenCPU server instance. Thanks for the report!
