Multi-language chunks and chained setup chunks #390
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This was referenced
Jul 14, 2020
sjgknight pushed a commit to sjgknight/learnr that referenced this pull request
Aug 10, 2021
* initial working version of chained setup chunks * fixed a setup chain bug and added error handling for exercise.setup label * better error handling of cycles, and added tests for cycles * addressed some suggestions and handled default exercise.setup case * move knitr setting to rmd, dont process empty chunks * addressing suggestions and fixing issue with losing chunk structure * Update NEWS.md Co-authored-by: Barret Schloerke <firstname.lastname@example.org> * cleaning up code * Updates: - fixed a bug where exercise checker was not grabbed as character - now storing exercise along with its setup chunks to cache - added some documentation of chaining setup chunks and exercises * More updates: - Restructured exercise cache - Minimized preserved options forwarding to browser to just engine - Better handling of exercise and setup chunks processing in knitr hooks - Better handling of constructing the Rmd for evaluating exercises - Fixed issue with dput_to_string so that it properly retains code structure - Slight enhancement to chained setup chunk docs * Updates: - We longer forward checking code to browser, and instead cache it - The exercise cache now includes the checking code * Update R/initialize.R Co-authored-by: Barret Schloerke <email@example.com> * Updates: - We only forward hint and solution chunks to browser - We rely on a boolean variable for checking if we need to run versus check - Remove check and code check logic on browser side and use flag for submit button * Updates: - set proper environment for exercise rmd rendering - cleanup of code * remove checker_fn_exists variable and use explicit check instead * change envir_result to envir in exercise.R * variable assignment cleanup for output_file Co-authored-by: Barret Schloerke <firstname.lastname@example.org> * Merge master
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.