Skip to contents

This function generates a string representation of an R object using utils::str(). The output is designed to be consistent and comprehensive for caching purposes. It captures the structure of the object, including its attributes, and is used to create a unique signature for caching.

Usage

.sig_str(object, .level = 1)

Arguments

object

The R object to generate the string representation for

.level

Internal parameter for tracking the indentation level (used for recursive calls)

Value

A character vector representing the structure of the object