CSSS508

View the Project on GitHub rebeccaferrell/CSSS508

CSSCR lab instructions

Back to main

  1. Pick a computer and stick with it for the quarter -- it can take a few minutes to log in the first time you use each machine.
  2. Open the RStudio icon on the desktop (the blue circle with a white R inside, not the R 3.2.2 icon).
  3. When launching RStudio for the first time, it will say it doesn't know where R is. Click on the button to find R, paste in this directory, and then click OK: P:\Windows\R\bin\i386
  4. Hopefully RStudio will open up for you. If it remains blank, try closing RStudio and reopening it repeatedly. [If it still remains blank after many attempts, I unfortunately do not have a solution for you besides to log out and switch computers.]
  5. You won't have a directory to install packages the first time you're using R on that computer. In the RStudio GUI, go to the "Packages" pane on the bottom right, click "Install", and type in stringi to create a place for packages and install the stringi package. Once you've done this, you will be able to use the command install.packages to do installations later, but you need to use the RStudio GUI the first time on the CSSCR machines.
  6. Now you should be able to make an R Markdown file with File > New File > R Markdown, click OK, then click "Knit HTML". It will prompt you to save it in the default location, which is fine: C:\Users\[YOURUWNETID]\Documents. Warning: if you didn't install stringi in the previous step, knitting won't work and you'll get an error on the CSSCR machines.