Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add @export to roxy header for isAndromedaTable() #70

Merged
merged 5 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion R/Object.R
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,9 @@ setMethod("close", "Andromeda", function(con, ...) {
})

checkIfValid <- function(x) {
if (!isValidAndromeda(x))
if (!isValidAndromeda(x)) {
rlang::abort("Andromeda object is no longer valid. Perhaps it was saved without maintainConnection = TRUE, or R has been restarted?")
}
}

#' Is the object an Andromeda table?
Expand All @@ -492,6 +493,7 @@ checkIfValid <- function(x) {
#' isAndromedaTable(andr$cars)
#' close(andr)
#' }
#' @export
isAndromedaTable <- function(tbl) {
return(inherits(tbl, "tbl") && inherits(dbplyr::remote_con(tbl), "Andromeda"))
}
Loading