|boB Rudis 655d86c777||2 years ago|
|rin-bridge-code||2 years ago|
|rin-swift||2 years ago|
|rin-test.xcodeproj||2 years ago|
|README.md||2 years 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: