Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-language chunks and chained setup chunks (rstudio#390)
* 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 <barret@rstudio.com> * 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 <barret@rstudio.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 <barret@rstudio.com> * Merge master
- Loading branch information