You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could also use the {xmlparsedata} package to get it in XML format, which will make it easier to parse within the context of this package.
That being said, there are ways this can fail:
If the chunk creates a plot and does not immediately display it, then we have to consider tracking outputs or check if the output of the next chunk is the same as the assignment from the previous chunk
If the above situation happens, but they do not show the plot until later.
Situations that my former self created: functions that create plots as a "bonus" feature (e.g. poppr::info_table().
For situation 3, we may be able to add in keywords for use in the SYMBOL_FUNCTION_CALL parsedata to check, but it should be relatively rare (famous last words).
That also being said, we can not implement this for python code chunks at the moment because we don't know about the parsing rules.
In any case, it
The text was updated successfully, but these errors were encountered:
zkamvar
changed the title
alt-text validation: check for RMarkdown chunks with plotting commands
[validation] alt-text: check for RMarkdown chunks with plotting commands
Mar 9, 2023
It should be possible to spot the majority of plot-producing functions in an RMarkdown document:
plot()
or common plotters such asggplot()
Here's some example parse data for a ggplot:
Created on 2022-08-15 by the reprex package (v2.0.1)
We could also use the {xmlparsedata} package to get it in XML format, which will make it easier to parse within the context of this package.
That being said, there are ways this can fail:
poppr::info_table()
.For situation 3, we may be able to add in keywords for use in the
SYMBOL_FUNCTION_CALL
parsedata to check, but it should be relatively rare (famous last words).That also being said, we can not implement this for python code chunks at the moment because we don't know about the parsing rules.
In any case, it
The text was updated successfully, but these errors were encountered: