# R packages with Fortran code

**URL:** https://fortran-lang.discourse.group/t/r-packages-with-fortran-code/1391
**Category:** Uncategorized
**Created:** [June 14, 2021, 11:10pm UTC](https://fortran-lang.discourse.group/t/r-packages-with-fortran-code/1391 "2021-06-14T23:10:22Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![nbehrnd](https://avatars.discourse-cdn.com/v4/letter/n/e0b2c6/32.png) [@nbehrnd](https://fortran-lang.discourse.group/u/nbehrnd)
#### Post date: [June 15, 2021, 10:12pm UTC](https://fortran-lang.discourse.group/t/r-packages-with-fortran-code/1391/2 "2021-06-15T22:12:11Z")

</div>

[Wikipedia](https://en.wikipedia.org/wiki/R_(programming_language)#cite_note-12) states R to be partially written in R, and other parts in C and Fortran. Recently, @KjellJorner initiated a discussion how to engage [Fortran from Python](https://fortran-lang.discourse.group/t/interfacing-fortran-code-from-python/1280) with examples _like_ `f2py`. Perhaps in contrast to you @Beliavsky, or others, I do not possess any working knowledge about R and still ask – out of curiosity\*: is there a similar bridge, while working within R, to reach out for Fortran? For me, [FortranCallsR](https://github.com/cran/FortranCallsR) found on the same [index](https://github.com/cran?q=fortran&type=&language=&sort=) mentioned by you looks just the other way around …

\*) In part equally a speculation: [fortran-lang.org](http://fortran-lang.org) might benefit from a directory-like compilation in tune of «if you happen to work in language `example`, you may reach (back) to Fortran e.g., with module / library `f2example` with typical limitations of x and y». This guide need not to be exhaustive.

---

_[View the full topic](https://fortran-lang.discourse.group/t/r-packages-with-fortran-code/1391)._
