@@ -20,7 +20,7 @@ is_osx <- function() {
2020pandoc_output_file <- function (input , pandoc_options ) {
2121 to <- strsplit(pandoc_options $ to , " [+-]" )[[1 ]][[1 ]]
2222 ext <- pandoc_output_ext(pandoc_options $ ext , to , input )
23- output <- paste0(tools :: file_path_sans_ext (input ), ext )
23+ output <- paste0(xfun :: sans_ext (input ), ext )
2424 basename(output )
2525}
2626
@@ -29,7 +29,7 @@ pandoc_output_ext <- function(ext, to, input) {
2929 if (to %in% c(" latex" , " beamer" )) return (" .pdf" )
3030 if (to %in% c(" html" , " html4" , " html5" , " s5" , " slidy" , " slideous" , " dzslides" , " revealjs" ))
3131 return (" .html" )
32- if (to == " markdown" && tolower(tools :: file_ext(input )) != " md" ) return (" .md" )
32+ if (to == " markdown" && tolower(xfun :: file_ext(input )) != " md" ) return (" .md" )
3333 paste0(" ." , to )
3434}
3535
@@ -148,25 +148,25 @@ dir_exists <- function(x) {
148148}
149149
150150file_with_ext <- function (file , ext ) {
151- paste(tools :: file_path_sans_ext (file ), " ." , ext , sep = " " )
151+ paste(xfun :: sans_ext (file ), " ." , ext , sep = " " )
152152}
153153
154154
155- file_with_meta_ext <- function (file , meta_ext , ext = tools :: file_ext(file )) {
156- paste(tools :: file_path_sans_ext (file ),
155+ file_with_meta_ext <- function (file , meta_ext , ext = xfun :: file_ext(file )) {
156+ paste(xfun :: sans_ext (file ),
157157 " ." , meta_ext , " ." , ext , sep = " " )
158158}
159159
160160knitr_files_dir <- function (file ) {
161- paste(tools :: file_path_sans_ext (file ), " _files" , sep = " " )
161+ paste(xfun :: sans_ext (file ), " _files" , sep = " " )
162162}
163163
164164knitr_root_cache_dir <- function (file ) {
165- paste(tools :: file_path_sans_ext (file ), " _cache" , sep = " " )
165+ paste(xfun :: sans_ext (file ), " _cache" , sep = " " )
166166}
167167
168168knitr_cache_dir <- function (file , pandoc_to ) {
169- paste(tools :: file_path_sans_ext (file ), " _cache/" , pandoc_to , " /" , sep = " " )
169+ paste(xfun :: sans_ext (file ), " _cache/" , pandoc_to , " /" , sep = " " )
170170}
171171
172172get_knitr_hook_list <- function (hook_names = NULL ) {
0 commit comments