Commit 8b2e4193 authored by Holger Brandl's avatar Holger Brandl

use triple dot for prefix list in trim_ext

parent d96e886e
......@@ -468,11 +468,14 @@ rmerge <- function(LDF, by, ...){
## Deprecated: use trim_ext instead
trimEnd <- function(fileNames, ...) trim_ext(fileNames, ...)
## DEPRECTED: use trim_ext instead
trimEnd <- function(fileNames, ...){
warning("DEPRECATED: Use trim_ext instead");
trim_ext(fileNames, ...)
}
trim_ext <- function(fileNames, exts=c()){
for (fileExt in exts) {
trim_ext <- function(fileNames, ...){
for (fileExt in list(...)) {
fileNames <- str_replace(fileNames, paste(fileExt, "$", sep = ""), "")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment