-
Notifications
You must be signed in to change notification settings - Fork 23
Add R backend-controlled format options to data explorer #987
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
Open
kv9898
wants to merge
17
commits into
posit-dev:main
Choose a base branch
from
kv9898:scipen
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
f58e61b
Add format_options as part of BackendState
kv9898 9c14a03
fetch scipen option
kv9898 c10d632
Also use digits
kv9898 a8cae77
Remove clamping for maximum values
kv9898 03924fb
Add comments for scipen and digits defaults
kv9898 7e3086f
2 d.p. by default
kv9898 74afed2
max integral digits and small num digits only depend on scipen, not d…
kv9898 35f1c6a
Add function comment
kv9898 9569779
Add test for BackendState format_options reflecting R option changes …
Copilot 910bb6d
use as.integer() this time (#3)
kv9898 aa29e72
Copilot does not need to sign the CLA
juliasilge bc4f44b
Maybe Copilot's name is `copilot`
juliasilge b0508b6
Actually, it's name is `copilot[bot]`
juliasilge bdfe49e
Revert "Actually, it's name is `copilot[bot]`"
juliasilge 0ba2914
Revert "Maybe Copilot's name is `copilot`"
juliasilge 98b3fd2
Revert "Copilot does not need to sign the CLA"
juliasilge afa46f6
Streamline code
kv9898 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Looks like tests are failing with:
thread 'test_format_options_state_change' (32147) panicked at crates/ark/tests/data_explorer.rs:3160:9: assertion `left == right` failed left: 5 right: 15Any idea @kv9898 ?
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.
It only fails for R 4.2 🤔
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.
IDK, this might be related: wch/r-source@7f20c19
There's something special about scipen. Because digits are being correctly evaluated. Perhaps we can't use get_option for this, and instead we bay need to evaluate
getOptionfrom the R interpreter.Uh oh!
There was an error while loading. Please reload this page.
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.
Thx for checking that out. Because the test worked for me with R 4.5.2:
Uh oh!
There was an error while loading. Please reload this page.
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.
Currently, I don't have much of a clue.Feel free to edit my code if you find a solution! Wrapping the call inas.integer()seems to work.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.
Tried that but sadly it didn't work.