Skip to contents

Check that a file for corresponding to a programmatically-named project output object exists.

Usage

file_exists_object_with_suffix(object_basename, dir, suffix = "", ext = "rds")

Arguments

object_basename

Base name for the object, before any suffix or the file extension, as a string.

dir

Directory in which to look for the object.

suffix

Suffix to append to the object_basename before the file extension. Default "" (no suffix).

ext

Extension for the saved file, without the .. Default rds.

Value

TRUE if the file exists, else FALSE.