R/create_temp_peptides_path.R

Defines functions create_temp_peptides_path

Documented in create_temp_peptides_path

#' Create a path to a non-existing temporary file
#' @param fileext file extension
#' @author Richèl J.C. Bilderbeek
#' @examples
#' create_temp_peptides_path()
#' @export
create_temp_peptides_path <- function(
  fileext = ".fasta"
) {
  file.path(
    rappdirs::user_cache_dir(),
    basename(
      tempfile(pattern = "mhcnuggets_", fileext = fileext)
    )
  )
}
richelbilderbeek/mhcnuggetsr documentation built on Nov. 9, 2023, 10 p.m.