|boB Rudis 655d86c777 initial commit||1 month ago|
|rin-bridge-code||1 month ago|
|rin-swift||1 month ago|
|rin-test.xcodeproj||1 month ago|
|README.md||1 month ago|
This is a sample Xcode 11 project (a nigh vanilla/default SwiftUI project) which has:
all setup including sample bridging code to enable function execution and data exchange between Swift 5 and R.
A few key things are included/set:
.mmfile which lets Xcode know we’re using Objective-C++. This is where you include things like
RInside.hor other C/C++ libraries
.hppfile that has no imports or includes of anything R/Rcpp-ish and defines the functions you’re going to expose to Swift
AppDelegate.swiftand an example of calling functions with and without parameters is in
There are quite a number of post-compilation yellow flags due to the R-ish headers but it builds and runs fine.
Built on the shoulders of: