-
Notifications
You must be signed in to change notification settings - Fork 13
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
Long hash #4
Comments
Interesting, I haven't tried it with a tutorial that has more than a handful of questions & exercises so I haven't seen anything like this. The current strategy being used is to serialize the internal objects into a raw vector, that raw vector is compressed and then encoded using base64 to give it a valid text representation. The base64 encoding is definitely not efficient but it is the cost of making it into basic text characters. Did the tutorial have a large number of exercises and did it use gradethis? If that is the case we can probably shrink things somewhat by stripping some of the unnecessary fields. |
I don't have the coding chops to suggest a PR, but would be really nice is an option which allows one to skip the copy/paste by-hand step of working with the hash. Something like: learnrhash::encoder_rds() which produces an rds object which a user could then download, submit, and so on. The rds object would just be the hash, or it might be a tibble with two columns: name and hash, where the name is gotten by asking for it. |
@rundel It did have a large number of exercises, but did not use gradethis. Here is the following code I'm using to produce the .rds like @davidkane9 mentioned:
|
Is there any reason why the hash needs to be displayed? I've integrated your system into
In |
It seems like a common cause of the hashes being long is due to the exercises including their output - this is particularly the case when the output includes an image. We have added the |
A student tester completed one of the tutorials I wrote with learnrhash. It's a long tutorial, as we are developing them to correspond with chapters of a course textbook. However, the hash at the end was quite long, to the point where the student's RStudio froze and crash because they tried to copy such a long string.
Is there any way to shorten the hashes generated at the end?
And again, really appreciate your work! We're testing with students to iron out any issues now before rolling out to a class of 100-200 students at Harvard in the coming weeks.
The text was updated successfully, but these errors were encountered: