RStudio Cloud Cheat sheets & notes
RStudio Cloud
Interface
RStudio Cloud Landing Page
“Your workspace”
Personal workspace
Shared workspaces
(only 1 allowed for basic accounts)
“Guide”
RStudio cloud documentation
“Primers”
Interactive
R tutorials
“All Projects”
Projects within a workspace
Clicking on a project opens up RStudio Cloud itself, transforming your web browser into a virtual RStudio session
“Cheat Sheets”
Compact summaries of key R tools
These can be very information-dense and are most recommended for intermediate to advanced users
Summary: After logging in to RStudio Cloud you are greeted by a landing page that gives you access to your various cloud workspaces where RStudio Projects reside. Your workspace is a general working environment for projects you have created or copied from other; you are the administrator of projects in your workspace and any changes you make are permanent. Shared workspaces have an administrator (who could be you) who assigns permissions to other users for different levels of viewing or collaboration.
“Copy”
Copy a project so you can make changes
An original project created by Nathan Brouwer and a copy created by a user (Conservation Associate). Only Nathan can modify the original; Associate can do whatever they want to the copy
Executive summary
When you first enter RStudio Cloud you are presented with a list of Workspaces and Projects you have access to.
RStudio Cloud
Interface
RStudio Cloud Project View
Workspace name
Project
name
“Temporary Project”
Reminder that changes you make are not permanent! This appears if you have only been given “viewing”status for a project
Project files
Files that are part of the project. This will usually be .R or .Rmd files containing R code. THere are also files like .Rproj which are RStudio to run the project. There could also be images, PDFs, or other files.
Summary: When you enter an RStudio Cloud project most of your web browser tab will be an online version of an RStudio session. This is always formatted as an RStudio Project, which is RStudios way of organizing related files. Everything on the screen will behave more or as less as it would if you were running RStudio from your desktop.
Executive summary
All coding in RStudio Cloud occurs in web-based emmulations of RStudio Projects, which are a way of organizing code and associated filed.
RStudio Cloud
Interface
RStudio Cloud General Layout
Executive summary
RStudio and RStudio Cloud present you with multiple panes to carry out different tasks; for general use the Source Viewer and the Console are the most important.
“Console”
Interactive console Where commands evaluated by R are shown, and where R presents the output.
Source Viewer
R and RMarkdown code are typically written into script files
Files | Plots | Packages | Help | Viewer Pane
Troubleshooting problems w/ RStudio Cloud:
1) Refresh the browser
2) Check that no pop-up blocker is active; disable for RStudio cloud
3) Click out of project and reload
4) Turn off your wifi and turn it back on
5) Close browser tab and reload
6) Close browser and Restart it
7) Explicitly log out of your Cloud account and log back in
8) Try a different browser (eg, use Firefox if you’ve been using Chrome)
9) Update your browser (download it again, install updates etc).
RStudio Cloud
Interface
RStudio Cloud Connection Issues
RStudio Cloud
Interface
RStudio Cloud Errors Loading packages
Some people have encountered problems related to packages and the version number of R. One thing to try is changing the version of R you are working with, which is very easy in RStudio cloud
https://twitter.com/RLadiesNCL/status/1138812826917724160?s=20
“Scripts”
Your recipes
Scripts, in the form of .R or .Rmd files, are like recipes. The ingredients are data, code, functions, etc.
RStudio Cloud
Interface
RStudio Panes - the cooking metaphor
“Console”
The Stove
The console is where the cooking happens. Ingredients (code, data) are put in, and R gives you output
“Files”
Files can contain code to run an analysis, a special function, notes, etc.
“Packages”
Packages are bundles of tools and data. Your script tells you when to use them.
Executive summary
Cooking is a useful metaphor for the relationship between different parts of RStudio
twitter.com/RLadiesNCL/status/1138812826917724160?s=20
R / RStudio
Interface
Console appearance
Executive summary
The R / RStudio console has certain punctuation marks that always are there.
The “>”
This is put here automatically. Don’t ever type it.
Line wrapping in the console
Lines will regularly wrap around the far right side of the console and span 2 or more lines. No worries.
The “[1]”
This is put here automatically.
Warnings, errors, and messages
Red text indicates that R has something to tell you; often it is pretty obscure. Warnings and messages can usually be ignored.
There’s a comma here, so R is expecting another value.
Summary: Commands typed directly into the console or executed from a script are always preceded automatically by a “>”; this is never typed. Output provided by R is always preceded by a designator such as “[1]”. Errors and other warning appear in the console in red. Errors indicate something actually went wrong. “Warnings” typically can be ignored.