Skip to content

Commit

Permalink
make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Oct 9, 2023
1 parent 0cdb378 commit f56b0fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
9 changes: 4 additions & 5 deletions R/expr__expr.R
Original file line number Diff line number Diff line change
Expand Up @@ -690,10 +690,10 @@ construct_ProtoExprArray = function(...) {
#' @examples
#' pl$DataFrame(iris)$
#' select(
#' pl$col("Sepal.Length")$map(\(x) {
#' paste("cheese", as.character(x$to_vector()))
#' }, pl$dtypes$Utf8)
#' )
#' pl$col("Sepal.Length")$map(\(x) {
#' paste("cheese", as.character(x$to_vector()))
#' }, pl$dtypes$Utf8)
#' )
#'
#' # R parallel process example, use Sys.sleep() to imitate some CPU expensive
#' # computation.
Expand Down Expand Up @@ -725,7 +725,6 @@ construct_ProtoExprArray = function(...) {
#' s * 2
#' }, in_background = TRUE)
#' )$collect() |> system.time()

Expr_map = function(f, output_type = NULL, agg_list = FALSE, in_background = FALSE) {
(if (isTRUE(in_background)) {
.pr$Expr$map_in_background(self, f, output_type, agg_list)
Expand Down
1 change: 0 additions & 1 deletion R/lazyframe__lazy.R
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,6 @@ LazyFrame_dtypes = method_as_property(function() {
#' pl$LazyFrame(iris)$
#' select(pl$col("Species")$append("flora gigantica, alien"))$
#' fetch(3)

LazyFrame_fetch = function(
n_rows = 500,
type_coercion = TRUE,
Expand Down
5 changes: 1 addition & 4 deletions src/rust/src/rbackground.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,7 @@ pub fn set_global_rpool_cap(c: Robj) -> RResult<()> {
#[extendr]
pub fn get_global_rpool_cap() -> RResult<List> {
let pool_guard = RBGPOOL.0.lock()?;
Ok(list!(
active = pool_guard.active,
capacity = pool_guard.cap
))
Ok(list!(active = pool_guard.active, capacity = pool_guard.cap))
}

#[extendr]
Expand Down

0 comments on commit f56b0fa

Please sign in to comment.