Skip to content

Conversation

topepo
Copy link
Member

@topepo topepo commented Nov 14, 2023

A helper file (and example) for caching expensive objects. This will enable us to have smaller test_that({}) chunks with a smaller scope.

  • is_object_available() see if the object is cached.
  • save_object() for putting RData files in a saved_objects path. Designed to save a single object.
  • return_object() returns a single object from an RData file.
  • purge_objects() remove all RData files from saved_objects.

I thought that this might be a standalone file. It can be but our standard naming convention for those files interferes with the naming og helper files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant