There are lots of links here, they're here to help understand the different branches in GitHub.
If you already know this, then feel free to jump to the instructions below.
There are three branches in this repository.
master
: https://github.com/alan-turing-institute/CompEnv-Ex4/tree/masterbranch-a
: https://github.com/alan-turing-institute/CompEnv-Ex4/tree/branch-abranch-b
: https://github.com/alan-turing-institute/CompEnv-Ex4/tree/branch-b
There's an identical analysis.R file in all three branches.
analysis.R
inmaster
: https://github.com/alan-turing-institute/CompEnv-Ex4/blob/master/analysis.Ranalysis.R
inbranch-a
: https://github.com/alan-turing-institute/CompEnv-Ex4/blob/branch-a/analysis.Ranalysis.R
inbranch-b
: https://github.com/alan-turing-institute/CompEnv-Ex4/blob/branch-b/analysis.R
There's an identical CompEnv-Ex4.Rproj file in all three branches.
CompEnv-Ex4.Rproj
inmaster
: https://github.com/alan-turing-institute/CompEnv-Ex4/blob/master/CompEnv-Ex4.RprojCompEnv-Ex4.Rproj
inbranch-a
: https://github.com/alan-turing-institute/CompEnv-Ex4/blob/branch-a/CompEnv-Ex4.RprojCompEnv-Ex4.Rproj
inbranch-b
: https://github.com/alan-turing-institute/CompEnv-Ex4/blob/branch-b/CompEnv-Ex4.Rproj
Two of the branches have files that capture the computational environment:
master
does not contain files to capture the computational environment.branch-a
has two files to capture the computational environment: https://github.com/alan-turing-institute/CompEnv-Ex4/blob/branch-a/install.R and https://github.com/alan-turing-institute/CompEnv-Ex4/blob/branch-a/runtime.txtbranch-b
has two files to capture the computational environment: https://github.com/alan-turing-institute/CompEnv-Ex4/blob/branch-b/install.R and https://github.com/alan-turing-institute/CompEnv-Ex4/blob/branch-b/runtime.txt
- Click the links below to open the Binders for
branch-a
andbranch-b
. These will take you to RStudio. We recommend you right click and select "Open Link in a New Tab" in order to keep these instructions visible.
-
👉 Binder for
branch-a
: https://mybinder.org/v2/gh/alan-turing-institute/CompEnv-Ex4/branch-a?urlpath=rstudio -
👉 Binder for
branch-b
: https://mybinder.org/v2/gh/alan-turing-institute/CompEnv-Ex4/branch-b?urlpath=rstudioRStudio is an IDE (integrated development environment). It has 3 windows
- On the left is the R Console where R commands can be executed interactively.
- On the upper right is a window which shows the variables saved in the environment after code is executed (among other things).
- And on the lower right is a file structure window.
-
Open the
analysis.R
file by clicking on it in the bottom right window.This will open a new window in the upper left, above the R console, containing the code.
-
With your cursor, highlight the all of the code in the new window. Run the code by clicking the "Run" button at the top of this window.
- What's different between these two branches?
- What is the difference in the output?
- How do these differences arise?