Minimal R package for downloading and managing GitHub Classrooms from R.
If I had known of the {ghclass}
package, I wouldn’t have put together this one. I strongly recommend
checking out and using the {ghclass}
package instead!
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("mitchelloharawild/githubclassroom")
The main function from this package is clone_assignments()
. It can be
used to clone all of the assignment submissions for a given assignment
and organisation to a particular path.
library(githubclassroom)
clone_assignments("~/teaching/ETC5523/assignment_1",
assignment = "take-home-assignment",
organisation = "etc5523-2020")
You can also report progress using with_progress()
from the
progressr package:
library(progressr)
with_progress(clone_assignments(...))