|boB Rudis 41e68c4b3f||8 meses atrás|
|Index/DataStore/v5||1 ano atrás|
|Pods||8 meses atrás|
|RSwitch||8 meses atrás|
|RSwitch.xcodeproj||8 meses atrás|
|RSwitch.xcworkspace||8 meses atrás|
|build||1 ano atrás|
|guide||8 meses atrás|
|releases||8 meses atrás|
|rswitch-cmd||8 meses atrás|
|.gitignore||1 ano atrás|
|LICENSE||1 ano atrás|
|NEWS.md||8 meses atrás|
|Podfile||1 ano atrás|
|Podfile.lock||1 ano atrás|
|README.md||1 ano atrás|
|rswitch-menu-example.png||1 ano atrás|
|rswitch.png||1 ano atrás|
Change 'Current' R version on macOS
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 for macOS Developer's Page since the official CRAN binary installers clean up after themselves quite nicely to prevent potentially wacky behavior.
All this GUI does is change the
Current alias target in
/Library/Frameworks/R.framework/Versions to the appropriate version. You can do that from the command line but the switcher GUI was created so that means some folks prefer click-switching.
After launching the app, there will be a new menu item in the main macOS menubar with a popup that will look something like this:
The checkmarked version is the default (i.e. the one
Current points to) and if you select any other version the alias will be changed. You can also launch a new Finder window that opens to the R frameworks directory or quit the app.
There are also links to various useful R macOS resources plus two menu items that will download the latest RStudio macOS daily or the latest macOS r-devel tarball. Neither shows a progress dialog but will download the respective files to
~/Downloads and both open the Finder to that directory as well as display an alert with any succes or failure. NOTE: that you will need to delete old versions of r-devel from
~/Downloads before re-downloading (this behavior might be changed in future releases).
releases directory contains ZIP files of various versions (see TODO for why there'll be future versions). Just download and extract and enjoy.
Other than that (and the example
LICENSE file) the rest is a super small Xcode project. It's commented as well to let you know what's going on.
You should really build this yourself since installing random binaries from the internet (or, even official ones from things like app stores) is fraught with peril. You have no guarantee that the releases are, indeed, built from this source tree. I could be stealing all your stuff! (NOTE: I'm not). Reading and understanding the source code and building the app on your own is the only way to ensure you're not going to be compromised.
This codebase has been uploaded to the following authoritative social coding sites:
Copyright (c) 2019 Bob Rudis, MIT License