Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with loading packages via the tidyverse metapackage #726

Closed
ttimbers opened this issue Sep 5, 2023 · 4 comments
Closed

Issues with loading packages via the tidyverse metapackage #726

ttimbers opened this issue Sep 5, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ttimbers
Copy link

ttimbers commented Sep 5, 2023

In our courses (and thus assignments) we use the popular tidyverse metapackage quite heavily, and have done so quite successfully with otter-grader for the past two years. This fall however, our tests largely fail in the autograder on Gradescope (but not our our laptops when we create the assignments) when we load packages via the tidyverse metapackage. If we instead however, load the packages directly (so instead of library(tidyverse), we write library(readr); library(dplyr); library(tidyr), then the tests all pass in the autograder on Gradescope. Interestingly this seems to be important just for the students submission - not the source assignment itself.

Example Rmd snippet of source Rmds and needed data for tests that work (direct pacakage loading) with the autograder on Gradescope and fail (indirect package loading through the tidyverse):

worksheet1works-snippet.zip

worksheet1fails-snippet.zip

I am working on an M2 Mac, running otter-grader version 5.1.3 (installed via pip) and ottr version 1.1.3. To create the assignments I run otter assign <SOURCE-RMD> <FOLDER-DESTINSTION>.

@ttimbers ttimbers added the bug Something isn't working label Sep 5, 2023
@ttimbers
Copy link
Author

ttimbers commented Sep 5, 2023

Interestingly it doesn't seem to be all the packages loaded by tidyverse. For example, I think ggplot2 loads fine via tidyverse? It's one (or more) of the three listed above that seem to be the issue...

@chrispyles
Copy link
Member

Can you use Gradescope's debug via SSH feature to SSH into a container that is experiencing this issue and run Otter in debug mode and send the output? To run in debug mode, you add "debug": true to /autograder/source/otter_config.json and then run the /autograder/run_autograder executable.

@joelostblom
Copy link
Contributor

I tried this with an instructor submission (via the "test autograder" button) and it works for me with ipynb files at least. I don't know if actual student submissions (but the "instructor as student" submission is usually the same for me) or Rmd files behave differently

@chrispyles
Copy link
Member

Closing this due to inactivity but if this is still an issue please feel free to reopen it.

@chrispyles chrispyles closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants