Published June 27, 2023
| Version v0.2.14
Software
Open
rstudio/gradethis: Version 0.2.14
Creators
- 1. @rstudio
- 2. RStudio
- 3. Posit Software, PBC
- 4. @rstudio @UBC-DSCI @UBC-MDS
- 5. ThinkR
- 6. Trestle Technology
- 7. Princeton University
- 8. @ThinkR-open
- 9. Duke University, @posit-pbc
Description
grade_code()
no longer fails if.envir_result
or.envir_solution
is missing (#355).detect_mistakes()
now keeps a version of standardized user and solution code with and without default arguments added. Missing arguments are detected by comparing the user code with defaults to the solution code without defaults. Surplus arguments are detected by comparing the user code without defaults to the solution code with defaults (#356).- This helps avoid spurious feedback when comparing code that involves S3 methods. If the user's code differs from the solution code in a way that means a different S3 method is used, the standardized code may gain different default arguments. This could result in feedback about missing or surplus arguments that were added by code standardization rather than by the student, which is not actionable feedback. By no longer looking for default arguments that are missing or surplus in the user code, we ensure that students receive more actionable feedback, likely about the incorrect argument that resulted in the use of a different S3 method.
- The
gradethis_equal.list()
method is now only used if bothx
andy
are bare lists (as defined byrlang::is_bare_list()
) (#357).- This fixes a bug where a list could be marked as equal to another object with the same contents but a different class, e.g.
list(a = 1, b = 2)
andc(a = 1, b = 2)
ordata.frame(a = 1, b = 2)
.
- This fixes a bug where a list could be marked as equal to another object with the same contents but a different class, e.g.
- Fix bug where
call_standardise_formals()
would fail when given apurrr::map()
function where.f
is an index rather than a function (#359).
Files
rstudio/gradethis-v0.2.14.zip
Files
(738.1 kB)
Name | Size | Download all |
---|---|---|
md5:eebe639a236fbe47e1f872ed948c4aab
|
738.1 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/rstudio/gradethis/tree/v0.2.14 (URL)