`renv_cache_init` assumes that the cache only consists of one path
vandenman opened this issue · comments
This part
Lines 24 to 31 in be4dc4e
assumes that the cache consists of at most one path. If there are multiple caches then you get an error:
if (renv_path_within(cache, getwd())) {
error: the condition has length > 1
Here is a proposed solution. I'd be happy to open a PR, but I also noticed that the unit tests for multiple caches are skipped:
renv/tests/testthat/test-cache.R
Line 230 in be4dc4e
Is there a particular reason for skipping these tests? I'd be happy to figure out what goes on there and fix them.
Thanks -- I think d5b7e6a should resolve the issue you're seeing.
Is there a particular reason for skipping these tests? I'd be happy to figure out what goes on there and fix them.
I don't recall exactly why, but it appeared the tests were failing, and at the time I didn't have the bandwidth to investigate. That happened here:
but if you'd be willing to revive those tests I would be grateful.