-
Notifications
You must be signed in to change notification settings - Fork 38
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
replace use of pl$polars_set_options()
with pl$options$...
in docs
#316
Comments
Hello, I would like to work on this issue if its okay. I did try to find 'pl$polars_set_options()' in the docs directory but was not able to. Can you help me with what exactly is the requirement ? |
Dear @Surya-Narayan . That sounds amazing :) current use set/get_polars_options replace You should fork r-polars main. Then make a new branch called e.g. options_docs and work there. You can fairly fast make a draft PR back to r-polars to see if tests are passing, and we will take it from there. |
@sorhawell I'm not entirely convinced by this change, it would feel a bit weird to do: pl$options$strictly_immutable(TRUE)
pl$options$debug_polars(TRUE) I think it's good to have pl$set_options(strictly_immutable = TRUE, debug_polars = TRUE) This still needs some renaming from Btw, I think we could add a |
I personally was never happy with the I wanted to have something with was faster and easier to use interactively. Ideally I wanted to have some As a second choice, I went with same interface type as shiny reactiveVal in respect to that @etiennebacher If going along with your suggestion. Maybe every option arg in then it could be then auto completion and "doc strings" would work well with e.g. Rstudio (plot as example)
We have some rust-side option statefulness which could be added such as The As side note: There is also an issue to refactor polars private options state representation |
Yes we should use named arguments and auto-completion would work. I just made a quick example with Would you be ok with something like this? I don't see why we should set them to
This would make sense to me, I think it's confusing to set some options with
There's a PR in rust-polars to fix the strange way to set string cache: pola-rs/polars#11020 |
it would force updating state of all options that are not However something like this would surprise a user, as pl$set_options(strictly_immutable = FALSE)
pl$set_options(some_other_option = FALSE)
pl$options$strictly_immutable
> TRUE |
This is mostly outdated now, I'll open another issue about what to do with |
pl$options
supports auto completion and make it easier to discover optionsThe text was updated successfully, but these errors were encountered: