A small menubar app that allows you to switch between R versions quickly (if you have multiple versions of R framework installed).
https://rud.is/rswitch
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
//
// N o t i f y . s w i f t
// R S w i t c h
//
// C r e a t e d b y h r b r m s t r o n 8 / 2 4 / 1 9 .
// C o p y r i g h t © 2 0 1 9 B o b R u d i s . A l l r i g h t s r e s e r v e d .
//
import Foundation
import Cocoa
extension AppDelegate : NSUserNotificationCenterDelegate {
func notifyUser ( title : String ? = nil , subtitle : String ? = nil , text : String ? = nil ) -> Void {
let notification = NSUserNotification ( )
notification . title = title
notification . subtitle = subtitle
notification . informativeText = text
notification . soundName = NSUserNotificationDefaultSoundName
NSUserNotificationCenter . default . delegate = self
NSUserNotificationCenter . default . deliver ( notification )
}
func userNotificationCenter ( _ center : NSUserNotificationCenter , shouldPresent notification : NSUserNotification ) -> Bool {
return ( true )
}
}