otter-grader: Otter assign - tests fail when answers are correct, "Error: object not found"
Describe the bug
I am following the otter sample at https://github.com/ucbds-infra/ottr-sample to create an assignment, and all of my tests are failing on Gradescope in the tested Rmd submission (a submission with all correct solutions). It is notable that all tests pass successfully when testing locally using otter run lab04.Rmd
. I am attaching a ZIP file containing the master notebook file that I am using and a screenshot of the failing tests. It seems that the tests are unable to recognize any of the variables that are created in the immediately preceding solution cell.

To Reproduce Steps to reproduce the behavior:
- Unzip the Archive.zip attached. cd into its directory.
- Use Otter assign to prepare the autograder.zip file:
otter assign lab04.Rmd dist
. Note that the header of the master notebook has the following:
BEGIN ASSIGNMENT
requirements: requirements.R
generate: true
- Upload the autograder.zip from
dist/autograder
to Gradescope. - Test the autograder using the solution Rmd file.
- The above error is produced.
Expected behavior All tests should pass successfully for the tested submission .Rmd file on Gradescope.
Versions Python version: 3.9.5 Otter-Grader version: 2.2.2
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (11 by maintainers)
Just released v3.0.0.b2. Also, you may want to follow #302 which is the issue that will track adding PDF support for R.
@chrispyles Thanks for checking in – sorry for my late reply. Yes, v3.0.0.b2 fixed the points issue and everything looks in order 👍
I will reach out when we come across more issues. I followed #302 for PDF support.
Shortly (tonight 🤞). I’ve got another feature to add but it shouldn’t be a big one, then it can be released.