Skip to content

Commit

Permalink
fix: fixed try call in assert_connection docs
Browse files Browse the repository at this point in the history
  • Loading branch information
selkamand committed Nov 13, 2024
1 parent ee4be83 commit e154805
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions R/assert_type.R
Original file line number Diff line number Diff line change
Expand Up @@ -580,12 +580,12 @@ assert_scalar <- assert_create(
#' @return `invisible(TRUE)` if `x` is a valid database connection, otherwise aborts with an error message.
#'
#' @examples
#' \try{
#' # Assuming a valid DBI connection `conn`:
#' assert_connection(conn) # Passes if `conn` is a DBI connection
#' try({
#' # Assuming a valid DBI connection `conn`:
#' assert_connection(conn) # Passes if `conn` is a DBI connection
#'
#' assert_connection(42) # Fails with error message
#' }
#' assert_connection(42) # Fails with error message
#' })
#'
#' @details
#' This function is designed for use with objects inheriting from the "DBIConnection" class, which is used widely across database connection implementations in R.
Expand Down
10 changes: 5 additions & 5 deletions man/assert_connection.Rd

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

0 comments on commit e154805

Please sign in to comment.