Skip to content

Commit

Permalink
allow more control on the sas configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkliming committed Apr 29, 2024
1 parent 2700b46 commit a6fab40
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# sasr 0.1.2.9006

* Update `sas_session` to allow finer control over the sas session.
* The argument `sascfg` has been replaced by `cfgfile` in `sas_session`.

# sasr 0.1.2

* First CRAN version of the package.
Expand Down
8 changes: 5 additions & 3 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,15 @@ get_sas_session <- function() {
#' @description `r lifecycle::badge("experimental")`
#' Create a SAS session.
#'
#' @param sascfg (`character`)\cr SAS session configuration.
#' @param cfgfile (`string`)\cr SAS session configuration.
#' @param ... additional arguments passed to `saspy.SASsession()`.
#' Can override the configuration file.
#'
#' @return SAS session.
#' @export
sas_session <- function(sascfg = get_sas_cfg()) {
sas_session <- function(cfgfile = get_sas_cfg(), ...) {
validate_sascfg(sascfg)
session <- saspy$SASsession(cfgfile = sascfg)
session <- saspy$SASsession(cfgfile = sascfg, ...)
.sasr_env$.sas_session <- session
return(session)
}
Expand Down
7 changes: 5 additions & 2 deletions man/sas_session.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions man/sas_session_ssh.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/sasr-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a6fab40

Please sign in to comment.