[R-SIG-Mac] RSwitch 64-bit

Bob Rudis bob @end|ng |rom rud@|@
Sun Sep 1 20:07:34 CEST 2019


I shall def ask in the future (I just assumed what was on the macOS dev page was it and received the result of what I usually get for assuming things :-)

https://git.rud.is/hrbrmstr/official-rswitch has the official RSwitch from the SVN link you provided. It's been upgraded to a more modern Xcode project format and also has had deprecated Objective C methods migrated to non-deprecated ones. The nib has been converted to a xib and it should render equally well on dark and light mode enabled systems. Ideally it would get entitlements and be signed & notarized (and, you are likely well aware of these modern day hurdles but I'm just saying it for completeness to the entire list who might not as steeped in the development of mac apps). I can put ^^ on GitHub or anywhere else if it would be more convenient than my self-hosted gitea instance.

https://git.rud.is/hrbrmstr/RSwitch is the revamped Swift version I've made and it's now (as of the non-released 1.4.2 dev version) on-par feature-wise with the original in that it includes the precise version info along with the maj.min symlink version; and, it uses pretty much the same methods as the original RSwitch did/does including reading of Rversion.h to get the precise maj.min.pat version. A png of that is attached (I never remember if attachments make it or not so said png is at https://rud.is/gl/rswitch-swift.png). Two recent releases (1.4.0 and 1.4.1) have made it through the notarization gauntlet as well.

I've expanded the scope of it a bit (or more) as you'll see as you scan through it but it's def welcome to be on CRAN. I'm not sure of some of the expanded scope (it also references a vendor product) wld make that problematic or not, tho.

-boB

> On Aug 29, 2019, at 19:06, Simon Urbanek <simon.urbanek using r-project.org> wrote:
> 
> Bob,
> 
> It would be likely easier just to ask ;) the sources are still there in the original 2006 SVN repo:
> 
> http://svn.rforge.net/osx/trunk/RSwitch/
> 
> It’s really just a very tiny utility, but works on Catalina as well. I can try to build it on the CRAN machine so it will match the current R binaries and thus support the same OS X/macOS versions (assuming it’s not using something too new that’s incopatible).
> 
> I like the idea of the a menubar app - if/when you’re happy with your app, let me know and I’ll have a look. My only concern is to keep the R layout and detection in sync so if you are willing to contribute it we I can add it to the CRAN section.
> 
> Thanks,
> Simon
> 
> 
>> On Aug 22, 2019, at 5:07 AM, Bob Rudis <bob using rud.is> wrote:
>> 
>> On http://mac.r-project.org/ (which shld prbly be re-titled to "R for macOS Developer's Page"…I'd file a PR for that but do not know where that website source tree is maintained) there's a tiny binary at bottom of the page that enables switching of the `Current` R framework alias via a GUI.
>> 
>> TLDR: It's 32-bit and the source links stopped working even when the site was homed @ AT&T. As a result, it's unusable on the forthcoming Catalina GA release.
>> 
>> I have no idea how popular said tool is, but it's handy, so I threw together a Swift 5 version of it (and set a minimum macOS target of 10.14 since I cannot ethically enable use of woefully insecure operating systems).
> 
> [OT]
> Well, that’s nice, but leaves a many users especially those that cannot afford to buy a new Mac every year in the dark so the so-called “ethical” consideration is rather questionable since it’s rather the opposite. I would certainly want to make sure it works on OS X systems that are supported by CRAN.
> 
> 
> 
>> A core difference between the 2011 version and this 2019 version is that it's a menubar app vs a window app.
>> 
>> The code and binary release are at <https://git.rud.is/hrbrmstr/RSwitch>, which has links to other social coding sites where the codebase is co-maintained.
>> 
>> I have a bit more work to do on it (mostly just rounding out corners) but it has "worked for me" on Catalina betas and any/all contributions are welcome/encouraged.
>> 
>> -boB
>> 
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac using r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
> 



More information about the R-SIG-Mac mailing list