Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache helpers #133

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Cache helpers #133

wants to merge 3 commits into from

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