From f5766de5960db04819c0258de0be5f8600964606 Mon Sep 17 00:00:00 2001 From: Monica Gerber Date: Wed, 30 Oct 2024 15:36:14 -0700 Subject: [PATCH] Channge from ODBC Driver 18 to 17 --- R/connect_hidra.R | 7 +++++-- man/connect_hidra.Rd | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/R/connect_hidra.R b/R/connect_hidra.R index 5506af1..5232c1e 100644 --- a/R/connect_hidra.R +++ b/R/connect_hidra.R @@ -1,15 +1,18 @@ #' Connect to the HIDRA database #' +#' Requires [ODBC Driver 17 for SQL Server](https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver16) +#' if on macOS. +#' #' @param system 'mac' or 'windows' #' #' @return Creates a database connection #' @export #' -#' @examples \dontrun{connect_hidra("mac")} +#' @examples \dontrun{con <- connect_hidra("mac")} connect_hidra <- function(system = "mac") { if (system == "mac" | system == "Mac") { - driver <- "ODBC Driver 18 for SQL Server" + driver <- "ODBC Driver 17 for SQL Server" } else if (system == "windows" | system == "Windows") { driver <- "SQL Server" } else { diff --git a/man/connect_hidra.Rd b/man/connect_hidra.Rd index a2fbc3f..806e4ee 100644 --- a/man/connect_hidra.Rd +++ b/man/connect_hidra.Rd @@ -13,8 +13,9 @@ connect_hidra(system = "mac") Creates a database connection } \description{ -Connect to the HIDRA database +Requires \href{https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver16}{ODBC Driver 17 for SQL Server} +if on macOS. } \examples{ - \dontrun{connect_hidra("mac")} + \dontrun{con <- connect_hidra("mac")} }