{"id":16571662,"url":"https://github.com/hrbrmstr/rin-test","last_synced_at":"2026-04-15T16:03:09.095Z","repository":{"id":141238738,"uuid":"204503107","full_name":"hrbrmstr/rin-test","owner":"hrbrmstr","description":"Test of RInside with R 3.6, Xcode 11 \u0026 Swift 5 on macOS Catalina","archived":false,"fork":false,"pushed_at":"2019-08-26T15:16:33.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T21:44:09.066Z","etag":null,"topics":["macos","r","rcpp","rinside","rstats","swift","xcode"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrbrmstr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-26T15:16:19.000Z","updated_at":"2025-03-22T10:54:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"86b60337-4f46-449a-95ca-833c1dce0e85","html_url":"https://github.com/hrbrmstr/rin-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hrbrmstr/rin-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Frin-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Frin-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Frin-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Frin-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrbrmstr","download_url":"https://codeload.github.com/hrbrmstr/rin-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Frin-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31848664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","r","rcpp","rinside","rstats","swift","xcode"],"created_at":"2024-10-11T21:24:43.139Z","updated_at":"2026-04-15T16:03:09.062Z","avatar_url":"https://github.com/hrbrmstr.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test of RInside with R 3.6, Xcode 11 \u0026 Swift 5 on macOS Catalina\n\nThis is a sample Xcode 11 project (a nigh vanilla/default SwiftUI project) which has:\n\n- R 3.6\n- [RInside](http://dirk.eddelbuettel.com/code/rinside.html)\n- [Rcpp](http://www.rcpp.org/)\n\nall setup including sample bridging code to enable function execution and data exchange between Swift 5 and R.\n\nA few key things are included/set:\n\n- Search paths:\n    - `/Library/Frameworks/R.framework/Headers/`\n    - `/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RInside/include/`\n    -  `/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/`\n- Frameworks, Libraries and Embedded Content:\n    - `/Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libR.dylib`\n    - `/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RInside/lib/libRInside.dylib`\n    - Hardened Runtime is enabled with an entitlement of \"Disable Library Validation\" because the RInside and R shared libraries aren't codesigned  (see `rin-swift/rin_test.entitlements`)\n- one `.mm` file which lets Xcode know we're using Objective-C++. This is where you include things like `R.h`, `Rcpp.h`, and `RInside.h` or other C/C++ libraries\n- one ^^ corresponding `.hpp` file that has *no* imports or includes of anything R/Rcpp-ish and defines the functions you're going to expose to Swift\n- one bridging header (setup as as an \"Objective C Bridging Header\" under \"Swift Compiler\" in the General settings. This should just include ^^\n- R (RInside) is initialized in the `AppDelegate.swift` and an example of calling functions with and without parameters is in `ContentView.swift`\n\nThere are quite a number of post-compilation yellow flags due to the R-ish headers but it builds and runs fine.\n\nBuilt on the shoulders of:\n\n- Brian Hall's old-ish (2015) [example](http://www.brianrhall.net/rss/linkingxcodecandrtocreateplots) of getting R to play nice with Xcode\n- Ben Gorman's more recent (March, 2019) [example](https://www.gormanalysis.com/blog/using-rcpp-in-xcode/) of getting R 3.5 \u0026 RInside to play nice with Xcode\n- Patrick Wardle's [example](https://github.com/objective-see/ProcInfo/) of getting C-ish things to work with Objective C)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Frin-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrbrmstr%2Frin-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Frin-test/lists"}