I often want to set up a completely isolated, ad-hoc package library for some quick testing, and use ‘pak’ to install dependencies into it (and for [reasons] I don’t want to use ‘renv’).
Error:
! error in pak subprocess
Caused by error in `loadNamespace(name)`:
! there is no package called ‘pak’
Ideally this should succeed.
The same error occurs if the user for some reason hasn’t got ‘pak’ installed in the regular library path and instead loads it via loadNamespace('pak', lib.loc = 'some/other/path').
Of course this isn’t a critical issue since one can work around it fairly easily, by running the following before the last step (pak::pak(…)):
I often want to set up a completely isolated, ad-hoc package library for some quick testing, and use ‘pak’ to install dependencies into it (and for [reasons] I don’t want to use ‘renv’).
The way I would normally do this is as follows:
Unfortunately this fails:
Ideally this should succeed.
The same error occurs if the user for some reason hasn’t got ‘pak’ installed in the regular library path and instead loads it via
loadNamespace('pak', lib.loc = 'some/other/path')
.Of course this isn’t a critical issue since one can work around it fairly easily, by running the following before the last step (
pak::pak(…)
):