Skip to content

Commit

Permalink
revert braces changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sorhawell committed Oct 20, 2023
1 parent 4c8c992 commit 63aa6d0
Show file tree
Hide file tree
Showing 23 changed files with 51 additions and 52 deletions.
41 changes: 20 additions & 21 deletions R/expr__expr.R
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ Expr_rechunk = "use_extendr_wrapper"
#' @aliases Expr_cumsum
#' @name Expr_cumsum
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before summing to prevent overflow issues.
#' @format NULL
#' @examples
Expand All @@ -1394,7 +1394,7 @@ Expr_cumsum = function(reverse = FALSE) {
#' @aliases cumprod
#' @name Expr_cumprod
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before summing to prevent overflow issues.
#'
#' @format NULL
Expand All @@ -1415,7 +1415,7 @@ Expr_cumprod = function(reverse = FALSE) {
#' @aliases cummin
#' @name Expr_cummin
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before summing to prevent overflow issues.
#'
#' See Inf,NaN,NULL,Null/NA translations here \code{\link[polars]{docs_translations}}
Expand All @@ -1437,7 +1437,7 @@ Expr_cummin = function(reverse = FALSE) {
#' @aliases cummin
#' @name Expr_cummin
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before summing to prevent overflow issues.
#'
#' See Inf,NaN,NULL,Null/NA translations here \code{\link[polars]{docs_translations}}
Expand All @@ -1460,7 +1460,7 @@ Expr_cummax = function(reverse = FALSE) {
#' @aliases cumcount
#' @name Expr_cumcount
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before summing to prevent overflow issues.
#'
#' cumcount does not seem to count within lists.
Expand Down Expand Up @@ -2065,7 +2065,7 @@ Expr_nan_min = "use_extendr_wrapper"
#' Get sum value
#'
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before summing to prevent overflow issues.
#'
#' @return Expr
Expand Down Expand Up @@ -2664,7 +2664,7 @@ Expr_reinterpret = function(signed = TRUE) {
#' The printing will happen when the expression evaluates, not when it is formed.
#' @param fmt format string, should contain one set of `{}` where object will be printed
#' This formatting mimics python "string".format() use in pypolars. The string can
#' contain any thing but should have exactly one set of curly bracket `{}`.
#' contain any thing but should have exactly one set of curly bracket {}.
#' @return Expr
#' @aliases inspect
#' @examples
Expand Down Expand Up @@ -2782,7 +2782,7 @@ prepare_rolling_window_args = function(
#' If the `window_size` is temporal for instance `"5h"` or `"3s`, you must
#' set the column that will be used to determine the windows. This column must
#' be of dtype `{Date, Datetime}`
#' @param closed String options `{'left', 'right', 'both', 'none'}`
#' @param closed : {'left', 'right', 'both', 'none'}
#' Define whether the temporal window interval is closed or not.
#'
#'
Expand Down Expand Up @@ -2848,7 +2848,7 @@ Expr_rolling_min = function(
#' If the `window_size` is temporal for instance `"5h"` or `"3s`, you must
#' set the column that will be used to determine the windows. This column must
#' be of dtype `{Date, Datetime}`
#' @param closed String options `{'left', 'right', 'both', 'none'}`
#' @param closed : {'left', 'right', 'both', 'none'}
#' Define whether the temporal window interval is closed or not.
#'
#'
Expand Down Expand Up @@ -2914,7 +2914,7 @@ Expr_rolling_max = function(
#' If the `window_size` is temporal for instance `"5h"` or `"3s`, you must
#' set the column that will be used to determine the windows. This column must
#' be of dtype `{Date, Datetime}`
#' @param closed String options `{'left', 'right', 'both', 'none'}`
#' @param closed : {'left', 'right', 'both', 'none'}
#' Define whether the temporal window interval is closed or not.
#' @details
#' This functionality is experimental and may change without it being considered a
Expand Down Expand Up @@ -2980,7 +2980,7 @@ Expr_rolling_mean = function(
#' If the `window_size` is temporal for instance `"5h"` or `"3s`, you must
#' set the column that will be used to determine the windows. This column must
#' be of dtype `{Date, Datetime}`
#' @param closed String options `{'left', 'right', 'both', 'none'}`
#' @param closed : {'left', 'right', 'both', 'none'}
#' Define whether the temporal window interval is closed or not.
#' @details
#' This functionality is experimental and may change without it being considered a
Expand Down Expand Up @@ -3042,10 +3042,10 @@ Expr_rolling_sum = function(
#' @param center
#' Set the labels at the center of the window
#' @param by
#' If the `window_size` is temporal for instance `"5h"` or `"3s"`, you must
#' If the `window_size` is temporal for instance `"5h"` or `"3s`, you must
#' set the column that will be used to determine the windows. This column must
#' be of DataType: Date or DateTime.
#' @param closed string option `c("left", "right", "both", "none")`.
#' be of dtype `{Date, Datetime}`
#' @param closed : {'left', 'right', 'both', 'none'}
#' Define whether the temporal window interval is closed or not.
#'
#'
Expand All @@ -3066,14 +3066,13 @@ Expr_rolling_std = function(
min_periods = NULL,
center = FALSE, # :bool,
by = NULL, # : Nullable<String>,
closed = c("left", "right", "both", "none")
closed = "left" # ;: Nullable<String>,
) {
wargs = prepare_rolling_window_args(window_size, min_periods)
.pr$Expr$rolling_std(
unwrap(.pr$Expr$rolling_std(
self, wargs$window_size, weights,
wargs$min_periods, center, by, closed
) |>
unwrap("in $rolling_std(): ")
))
}

#' Rolling var
Expand Down Expand Up @@ -3112,7 +3111,7 @@ Expr_rolling_std = function(
#' If the `window_size` is temporal for instance `"5h"` or `"3s`, you must
#' set the column that will be used to determine the windows. This column must
#' be of dtype `{Date, Datetime}`
#' @param closed String options `{'left', 'right', 'both', 'none'}`
#' @param closed : {'left', 'right', 'both', 'none'}
#' Define whether the temporal window interval is closed or not.
#'
#'
Expand Down Expand Up @@ -3178,7 +3177,7 @@ Expr_rolling_var = function(
#' If the `window_size` is temporal for instance `"5h"` or `"3s`, you must
#' set the column that will be used to determine the windows. This column must
#' be of dtype `{Date, Datetime}`
#' @param closed String options `{'left', 'right', 'both', 'none'}`
#' @param closed : {'left', 'right', 'both', 'none'}
#' Define whether the temporal window interval is closed or not.
#'
#'
Expand Down Expand Up @@ -3249,7 +3248,7 @@ Expr_rolling_median = function(
#' If the `window_size` is temporal for instance `"5h"` or `"3s`, you must
#' set the column that will be used to determine the windows. This column must
#' be of dtype `{Date, Datetime}`
#' @param closed String options `{'left', 'right', 'both', 'none'}`
#' @param closed : {'left', 'right', 'both', 'none'}
#' Define whether the temporal window interval is closed or not.
#'
#'
Expand Down
2 changes: 1 addition & 1 deletion R/extendr-wrappers.R
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ LazyFrame$sink_parquet <- function(path, compression_method, compression_level,

LazyFrame$sink_ipc <- function(path, compression_method, maintain_order) .Call(wrap__LazyFrame__sink_ipc, self, path, compression_method, maintain_order)

LazyFrame$sink_csv <- function(path, has_header, separator, line_terminator, quote, batch_size, datetime_format, date_format, time_format, float_precision, null_values, quote_style, maintain_order) .Call(wrap__LazyFrame__sink_csv, self, path, has_header, separator, line_terminator, quote, batch_size, datetime_format, date_format, time_format, float_precision, null_values, quote_style, maintain_order)
LazyFrame$sink_csv <- function(path, has_header, separator, line_terminator, quote, batch_size, datetime_format, date_format, time_format, float_precision, null_value, quote_style, maintain_order) .Call(wrap__LazyFrame__sink_csv, self, path, has_header, separator, line_terminator, quote, batch_size, datetime_format, date_format, time_format, float_precision, null_value, quote_style, maintain_order)

LazyFrame$first <- function() .Call(wrap__LazyFrame__first, self)

Expand Down
12 changes: 6 additions & 6 deletions R/series__series.R
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ Series_clone = "use_extendr_wrapper"
#' @aliases Series_cumsum
#' @name Series_cumsum
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before summing to prevent overflow issues.
#' @examples
#' pl$Series(c(1:2, NA, 3, NaN, 4, Inf))$cumsum()
Expand All @@ -586,7 +586,7 @@ Series_cumsum = function(reverse = FALSE) {
#' @return R scalar value
#' @keywords Series
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before summing to prevent overflow issues.
#' @examples
#' pl$Series(c(1:2, NA, 3, 5))$sum() # a NA is dropped always
Expand All @@ -601,7 +601,7 @@ Series_sum = function() {
#' @return R scalar value
#' @keywords Series
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before meanming to prevent overflow issues.
#' @examples
#' pl$Series(c(1:2, NA, 3, 5))$mean() # a NA is dropped always
Expand All @@ -616,7 +616,7 @@ Series_mean = function() {
#' @return R scalar value
#' @keywords Series
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before medianming to prevent overflow issues.
#' @examples
#' pl$Series(c(1:2, NA, 3, 5))$median() # a NA is dropped always
Expand All @@ -631,7 +631,7 @@ Series_median = function() {
#' @return R scalar value
#' @keywords Series
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before maxming to prevent overflow issues.
#' @examples
#' pl$Series(c(1:2, NA, 3, 5))$max() # a NA is dropped always
Expand All @@ -646,7 +646,7 @@ Series_max = function() {
#' @return R scalar value
#' @keywords Series
#' @details
#' Dtypes in `{Int8, UInt8, Int16, UInt16}` are cast to
#' Dtypes in {Int8, UInt8, Int16, UInt16} are cast to
#' Int64 before taking the min to prevent overflow issues.
#' @examples
#' pl$Series(c(1:2, NA, 3, 5))$min() # a NA is dropped always
Expand Down
2 changes: 1 addition & 1 deletion man/Expr_cumcount.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/Expr_cummin.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_cumprod.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_cumsum.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_inspect.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_rolling_max.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_rolling_mean.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_rolling_median.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_rolling_min.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_rolling_quantile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/Expr_rolling_std.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_rolling_sum.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_rolling_var.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Expr_sum.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Series_cumsum.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Series_max.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Series_mean.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 63aa6d0

Please sign in to comment.