Skip to content
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

exercise = T causes error; exercise = TRUE works #757

Closed
cknotz opened this issue Jan 13, 2023 · 1 comment · Fixed by #758
Closed

exercise = T causes error; exercise = TRUE works #757

cknotz opened this issue Jan 13, 2023 · 1 comment · Fixed by #758

Comments

@cknotz
Copy link

cknotz commented Jan 13, 2023

Hi,

I recently noticed the following bug: When I create an exercise chunk in a learnr tutorial and indicate it with exercise = T, the tutorial throws an error when I knit it (this used to work before). Everything works when I write exercise = TRUE instead.

SessionInfo():

Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Ventura 13.0.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] learnr_0.11.2

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.9        rstudioapi_0.14   knitr_1.40        magrittr_2.0.3    xtable_1.8-4      R6_2.5.1         
 [7] rlang_1.0.6       fastmap_1.1.0     tools_4.2.2       xfun_0.34         cli_3.6.0         withr_2.5.0      
[13] htmltools_0.5.4   ellipsis_0.3.2    yaml_2.3.6        digest_0.6.31     rprojroot_2.0.3   lifecycle_1.0.3  
[19] shiny_1.7.4       later_1.3.0       htmlwidgets_1.5.4 promises_1.2.0.1  curl_4.3.3        evaluate_0.19    
[25] mime_0.12         rmarkdown_2.18    compiler_4.2.2    jsonlite_1.8.4    httpuv_1.6.7

Thanks in any case for putting together this great package!

Best
Carlo

@gadenbuie
Copy link
Member

Thanks for the report! I have a fix in #758 that will be available in the dev version of learnr soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants