R/read_ssh_config.R

Defines functions read_ssh_config

read_ssh_config <- function() {
  if (.Platform$OS.type == "windows") {
    location <- "~/../.ssh/config"
  } else {
    location <- "~/.ssh/config"
  }

  if (file.exists(location)) {
    readr::read_lines(location)
  } else {
    NULL
  }
}
rcannood/qsub documentation built on Sept. 26, 2021, 8:55 a.m.