Skip to contents

Get file path for automatic report generation

Usage

get_file_path(
  file_directory = "output",
  file_name = fs::path_file(fs::file_temp(ext = ".docx"))
)

Arguments

file_directory

Optional string directory relative to the project folder

file_name

Required string containing file name with file extension

Value

String file path

Examples

get_file_path(file_name = "test.docx")
#> output/test.docx