R/spip_binary_path.R

Defines functions spip_binary_path

Documented in spip_binary_path

#' return the path where spip should be in the R system paths
#'
#' It expects it to be in the R package directory after external installation.
#' @keywords internal
spip_binary_path <- function() {
  bin_name <- paste("spip", Sys.info()["sysname"], sep = "-")
  if(Sys.info()["sysname"] == "Windows") {
    bin_name <- paste(bin_name, ".exe", sep = "")
  }
  file.path(system.file(package = "CKMRpop"), "bin", bin_name)
}

Try the CKMRpop package in your browser

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

CKMRpop documentation built on July 17, 2021, 5:07 p.m.