Skip to content

Commit edf5662

Browse files
allow osVersion to be NULL (#850)
1 parent 1053878 commit edf5662

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/zzz.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@
7272

7373
.onAttach <- function(libname, pkgname) {
7474
if (interactive()) {
75+
os_version <- utils::osVersion
7576
packageStartupMessage(
7677
"TileDB R ", packageVersion("tiledb"),
7778
" with TileDB Embedded ", format(tiledb_version(TRUE)),
78-
" on ", utils::osVersion,
79+
" on ", if (is.null(os_version)) "<unknown OS>" else os_version,
7980
".\nSee https://tiledb.com for more information about TileDB."
8081
)
8182
}

0 commit comments

Comments
 (0)