R/bash.R

Defines functions bash

Documented in bash

#' Open bash shell in package directory.
#'
#' @template devtools
#' @export
bash <- function(pkg = ".") {
  pkg <- as.package(pkg)

  withr::with_dir(pkg$path, system("bash"))
}
r-lib/devtools documentation built on Feb. 17, 2024, 5:32 p.m.