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.
35 lines
679 B
35 lines
679 B
//
|
|
// WebViewController.swift
|
|
// RSwitch
|
|
//
|
|
// Created by hrbrmstr on 9/5/19.
|
|
// Copyright © 2019 Bob Rudis. All rights reserved.
|
|
//
|
|
|
|
import Cocoa
|
|
import WebKit
|
|
|
|
class WebViewController: NSViewController {
|
|
|
|
@IBOutlet weak var rstudioServerView: WKWebView!
|
|
|
|
var url = "https://rstudio.hrbrmstr.de/"
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
}
|
|
|
|
override func viewDidAppear() {
|
|
super.viewDidAppear()
|
|
self.view.window?.title = url
|
|
let request = URLRequest(url: URL(string: url)!)
|
|
rstudioServerView.load(request)
|
|
}
|
|
|
|
override var representedObject: Any? {
|
|
didSet {
|
|
// Update the view, if already loaded.
|
|
}
|
|
}
|
|
|
|
}
|
|
|