Skip to content

Commit

Permalink
Import within sas_connect to make pkgdown happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanzomorrodi committed Nov 17, 2024
1 parent eb47a63 commit 92f01a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions R/connection.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#'
#' @export
sas_connect <- function(config) {
.pkgenv$saspy <- reticulate::import("saspy")

if (missing(config)) {
.pkgenv$session <- .pkgenv$saspy$SASsession()
} else {
Expand Down
1 change: 0 additions & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.pkgenv <- new.env(parent = emptyenv())

.onAttach <- function(libname, pkgname) {
.pkgenv$saspy <- reticulate::import("saspy")
knitr::knit_engines$set(sas = sas_engine)
}

0 comments on commit 92f01a7

Please sign in to comment.