We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We ran into an issue in hubverse-org/hubEvals#46 (comment) where we were getting a cryptic error from roxygen2 that said:
failed to evaluate inline markdown code. Caused by error in `if (...) NULL`: ! missing value where TRUE/FALSE needed
I was able to find the error from
roxygen2/R/markdown.R
Line 6 in 9652d15
trace()
txt <- r"{text - a list with non-indented `r 1+1` text }" roxygen2:::markdown_pass1(txt) #> Error in if (str_sub(line, start - 1 + indent, start + 1 + indent) == : missing value where TRUE/FALSE needed # Fixing the indent fixes the problem... kinda txt2 <- gsub("\n", "\n ", txt) roxygen2:::markdown_pass1(txt2) #> [1] "text\n - a list\n with non-indented `r 12t\n "
Created on 2024-08-28 with reprex v2.1.1
The error is coming from the fact that indent could be NA:
indent
NA
Lines 111 to 112 in 9652d15
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We ran into an issue in hubverse-org/hubEvals#46 (comment) where we were getting a cryptic error from roxygen2 that said:
I was able to find the error from
roxygen2/R/markdown.R
Line 6 in 9652d15
trace()
to find the bad text and make a reprex:Created on 2024-08-28 with reprex v2.1.1
The error is coming from the fact that
indent
could beNA
:roxygen2/R/markdown.R
Lines 111 to 112 in 9652d15
The text was updated successfully, but these errors were encountered: