Skip to content

Commit 9192714

Browse files
committed
Add is_rnw_file()
1 parent 34f82cd commit 9192714

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/utils.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ is_rmd_file <- function(path) {
8484
grepl("\\.Rmd$", path, ignore.case = TRUE)
8585
}
8686

87+
is_rnw_file <- function(path) {
88+
grepl("\\.Rnw$", path, ignore.case = TRUE)
89+
}
90+
8791
is_unsaved_file <- function(path) {
8892
path == ""
8993
}

0 commit comments

Comments
 (0)