| 1 |
#' @include with_.R |
| 2 |
NULL |
| 3 |
|
| 4 |
# working directory ---------------------------------------------------------- |
| 5 |
|
| 6 |
#' Working directory |
| 7 |
#' |
| 8 |
#' Temporarily change the current working directory. |
| 9 |
#' |
| 10 |
#' @template with |
| 11 |
#' @param new `[character(1)]`\cr New working directory |
| 12 |
#' @inheritParams with_collate |
| 13 |
#' @seealso [setwd()] |
| 14 |
#' @export |
| 15 |
#' @examples |
| 16 |
#' getwd() |
| 17 |
#' |
| 18 |
#' with_dir(tempdir(), getwd()) |
| 19 |
with_dir <- with_(setwd) |
| 20 |
|
| 21 |
#' @rdname with_dir |
| 22 |
#' @export |
| 23 |
local_dir <- local_(setwd) |