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
While trying to add a plot to pptx slide, if the code provided via argument code (in dml() that is evaluated in ph_with()) generates output (e.g., print(10)) or plot + output (see the example with DescToolsDesc()), ph_with() generates uninformative/misleading error message invalid element name [68] while the true issue is that the code generated output while only a plot was expected. And the place where the error occurs is shown as read_xml.raw(... while the true place is the code provided via dml() and evaluated in with_ph().
Either the function should fail with an error message that indicates the essence of the issue and the correct place where it occurred. E.g., Error in code provided in dml(): Code [...] generated output [...] while only a plot was expected.
On the other hand, capture.output() or similar can be applied to suppress the output and use only the plot generated by the code that produces both the plot and the output.
The text was updated successfully, but these errors were encountered:
Issue
While trying to add a plot to pptx slide, if the code provided via argument
code
(indml()
that is evaluated inph_with()
) generates output (e.g.,print(10)
) or plot + output (see the example withDescToolsDesc()
),ph_with()
generates uninformative/misleading error messageinvalid element name [68]
while the true issue is that the code generated output while only a plot was expected. And the place where the error occurs is shown asread_xml.raw(...
while the true place is the code provided viadml()
and evaluated inwith_ph()
.Example output of the function: plot + output
Created on 2023-03-29 with reprex v2.0.2
Session info
Expected result
Either the function should fail with an error message that indicates the essence of the issue and the correct place where it occurred. E.g.,
Error in code provided in dml(): Code [...] generated output [...] while only a plot was expected.
On the other hand,
capture.output()
or similar can be applied to suppress the output and use only the plot generated by the code that produces both the plot and the output.The text was updated successfully, but these errors were encountered: