In-class live coding session for DSCI 310
To set up the environment and download the data
install.packages(c("tidyverse", "docopt"))
pip install click
curl https://raw.githubusercontent.com/ttimbers/rscript-demo/main/data/titanic.csv -o data/titantic.csv
curl https://swcarpentry.github.io/r-novice-gapminder/data/gapminder-FiveYearData.csv -o data/gapminder.csv
Rscript src/01-print_mean_hp.R
Rscript src/02-titanitc_script.R fare
Rscript src/03-rds.R
Rscript src/04-two_inputs.R data/titanic.csv fare
Rscript src/05-positional.R --file_path=data/titanic.csv --var=fare
python src/cli.py 10 42
python src/cli2.py --num1=10 --num2=400