Setup Script for Autogradescoper¶
Overview¶
The setup.sh file is a shell script that installs the necessary software tools and libraries when building the Docker image for the Gradescope Autograder.
Typically, you do not need to modify the setup.sh file, but you may sometimes need to adjust it to install additional dependencies or libraries.
A Typical Example¶
Below is a typical example of the setup.sh file for an R programming assignment. These scripts install the required software tools and libraries for the autograder and create a Python virtual environment to run the autograder.
This setup script assumes that the autogradescoper package is installed from the main branch of the GitHub repository to the /autogradescoper directory in the Docker image.
If you need to modify the autogradescoper source code, you can change the URL in the git clone command to your forked repository.
Adding Additional R Packages¶
Sometimes, you may want to install additional R packages for the autograder. You can install R packages using the install.packages() function in R from the command line.
For example, to install the package_name R package, you can use the following command: