Skip to contents

This function reads a script file, identifies objects that are assigned but not used, and returns a list of unused objects. If no unused objects are found, it returns NA.

Usage

check_unused_objects(filepath)

Arguments

filepath

A character string specifying the path to the script file.

Value

A character vector of unused objects in the script, or NA if no unused objects are found.