Skip to content

Commit

Permalink
Channge from ODBC Driver 18 to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
monicagerber committed Oct 30, 2024
1 parent 7a1a351 commit f5766de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions R/connect_hidra.R
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
5 changes: 3 additions & 2 deletions man/connect_hidra.Rd

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

0 comments on commit f5766de

Please sign in to comment.