R/rw.R

Defines functions get_file

# #' @title get_file
# #'
# #' @description Gets a file from the web.
# #'
# #' @param URL URL path
# #' @param File Name of the file
get_file <- function(URL,File)
{
  temporaryFile <- tempfile()
  utils::download.file(paste(URL,File,sep="/"),
                       destfile=temporaryFile,
                       method="curl",quiet = T)
  return(temporaryFile)
}
einarhjorleifsson/fishvice documentation built on Jan. 4, 2024, 8:43 p.m.