Compartmentalized | Documented | Extendible | Reproducible | Robust |
There is no set-up. Just log into RStudio Cloud with a Google email.
What is RStudio Cloud? RStudio in a website. Works just like RStudio on your computer in most ways. Free for not too intensive stuff. Note RStudio Cloud projects can be launched in RStudio platform or Jupyter! This is not R specific.
Why use RStudio Cloud?
Individuals You don’t have RStudio installed or you want to try a workspace (file, packages, etc) that someone else has prepared in order to try out code.
Instructors Teach without students having to install anything. Customize the workspace the way you want it.
Also easy entry to cloud computing, which is the way the field of code development is moving.
Schedule
3-3:50pm (Eastern): RStudio Cloud for individuals. I’ll give you a tour of the basic features.
4-5pm (Eastern): RStudio Cloud for instructors. I’l show you how to set-up a space for students and how to share that space in two different ways.
When you open RStudio you will see 4 panels:
require(graphics)
## Annette Dobson (1990) "An Introduction to Generalized Linear Models".
## Page 9: Plant Weight Data.
ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14)
trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69)
group <- gl(2, 10, 20, labels = c("Ctl","Trt"))
weight <- c(ctl, trt)
lm.D9 <- lm(weight ~ group)
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(lm.D9, las = 1) # Residuals, Fitted, ...
par(opar)
Click this: https://rstudio.cloud/project/2649365
It all just works (after installing the knitr and rmarkdown packages)!
For example, https://github.com/RVerse-Tutorials/Test
Tell RStudio Cloud you want use Git. Open your project then Click Tools > Global Options > Git/SVN (left nav) and check ‘Enable version control for RStudio projects’ {25%}
Click the Terminal tab in the lower left panel or click the blue cog below the Git tab in the upper right panel. {25%}
Type in this with your info
git config --global user.email "<your email>"
git config --global user.name "<your name>"
Make a change to a file and commit the change. * Click the Git
tab in the upper right. Click the changes that you want to commit. And click Commit
. Add a comment: first line is subject, newline, description (options).
Click the Green up arrow to Push to GitHub. Now it asks for you username and password. You do not enter your password!
For occasional use and code-sharing, the free plan should be fine. At most, you might need the Plus plan ($5 per month). https://rstudio.cloud/plans/free