The previous post introduced the topic of how to compile Swift code for use in R using a useless, toy example. This one goes a bit further and makes a case for why one might want to do this by showing how to use one of Apple’s machine learning libraries, specifically the Natural Language one,… Continue reading
Post Category → Swift
SwiftR Switcheroo: Calling [Compiled] Swift from R!
I’ve been on a Swift + R bender for a while now, but have been envious of the pure macOS/iOS (et al) folks who get to use Apple’s seriously ++good machine learning libraries, which are even more robust on the new M1 hardware (it’s cool having hardware components dedicated to improving the performance of built… Continue reading
New SwiftR Chapter Up: Building an R-backed SwiftUI macOS App
Last week I introduced a new bookdown series on how to embed R into a macOS Swift application. The initial chapters focused on core concepts and showed how to build a macOS compiled, binary command line application that uses embedded R for some functionality. This week, a new chapter is up that walks you though… Continue reading
Bringing R to Swift on macOS
Over Christmas break I teased some screencaps: A more refined #rstats #swift "SwiftR" example. Simple Image view + some text views, a color picker and a button that runs R-in-Swift code (like {reticulate} does for Python in R) Note no ssd/hd storage round-trip for the plot. Code snippet: https://t.co/fWaHnztUgd pic.twitter.com/y5m1I16tCB — Caliban's War (@hrbrmstr) December… Continue reading
RSwitch 1.5.0 Release Now Also Corrals RStudio Server Connections
RSwitch is a macOS menubar application that works on macOS 10.14+ and provides handy shortcuts for developing with R on macOS. Version 1.5.0 brings a reorganized menu system and the ability to manage and make connections to RStudio Server instances. Here’s a quick peek at the new setup: All books, links, and other reference resources… Continue reading
Quick Hit: A new 64-bit Swift 5 RSwitch App
At the bottom of the R for macOS Developer’s Page there’s mention of an “other binary” called “RSwitch” that is “a small GUI that allows you to switch between R versions quickly (if you have multiple versions of R framework installed).” Said switching requires you to use the “tar.gz” versions of R from the R… Continue reading