Skip to content

Commit

Permalink
doc: Further clarify get_connection example
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Munch Grünewald authored and Marcus Munch Grünewald committed Sep 4, 2023
1 parent 7551a07 commit e53d7a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions R/connection.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
#' Additional parameters sent to DBI::dbConnect()
#' @return
#' An object that inherits from DBIConnection driver specified in drv
#' @examples
#' \dontrun{
#' @examplesIf requireNamespace("RSQLite", quietly = TRUE)
#' conn <- get_connection(drv = RSQLite::SQLite(), dbname = ":memory:")
#'
#' DBI::dbIsValid(conn) # TRUE
#'
#' close_connection(conn)
#' }
#'
#' DBI::dbIsValid(conn) # FALSE
#' @seealso [RPostgres::Postgres]
#' @export
get_connection <- function(drv = RPostgres::Postgres(),
Expand Down
7 changes: 5 additions & 2 deletions man/get_connection.Rd

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

0 comments on commit e53d7a8

Please sign in to comment.