precommit icon indicating copy to clipboard operation
precommit copied to clipboard

use {pak} to parallel install with {renv}

Open lorenzwalthert opened this issue 3 years ago • 5 comments

@pat-s offered to test with {mlr3viz}, which has a timeout because of dependency installation time > 120s. Potentially needs changes upstream in pre-commit.

lorenzwalthert avatar Dec 10 '21 09:12 lorenzwalthert

https://github.com/rstudio/renv/issues/459#issuecomment-989155616

pat-s avatar Dec 10 '21 09:12 pat-s

Not sure I want to opt-in into an experimental feature, in particular due to

Once we're more certain the integration is solid we'll consider turning this on by default.

Not sure what the ETA is for that. In any case, it's good to know that this is going to be the default at some point.

lorenzwalthert avatar Dec 10 '21 09:12 lorenzwalthert

We could test it in a precommit branch. I thought that eventually the effort will be small as its only an option you might need to set.

Not sure how easy it would to use a precommit branch though 🙂

pat-s avatar Dec 10 '21 09:12 pat-s

This affects the installation procedure of the hooks, which is not handled by {precommit} (or any repositories that implements hooks), but in the upstream framework, i.e. here. So testing this would involve a change in the upstream, a release in the upstream at least, as we don't control the version of pre-commit that is ran on pre-commit.ci

lorenzwalthert avatar Dec 10 '21 09:12 lorenzwalthert

Locally, we could test it before by installing a development version of pre-commit from a branch (note pre-commit=upstream, {precommit} = R package).

lorenzwalthert avatar Dec 10 '21 09:12 lorenzwalthert