The R Journal: article published in 2012, volume 4:1

Foreign Library Interface PDF download
Daniel Adler , The R Journal (2012) 4:1, pages 30-40.

Abstract We present an improved Foreign Function Interface (FFI) for R to call arbitary native functions without the need for C wrapper code. Further we discuss a dynamic linkage framework for binding standard C libraries to R across platforms using a universal type information format. The package rdyncall comprises the framework and an initial repository of cross-platform bindings for standard libraries such as (legacy and modern) OpenGL, the family of SDL libraries and Expat. The package enables system-level programming using the R language; sample applications are given in the article. We outline the underlying automation tool-chain that extracts cross-platform bindings from C headers, making the repository extendable and open for library developers.

CRAN packages: rdyncall, Rffi

CC BY 4.0
This article is licensed under a Creative Commons Attribution 3.0 Unported license .

  author = {Daniel Adler},
  title = {{Foreign Library Interface}},
  year = {2012},
  journal = {{The R Journal}},
  doi = {10.32614/RJ-2012-004},
  url = {} ,
  pages = {30--40},
  volume = {4},
  number = {1}