-
Notifications
You must be signed in to change notification settings - Fork 36
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
Vignette to list some differences between R and Python API #1014
Conversation
…olars into vignette-diff-python
```r | ||
> hms::hms(56, 34, 12) | ||
12:34:56 | ||
|
||
> pl$DataFrame(x = hms::hms(56, 34, 12)) | ||
shape: (1, 1) | ||
┌─────────┐ | ||
│ x │ | ||
│ --- │ | ||
│ f64 │ | ||
╞═════════╡ | ||
│ 45296.0 │ | ||
└─────────┘ | ||
``` |
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.
Could this be in reprex style so that it can be copied and pasted and executed?
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 added the reprex style but those chunks are not evaluated every time (that would require us to put hms
and geos
in Suggests)
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.
Of course I don't think this needs to be an executable code block for now, but I think hms
will need to be included in Suggests at some point. (#919)
```r | ||
> geos::as_geos_geometry("LINESTRING (0 1, 3 9)") | ||
<geos_geometry[1]> | ||
[1] <LINESTRING (0 1, 3 9)> | ||
|
||
> pl$DataFrame(x = geos::as_geos_geometry("LINESTRING (0 1, 3 9)")) | ||
Error: Execution halted with the following contexts | ||
0: In R: in $DataFrame(): | ||
0: During function call [pl$DataFrame(x = geos::as_geos_geometry("LINESTRING (0 1, 3 9)"))] | ||
1: When constructing polars literal from Robj | ||
2: Encountered the following error in Rust-Polars: | ||
expected Series | ||
``` |
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.
Ditto. (Maybe with tryCatch
)
Maybe altdoc file(s) should be updated? r-polars/altdoc/mkdocs_static.yml Line 53 in de1fd05
|
Close #1012
We can add more things later if necessary.