Skip to content

Commit

Permalink
docs: remove % in the examples roxygen comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Apr 28, 2024
1 parent c31ff1a commit 5e85118
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion R/dataframe__frame.R
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,9 @@ DataFrame_clear = function(n = 0) {
out
}


# TODO: we can't use % in the SQL query
# <https://github.com/r-lib/roxygen2/issues/1616>
#' Execute a SQL query against the DataFrame
#'
#' @inherit LazyFrame_sql description details params seealso
Expand Down Expand Up @@ -2466,7 +2469,7 @@ DataFrame_clear = function(n = 0) {
#' query = r"(
#' SELECT
#' a,
#' (a % 2 == 0) AS a_is_even,
#' MOD(a, 2) == 0 AS a_is_even,
#' CONCAT_WS(':', b, b) AS b_b,
#' EXTRACT(year FROM c) AS year,
#' 0::float AS 'zero'
Expand Down
4 changes: 3 additions & 1 deletion R/lazyframe__lazy.R
Original file line number Diff line number Diff line change
Expand Up @@ -2079,6 +2079,8 @@ LazyFrame_clear = function(n = 0) {
}


# TODO: we can't use % in the SQL query
# <https://github.com/r-lib/roxygen2/issues/1616>
#' Execute a SQL query against the LazyFrame
#'
#' The calling frame is automatically registered as a table in the SQL context
Expand Down Expand Up @@ -2121,7 +2123,7 @@ LazyFrame_clear = function(n = 0) {
#' query = r"(
#' SELECT
#' a,
#' (a % 2 == 0) AS a_is_even,
#' MOD(a, 2) == 0 AS a_is_even,
#' (b::float / 2) AS 'b/2',
#' CONCAT_WS(':', c, c, c) AS c_c_c
#' FROM frame
Expand Down
2 changes: 1 addition & 1 deletion man/DataFrame_sql.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/LazyFrame_sql.Rd

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

0 comments on commit 5e85118

Please sign in to comment.