Connecting R Studio and GitHub
Table of Contents
Introduction
If you don’t have experience of R markdown, I wrote another post to introduce basic feasure of it: R Markdown and PDF File and Project Manegement.
There are well-written instructions for starters online
Load R functions from GitHub
Get the link
- Step 1: go to the
R-Code-Library
.

- Step 2: click on the targeted function and then click the
raw
on the upper right corner.

- Step 3: Copy and paste the link into the following code.

source(
paste0(
"https://raw.githubusercontent.com/OncologyQS/R-Code-Library/main/futility-safety-toxicity-Bayesian-posterior-stopping-rules.R?token=GHSAT0AAAAAACHX4OCFFPRWY3SPIHABFMJ2ZKBFBCA"
)
)
Advance features: Working with Others
GitHub Brunch
Tips on working with others
- Distribute tasks to group members to avoid working on the same file.
- Remember to pull FIRST everytime you re-start working on the project
- Commit and push frequently!
- Repeat the
pull--commit--push
until you get use to it!
Some other thoughts…
- RStudio appears to be limited to pulling, syncing and committing.
- Advanced features require familiarity with GitHub