If you are currently in Stats with R, or just find yourself wanting to play with some R packages. Below are some commands to install the required Packages for Stats with R. This guide is intended for students using the C-208 Computers and logging into their CS accounts on the Ubuntu side.
Once you are logged in do the following:
1. Run R (Search “R” in the finder menu)
2. Install Packages (Rfit, npsm, UsingR, devtools, hbrfit, and npsm reg2.
NOTE: Please install these in order.
install.packages("Rfit") install.packages("npsm") install.packages("UsingR") install.packages("devtools") library(devtools) install_github("kloke/hbrfit") install_github("kloke/npsmReg2")
3. Load packages: If you wish to load any of these packages use the library command (see below)
library(Rfit) library(npsm) library(UsingR) library(hbrfit) library(npsmReg2)
You should now have all the packages you need for your Stats with R course.
This tutorial will teach you how to set up Sublime Text with SSH tunneling into our CS login servers through Putty. Which will allow you to edit your files from the login servers in Sublime Text in Windows.
What you need:
Configuring Sublime Text:
First we shall take care of updating Sublime Text 3 and installing the required Rmate packages.
1. Open Sublime Text and hit “ctrl + `”. This will bring up a terminal menu in Sublime (See below). Copy and paste the Python code here into the terminal and hit enter.
2. Hit “ctrl + shift + p” to bring up the package manager as seen below. Search for Install Package and select it.
3. Once in that menu search for “rsub” (As seen below) and hit enter. Once it is installed Sublime is ready.
Next we have the Putty configuration.
1. Open up Putty and enter “login.cs.wmich.edu” as seen below.
2. On the left side under “Connection” is the “SSH” tab, select it and select the “Tunnels” menu. The port we use is the default for rmate (52698) for Source Port and “Localhost:52698″ for Destination Port. Make sure that the “Remote” radio button is selected. Then click “add”. Once it is added it will appear in “Forwarded Ports:” like below. Finally click open and enter your bronco credentials to login to the server.
3. Below is an example of rmate and Sublime in action. By opening a file with “rmate <file>” while Sublime is open on Windows you will be able to edit and save it from within Sublime.
Congratulations, you are now able to edit your files on the login server from Sublime text editor. Note: In order to disconnect from the server you must close Sublime first.
This guide is to teach a user how to enable host-only networking on virtual box.
1. Open your virtual box preferences.
2. Select the “Network” tab once you are in the preferences menu. Once you have done this Select “Host-only Networks”. The white box will be empty. To fill it as seen below all you have to do is click the green plus sign on the right side of the menu. If done correctly it should look exactly as below. Click ok to continue.
3. Select your virtual machine (In my case this was an Ubuntu VM, this does not matter and will work on any virtual machine). Once it is highlighted click “Settings” and tab over to the “Network” menu. All that is left is to select “Host-only Adapter” next to “Attached to:” in this menu. Once that is complete it should automatically select the host-only adapter we just created. If done correctly it should look exactly like below. Click ok to continue.
Congratulations! You just created a host-only network for your virtual machine. If done correctly it should be unable to access the internet at this time.