Week 1. Reproducible Science Tools
Background
General
Reproducible Science Tools
Github Demo with Naomi
- in RStudio, menu File > New Project, New Directory, empty, then click “Create a git repository”
- Now you should see a new Git tab in RS tudio with 2 new files: .gitignore and *.Rproj
- download pcp.txt into your project
-
create a new R script grphpcp.R:
pcp = read.table('pcp.txt') plot(pcp$meters)
-
now change the last line to:
plot(pcp$meters, type='l', col='blue')
- in Git pane, click Commit changes
- M in the Git pan means Modified