From 94a72dc225dd3f1bc3c5154a190ab9a276d488fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Thu, 1 Feb 2024 10:27:14 +0100 Subject: [PATCH] chore: fix visible binding of SQL functions --- NAMESPACE | 1 - R/SCDB-package.R | 5 ----- R/digest_to_checksum.R | 3 +++ R/unite.tbl_dbi.R | 3 +++ 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index c9601518..df89ee2c 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -55,7 +55,6 @@ import(RSQLite) import(dbplyr) import(lubridate) import(tidyverse) -import(utils) importFrom(R6,R6Class) importFrom(methods,setGeneric) importFrom(rlang,":=") diff --git a/R/SCDB-package.R b/R/SCDB-package.R index b1a55489..65bf5863 100644 --- a/R/SCDB-package.R +++ b/R/SCDB-package.R @@ -3,8 +3,3 @@ #' @import RSQLite NULL - -#' @import utils -utils::globalVariables(".") -utils::globalVariables("NULLIF") -utils::globalVariables("CONCAT_WS") diff --git a/R/digest_to_checksum.R b/R/digest_to_checksum.R index 5ca8d61b..512a62d6 100644 --- a/R/digest_to_checksum.R +++ b/R/digest_to_checksum.R @@ -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) diff --git a/R/unite.tbl_dbi.R b/R/unite.tbl_dbi.R index 129f8eae..d0bcb3b1 100644 --- a/R/unite.tbl_dbi.R +++ b/R/unite.tbl_dbi.R @@ -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