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

Add function to clear cache #6

Closed
tylerlittlefield opened this issue May 10, 2021 · 0 comments
Closed

Add function to clear cache #6

tylerlittlefield opened this issue May 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@tylerlittlefield
Copy link
Member

tylerlittlefield commented May 10, 2021

The exoplanets() function is memoized so give the user an easy option to forget past results and clear the functions cache with forget_exoplanets().

library(exoplanets)

# first try
exoplanets("k2names")

# second try, cached
exoplanets("k2names")

# third try, forgotten
memoise::forget(exoplanets)
exoplanets("k2names")
@tylerlittlefield tylerlittlefield added the enhancement New feature or request label May 10, 2021
tylerlittlefield pushed a commit that referenced this issue May 11, 2021
tylerlittlefield added a commit that referenced this issue May 11, 2021
add function to clear cache (#6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant