-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from nanxstats/zzz
Move `.onLoad()` to `zzz.R` following convention
- Loading branch information
Showing
3 changed files
with
14 additions
and
15 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,2 @@ | ||
#' @keywords internal | ||
"_PACKAGE" | ||
|
||
#' Global reference to ssw-py | ||
#' | ||
#' Global reference to ssw-py which will be initialized in `.onLoad`. | ||
#' | ||
#' @return ssw-py reference object | ||
#' | ||
#' @export ssw_py | ||
ssw_py <- NULL | ||
|
||
.onLoad <- function(libname, pkgname) { | ||
reticulate::use_virtualenv("r-ssw-py", required = FALSE) | ||
ssw_py <<- reticulate::import("ssw", delay_load = TRUE) | ||
} |
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,13 @@ | ||
#' Global reference to ssw-py | ||
#' | ||
#' Global reference to ssw-py which will be initialized in `.onLoad`. | ||
#' | ||
#' @return ssw-py reference object | ||
#' | ||
#' @export ssw_py | ||
ssw_py <- NULL | ||
|
||
.onLoad <- function(libname, pkgname) { | ||
reticulate::use_virtualenv("r-ssw-py", required = FALSE) | ||
ssw_py <<- reticulate::import("ssw", delay_load = TRUE) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.