-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: add $meta$show_graph()
#64
base: main
Are you sure you want to change the base?
Conversation
7915bfc
to
ace665f
Compare
Maybe pola-rs/r-polars#928 (comment)? Related upstream issue: pola-rs/polars#20631 |
In the At the same time, if we keep |
My concern is not the dependency but the API. In my opinion, we should separate functions rather than controlling the type of output with arguments. |
|
||
fn meta_tree_format(&self) -> Result<Sexp> { | ||
self.compute_tree_format(false) | ||
} | ||
|
||
fn meta_show_graph(&self) -> Result<Sexp> { | ||
self.compute_tree_format(true) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need to add these functions; just call <expr>$compute_tree_format(<bool>)
from the R side.
#' Note that Graphviz must be installed to render the visualization (if not | ||
#' already present, you can download it here: | ||
#' `<https://graphviz.org/download>`_). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this explanation is incorrect; Graphviz is not required.
I'd agree if we were building our own API but here we're following an existing one that faces the same challenges. I think we could instead talk about this upstream, especially with the (I can add a comment on the mermaid PR if you agree with this suggestion) |
I think we talked before about whether we should include the options to print / save the graph using external packages. I don't remember the decision, but no problem to add / remove functionalities here.