get_terminal_command: Generate a command for downloading an assessment.

Description Usage Arguments Value

View source: R/get_terminal_command.R

Description

This function is useful for extracting files submitted to an nbgrader (not nbsimplegrader) course. The function will create a script that you can use in a JupyterHub terminal to get all submitted assessments in that course which match the quiz_name. This function assumes that each quiz has a single eponymous notebook which is submitted via nbgrader. As such the file structure on the JupyterHub and in the downloaded zip will have paths matching: {course_name}/submitted/*/{quiz_name}/{quiz_name}.ipynb.

Usage

1
get_terminal_command(course_name, quiz_name, file_name)

Arguments

course_name

The name of the nbgrader course.

quiz_name

The name of the assessment and notebook file (omit .ipynb).

file_name

The name of the zip file to create.

Value

A character string of bash script for downloading the notebooks.


adamblake/nbsimplegrader_companion documentation built on April 19, 2020, 6:05 p.m.