Repository navigation
Replies: 3 comments 1 reply
|
Minh,
I'm very interest to hear about this. I used {learnr} extensively until I
switched over to webr.
There is one feature that's important to me that {learnr} didn't provide.
So I wrote my own, which can be attached to any HTML-targeted document. The
feature makes it easy for students to submit answers to their instructors.
It is very light-weight and independent of any service. In addition to
giving a few widgets for multiple-choice questions and the like, it uses
JavaScript to collect the already entered answers, package them as JSON,
then paste them to the user's clipboard. From there, the student can copy
to whatever service the instructor selects for the purpose: email, upload
to an LMS, etc. For myself, I have students submit them via a Google Form
that the instructor can read from R.
Regards,
Danny
…On Mon, Aug 31, 2026 at 2:22 AM Minh Vu ***@***.***> wrote:
Hi!
Over the past few months, Preceptor David Kane and I have been working on
learnr2, which we view as a replacement for learnr that supports Quarto
based tutorials using WebR underneath.
If you’re interested in using learnr2, please let us know what features or
functionality you’d like to see added. And, of course, if you run into any
bugs or unexpected behavior, we’d really appreciate it if you could let us
know. Feedback and suggestions will help us improve the project as we
continue developing it.
Here is the GitHub Repo <https://github.com/PPBDS/learnr2/>.
Thank you again!
Minh
—
Reply to this email directly, view it on GitHub
<#832?email_source=notifications&email_token=AAECBLNNIW4WXJJ4VKMB5NT5MURU3A5CNFSNUABBM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63RPGEYDOMJYHA3DFJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAECBLINVJPE7AHLI2IEULT5MURU3AVCNFSNUABHKJSXA33TNF2G64TZHM3TCMZXG42TQMB3IRUXGY3VONZWS33OHMYTANZRHA4DMMVBOYBA>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AAECBLKWVRL7KEZZ5FUXOMT5MURU3A5CNFSNUABBM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63RPGEYDOMJYHA3DFJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/AAECBLK5SZZ6NJ6CXFI5UCL5MURU3A5CNFSNUABBM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63RPGEYDOMJYHA3DFJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
1 reply
|
Hi Minh,
I suppose the choice between a file upload and a clipboard depends on which
LMS the instructor uses. I've mainly worked at small schools that don't
provide LMS services, so I needed a home-brew solution. Google Sheets
provides a nice balance of security (students need to log in) and the
ability for me to bulk-download for grading. Canvas, Moodle, and GradeScope
have their own facilities for uploading work, so you should see what works
best for them. ... Doing a bit of reading, Canvas and Moodle are claimed to
support a bulk download of "File Upload Assignments."
{learnr} and your {learnr2} both support multiple-choice questions. I find
the `answer()` method of populating the question hard to use, especially
when there is markdown or MathJax markup. Having to put this into an R
string requires escaping. (I don't remember whether the question answers in
{learnr} can have such markup. I advocate an easier-to-read way of
specifying multiple answers. I've done this by defining a {knitr} engine
that parses plain text and formats it as a question. Here's a simple
example. The {mcq} engine is for multiple-choice questions.
3. An adult human eardrum has a vibrating surface area of about `5e-5`
m^2^. This is what transfers power to the human ear. For the gentle sound
of `1e-6` W/m^2^, what is the total power impinging on the eardrum?
```{mcq}
#| label: 05-ear-power3
#| inline: true
1. `5e-11` W [correct]
2. `5e-9` W [hint: Multiply the mantissas and add the exponents.]
3. `5e-1` W [hint: Multiply the mantissas and add the exponents.]
4. `5e1` W (e.g. 5 W) [hint: Multiply the mantissas and add the exponents.]
```
Also, I often write relatively short "exercises" that can be compiled
separately. You can see some of mine at
https://dtkaplan.github.io/QA-exercises/. Often, these don't involve any
webR. For such exercises, a system that generates pure HTML/JavaScript is
nice: no start-up of webR needed. Originally, I wrote JavaScript to read
the contents of webR chunks and submit them with the rest of the answers.
This can be easy if there is a class in the DOM that holds the webR chunk
contents and can be accessed from JavaScript.
So, to summarize, I'd like to see a system that coordinates two separate
sub-systems:
1. For fixed-answer questions and essay uploads that doesn't use webR at
all. My work-in-progress `{dtkaplan/devoirs}` package does this.
2. For webR related materials, but makes the results available for system
(1).
I think this would make it easier for instructors to share materials.
- Danny
…On Fri, Sep 4, 2026 at 12:37 PM Minh Vu ***@***.***> wrote:
Hi Danny,
Thanks so much for the detailed reply! Good news is this is actually
already covered in learnr2. We have student_info() for collecting
name/email/ID (auto-saved to localStorage as the student works), paired
with download_answers_button(), which gathers every question and exercise
answer on the page into a single JSON file and downloads it client-side.
There is no server involved, so the student attaches it to an email or
uploads it to whatever the instructor uses (LMS, Google Form, etc.). We
also added verify_submission(), which checks a downloaded file against an
embedded SHA-256 hash so an instructor can tell if a student edited an
answer after the fact before turning it in.
The main difference from what you built is delivery mechanism. We download
a file rather than copy JSON to the clipboard. Curious how you landed on
clipboard: was it a deliberate choice (fewer file-management steps for
students, easier to paste directly into a form), or just what was easiest
to wire up? If clipboard has real advantages for certain workflows, we
could consider offering it as an option alongside the download.
Would be great to hear how this compares to what you're using now, and
whether the JSON shape covers what your instructors need.
Best,
Minh
—
Reply to this email directly, view it on GitHub
<#832?email_source=notifications&email_token=AAECBLLTOAWNIJLTM6MY3T35NL4UNA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOBSHEZTKMBVUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-18293505>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAECBLOK3VKLLPPKKF5UWMT5NL4UNAVCNFSNUABHKJSXA33TNF2G64TZHM3TCMZXG42TQMB3IRUXGY3VONZWS33OHMYTANZRHA4DMMVBOYBA>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AAECBLKO2IUP437QEJ4XFDL5NL4UNA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOBSHEZTKMBVUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSVGM33PORSXEX3JN5ZQ>
and Android
<https://github.com/notifications/mobile/android/AAECBLI6QN5XCKJVLNHZRDD5NL4UNA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOBSHEZTKMBVUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>.
Download it today!
You are receiving this because you commented.Message ID:
***@***.***>
|
0 replies
|
I forgot to mention. The catalogs at
https://dtkaplan.github.io/QA-exercises/ are for instructor browsing, not
students. Here is an example of a student-facing exercise:
https://dtkaplan.github.io/QA-exercises/Chap-02/pony-meet-window.html
An instructor could give such a link to students for an assignment even if
they don't know how to use Quarto.
- Danny
…On Sat, Sep 5, 2026 at 12:09 PM Daniel Kaplan ***@***.***> wrote:
Hi Minh,
I suppose the choice between a file upload and a clipboard depends on
which LMS the instructor uses. I've mainly worked at small schools that
don't provide LMS services, so I needed a home-brew solution. Google Sheets
provides a nice balance of security (students need to log in) and the
ability for me to bulk-download for grading. Canvas, Moodle, and GradeScope
have their own facilities for uploading work, so you should see what works
best for them. ... Doing a bit of reading, Canvas and Moodle are claimed to
support a bulk download of "File Upload Assignments."
{learnr} and your {learnr2} both support multiple-choice questions. I find
the `answer()` method of populating the question hard to use, especially
when there is markdown or MathJax markup. Having to put this into an R
string requires escaping. (I don't remember whether the question answers in
{learnr} can have such markup. I advocate an easier-to-read way of
specifying multiple answers. I've done this by defining a {knitr} engine
that parses plain text and formats it as a question. Here's a simple
example. The {mcq} engine is for multiple-choice questions.
3. An adult human eardrum has a vibrating surface area of about `5e-5`
m^2^. This is what transfers power to the human ear. For the gentle sound
of `1e-6` W/m^2^, what is the total power impinging on the eardrum?
```{mcq}
#| label: 05-ear-power3
#| inline: true
1. `5e-11` W [correct]
2. `5e-9` W [hint: Multiply the mantissas and add the exponents.]
3. `5e-1` W [hint: Multiply the mantissas and add the exponents.]
4. `5e1` W (e.g. 5 W) [hint: Multiply the mantissas and add the exponents.]
```
Also, I often write relatively short "exercises" that can be compiled
separately. You can see some of mine at
https://dtkaplan.github.io/QA-exercises/. Often, these don't involve any
webR. For such exercises, a system that generates pure HTML/JavaScript is
nice: no start-up of webR needed. Originally, I wrote JavaScript to read
the contents of webR chunks and submit them with the rest of the answers.
This can be easy if there is a class in the DOM that holds the webR chunk
contents and can be accessed from JavaScript.
So, to summarize, I'd like to see a system that coordinates two separate
sub-systems:
1. For fixed-answer questions and essay uploads that doesn't use webR at
all. My work-in-progress `{dtkaplan/devoirs}` package does this.
2. For webR related materials, but makes the results available for system
(1).
I think this would make it easier for instructors to share materials.
- Danny
On Fri, Sep 4, 2026 at 12:37 PM Minh Vu ***@***.***> wrote:
> Hi Danny,
>
> Thanks so much for the detailed reply! Good news is this is actually
> already covered in learnr2. We have student_info() for collecting
> name/email/ID (auto-saved to localStorage as the student works), paired
> with download_answers_button(), which gathers every question and exercise
> answer on the page into a single JSON file and downloads it client-side.
> There is no server involved, so the student attaches it to an email or
> uploads it to whatever the instructor uses (LMS, Google Form, etc.). We
> also added verify_submission(), which checks a downloaded file against an
> embedded SHA-256 hash so an instructor can tell if a student edited an
> answer after the fact before turning it in.
>
> The main difference from what you built is delivery mechanism. We
> download a file rather than copy JSON to the clipboard. Curious how you
> landed on clipboard: was it a deliberate choice (fewer file-management
> steps for students, easier to paste directly into a form), or just what was
> easiest to wire up? If clipboard has real advantages for certain workflows,
> we could consider offering it as an option alongside the download.
>
> Would be great to hear how this compares to what you're using now, and
> whether the JSON shape covers what your instructors need.
>
> Best,
> Minh
>
> —
> Reply to this email directly, view it on GitHub
> <#832?email_source=notifications&email_token=AAECBLLTOAWNIJLTM6MY3T35NL4UNA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOBSHEZTKMBVUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-18293505>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAECBLOK3VKLLPPKKF5UWMT5NL4UNAVCNFSNUABHKJSXA33TNF2G64TZHM3TCMZXG42TQMB3IRUXGY3VONZWS33OHMYTANZRHA4DMMVBOYBA>
> .
> Triage notifications, keep track of coding agent tasks and review pull
> requests on the go with GitHub Mobile for iOS
> <https://github.com/notifications/mobile/ios/AAECBLKO2IUP437QEJ4XFDL5NL4UNA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOBSHEZTKMBVUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSVGM33PORSXEX3JN5ZQ>
> and Android
> <https://github.com/notifications/mobile/android/AAECBLI6QN5XCKJVLNHZRDD5NL4UNA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOBSHEZTKMBVUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>.
> Download it today!
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi!
Over the past few months, Preceptor David Kane and I have been working on learnr2, which we view as a replacement for learnr that supports Quarto based tutorials using WebR underneath.
If you’re interested in using learnr2, please let us know what features or functionality you’d like to see added. And, of course, if you run into any bugs or unexpected behavior, we’d really appreciate it if you could let us know. Feedback and suggestions will help us improve the project as we continue developing it.
Here is the GitHub Repo.
Thank you again!
Minh
All reactions