R/composeOutputFilename.R

Defines functions composeOutputFilename

composeOutputFilename <- function(path,
                                  filename,
                                  outputPrefix = "",
                                  outputSuffix = "") {
  return(
    file.path(
      path,
      paste0(
        outputPrefix,
        tools::file_path_sans_ext(filename),
        outputSuffix,
        ".",
        tools::file_ext(filename)
      )
    )
  );
}

Try the rock package in your browser

Any scripts or data that you put into this service are public.

rock documentation built on Dec. 28, 2022, 1:55 a.m.