-
Notifications
You must be signed in to change notification settings - Fork 235
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
Dynamic R code not running properly #1271
Comments
I can't reproduce this:
Your session info does not include the versions of roxygen2 or the version of the package you are documenting. I used your main branch and roxygen2 7.1.2. |
Hi @gaborcsardi ! You couldn't reproduce because I already fixed the Please try using the package at this point: https://github.com/ropensci/mctq/tree/472922d20928efc6bd1c1f5dcca0fafcd49b9e0e I'm using |
Got it, thanks! Simple reprex: roxygen2:::markdown("X\n `r (1+1)`\n")
#> [1] "X\n2)`" It seems like a workaround is to avoid indentation: roxygen2:::markdown("X\n`r (1+1)`\n")
#> [1] "X\n2" |
This looks like it's another bug with how commonmark records source references. |
Fixed by #1391 |
Hi there!
I'm having rendering issues when using dynamic R code in a
@format
tag. Apparently it came up with the latest versions.Example (see the R file here):
Rd Render:
Created on 2021-11-17 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: