Skip to content

Commit

Permalink
Temporarily disable examples for $name$map() (#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher authored May 27, 2024
1 parent c140b01 commit 90c947a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
22 changes: 11 additions & 11 deletions R/expr__name.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ ExprName_keep = function() {
#' @param fun an R function which takes a string as input and return a string
#' @return Expr
#'
#' @examplesIf FALSE
#' df = pl$DataFrame(var1 = 1:3, var2 = "a")
#'
#' df$select(
#' pl$col("*")$name$map(\(x) paste0("new_", x))
#' )
#'
#' # $alias() is not taken into account by $name$map()
#' df$select(
#' pl$col("var1")$alias("foobar")$name$map(\(x) paste0("new_", x))
#' )
#' @examples
#' # df = pl$DataFrame(var1 = 1:3, var2 = "a")
#' #
#' # df$select(
#' # pl$col("*")$name$map(\(x) paste0("new_", x))
#' # )
#' #
#' # # $alias() is not taken into account by $name$map()
#' # df$select(
#' # pl$col("var1")$alias("foobar")$name$map(\(x) paste0("new_", x))
#' # )
ExprName_map = function(fun) {
if (
!polars_options()$no_messages &&
Expand Down
22 changes: 10 additions & 12 deletions man/ExprName_map.Rd

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

0 comments on commit 90c947a

Please sign in to comment.