-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
Changes to the cache API required by the new reticulate
cache implementation
#2170
Open
leogama
wants to merge
23
commits into
yihui:master
Choose a base branch
from
leogama:cache-api
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c9e142c
Change API of external engines' cache to be similar to the R cache
leogama ed0ead6
Also check for .Rdata cache file (with results) in the lazy cache case
leogama 706ab38
Create cache directory only before first cache check
leogama 82b7930
Fix: load package (and cache) of external engine only if necessary
leogama 8336713
Pass full options to engine_cache$exists(), $load() and $save()
leogama 19def13
Pass full options to engine_caches$get(); fix variable name
leogama 1070a1b
Only return python engine cache if available, or the R cache will alw…
leogama ae43d23
Fix: purge invalid cache files after the first cache check
leogama 2a1ff59
Test: cache invalidation due to missing cache file
leogama 0b7eb4e
showWarnings = FALSE is unnecessary (xfun::dir_create() won't create …
yihui 8d6d9a8
let cache$load() handle custom cache engines
yihui 5ca33cd
cosmetic
yihui 212bd26
let block_cache() handle custom cache engines, too
yihui 95b8f80
cache_engines$get() always try to get the engine from a name, instead…
yihui 3307e76
use paste() instead of stringr::str_dup()
yihui b5e64bf
the path could be a vector of length > 1
yihui e093389
cosmetic
yihui 5330ffc
clean up after testing
yihui 7b3fb59
add news and ctb
yihui eeaafcb
Merge commit '6bfffe9c1ae8c84f0f2ae07cd3c4b00876757587'
yihui 5316f3d
Merged origin/master into leogama-cache-api
yihui 7a6c852
apply cache_engines$get() on `options` to return a list (of methods)
yihui ad99f51
Merge branch 'master' into cache-api
leogama File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that
glob_path
could be a vector of length > 1, so we still need to purge them one by one via a loop.