Skip to content

Commit add9daa

Browse files
committed
fail-safe mode (#239)
1 parent 854e0eb commit add9daa

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
## Documentation updates
1616

17-
- Update docs on how to cope with stored procedures (#239, @aryoda).
17+
- The DBI specification vignette is rendered correctly from the installed package (#234).
18+
- Update docs on how to cope with stored procedures (#242, @aryoda).
1819
- Add "Additional arguments" sections and more examples for `dbGetQuery()`, `dbSendQuery()`, `dbExecute()` and `dbSendStatement()`.
1920
- The `dbColumnInfo()` method is now fully specified (#75).
2021
- The `dbListFields()` method is now fully specified (#75).

R/rd.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ methods_as_rd <- function(method) {
99
s4_topic <- function(x) {
1010
sig <- paste0(x@defined, collapse = ",")
1111
sig_text <- paste0('"', x@defined, '"', collapse = ", ")
12-
package <- getNamespaceName(environment(x@.Data))
13-
if (package == "DBI") {
12+
package <- tryCatch(
13+
getNamespaceName(environment(x@.Data)),
14+
error = function(e) NA
15+
)
16+
if (is.na(package) || package == "DBI") {
1417
NA_character_
1518
} else {
1619
paste0(

0 commit comments

Comments
 (0)