-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically restart disconnected sessions (#392)
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
new_chromote <- NULL | ||
|
||
.onLoad <- function(...) { | ||
if (is_installed("chromote")) { | ||
new_chromote <<- utils::packageVersion("chromote") >= "0.1.2.9000" | ||
} else { | ||
# If chromote is not installed yet, assume it's not new to be safe. | ||
new_chromote <- FALSE | ||
} | ||
|
||
invisible() | ||
} |