Skip to content

Commit

Permalink
Try requireNamespace
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 committed Mar 3, 2022
1 parent 7538696 commit d8aeb45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r/R/arrow-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
options(arrow.use_threads = FALSE)

# Try to set timezone database
if (length(find.package("tzdb", quiet=TRUE))) {
if (requireNamespace("tzdb", quietly = TRUE)) {
tzdb::tzdb_initialize()
set_timezone_database(tzdb::tzdb_path("text"))
} else {
Expand Down

0 comments on commit d8aeb45

Please sign in to comment.