Skip to content

Commit

Permalink
chore: fix visible binding of SQL functions
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Feb 1, 2024
1 parent 126f33f commit 94a72dc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import(RSQLite)
import(dbplyr)
import(lubridate)
import(tidyverse)
import(utils)
importFrom(R6,R6Class)
importFrom(methods,setGeneric)
importFrom(rlang,":=")
Expand Down
5 changes: 0 additions & 5 deletions R/SCDB-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@

#' @import RSQLite
NULL

#' @import utils
utils::globalVariables(".")
utils::globalVariables("NULLIF")
utils::globalVariables("CONCAT_WS")
3 changes: 3 additions & 0 deletions R/digest_to_checksum.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ digest_to_checksum_internal <- function(.data, col) {
UseMethod("digest_to_checksum_internal")
}

# Resolve visible binding warning for SQL commands
utils::globalVariables(c("CONVERT", "VARCHAR"))

#' @noRd
`digest_to_checksum_internal.tbl_Microsoft SQL Server` <- function(.data, col) {
con <- dbplyr::remote_con(.data)
Expand Down
3 changes: 3 additions & 0 deletions R/unite.tbl_dbi.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Resolve visible binding warning for SQL commands
utils::globalVariables(c("NULLIF", "CONCAT_WS"))

#' tidyr::unite for tbl_dbi
#'
#' @inheritParams tidyr::unite
Expand Down

0 comments on commit 94a72dc

Please sign in to comment.