Skip to content

Commit

Permalink
Merge pull request #76 from aidan-gibson/main
Browse files Browse the repository at this point in the history
fix set-ebd-path to set ebd path for current session, fixes #75
  • Loading branch information
mstrimas authored Nov 9, 2023
2 parents 94927aa + 6a41f17 commit d92c115
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions R/auk-set-awk-path.r
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ auk_set_awk_path <- function(path, overwrite = FALSE) {
write(paste0("AWK_PATH='", path, "'\n"), renv_path, append = TRUE)
message(paste("AWK_PATH set to", path))
invisible(path)
# set AWK_PATH for this session, so user doesn't have to reload
Sys.setenv(AWK_PATH = path)
}
4 changes: 3 additions & 1 deletion R/auk-set-ebd-path.r
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' @param overwrite logical; should the existing `EBD_PATH` be overwritten if it
#' has already been set in .Renviron.
#'
#' @return Edits .Renviron, then returns the AWK path invisibly.
#' @return Edits .Renviron, then returns the EBD path invisibly.
#' @export
#' @family paths
#' @examples
Expand Down Expand Up @@ -50,4 +50,6 @@ auk_set_ebd_path <- function(path, overwrite = FALSE) {
write(paste0("EBD_PATH='", path, "'\n"), renv_path, append = TRUE)
message(paste("EBD_PATH set to", path))
invisible(path)
# set EBD_PATH for this session, so user doesn't have to reload
Sys.setenv(EBD_PATH = path)
}

0 comments on commit d92c115

Please sign in to comment.