Returns the file location for both windows and linux

get_file_location(name, extension, dir = "tmp", subdir = "",
  add_date_to_dir = FALSE, create_dirs = TRUE)

Arguments

name

the file name to store

extension

the extension of the file

dir

(default = 'tmp') the directory to store the file in

subdir

(default = '') the directory to store the file in

add_date_to_dir

(default = FALSE) add a subdir with a date?

create_dirs

(default = TRUE) create the dirs specified?

Value

the location of the file, with the extension and the subdirs