UBC-MDS / labzenr

A package to help MDS students better manage their lab assignments.
https://ubc-mds.github.io/labzenr
Other
0 stars 3 forks source link

fix(count_points): Introduce fixes to make function work at CLI #32

Closed rtaph closed 3 years ago

rtaph commented 3 years ago

I was trying the tool out in the terminal and it did not always work. This PR introduces some fixes so that we can run

alias points='Rscript -e "labzenr::count_points()"'

To then just be able to run a bash command like

cd ~/mds/block5/lab99
points

Unfortunately, menu() does not work in non-interactive mode, so I had to code a way around it.