First login to rstudio and then switch to the project for the relevant assignment.
Find the relevant piece of code (see below) and run it in the Terminal.
Doing this will often replace your exercises.Rmd but you will have a backup of your answers in exercises_bak.Rmd. You will need to manually copy answers from your old exercises_bak.Rmd to exercises.Rmd