Skip to content

Commit 4a96107

Browse files
committed
import dir_create() from xfun
1 parent 6d9b147 commit 4a96107

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export(tufte_html_book)
4040
export(word_document2)
4141
import(stats)
4242
import(utils)
43+
importFrom(xfun,dir_create)
4344
importFrom(xfun,dir_exists)
4445
importFrom(xfun,existing_files)
4546
importFrom(xfun,in_dir)

R/bookdown-package.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"_PACKAGE"
77

88
## usethis namespace: start
9-
#' @importFrom xfun dir_exists
9+
#' @importFrom xfun dir_create dir_exists
1010
## usethis namespace: end
1111
NULL

R/utils.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,6 @@ strip_search_text = function(x) {
280280
# manipulate internal options
281281
opts = knitr:::new_defaults(list(config = list()))
282282

283-
dir_create = function(path) {
284-
dir_exists(path) || dir.create(path, recursive = TRUE)
285-
}
286-
287283
# a wrapper of file.path to ignore `output_dir` if it is NULL
288284
output_path = function(...) {
289285
dir = opts$get('output_dir')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy