File: bash.R

package info (click to toggle)
r-cran-devtools 2.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,340 kB
  • sloc: sh: 15; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 188 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#' Open bash shell in package directory.
#'
#' @template devtools
#' @export
bash <- function(pkg = ".") {
  pkg <- as.package(pkg)

  withr::with_dir(pkg$path, system("bash"))
}