R/add.slash.R

Defines functions add.slash

Documented in add.slash

# Add a slash to the end of a directory listing, if required.
add.slash = function(path) {
  if(substring(path, nchar(path), nchar(path)) != "/") {
    path = paste(path, "/", sep = "")
  } # if(substring(path, nchar(path), nchar(path)) != "/"))
  return(path)
} # add.slash()
dmgatti/DOQTL documentation built on April 7, 2024, 10:35 p.m.