-
Notifications
You must be signed in to change notification settings - Fork 63
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
some packages do not default to binary on Windows #654
Comments
The default policy is to always install the latest versions of the packages specified directly, and the most convenient versions of the dependencies. So pak::pkg_install("imager") will always try to install the latest version of imager. One way to work around it is to use the pak::pkg_install("any::imager")
|
Thanks for the prompt reply, that solves it. I was looking at the FAQ of V 0.7.2, and it does suggest that pak will choose a binary over a source even if the latter is more recent, although rereading that section it does say that this behavior is only for dependencies of packages to be installed. From the FAQ: How do I install a dependency from a binary package:
I agree that the behavior can be deduced, but it may be good to state somewhere explicitly that if the latest version of a package exists only as a source, the source will be chosen over the binary, along with the above method to override that behavior. I am guessing that R deployments without Rtools on Windows are not entirely uncommon, and this may be helpful? Just a suggestion & food for thought. Thanks for solving the issue. |
If you don't mind, I'll leave this open until the docs are fixed. |
Possibly related to #613.
I see an installation error when trying to install
imager
on R for Windows 4.2.0 (note: in my setting it is difficult to upgrade R otherwise I would).The result of install.packages:
I can use the package successfully after this. However, my setup stack uses pak to install missing packages. I successfully install pak 0.7.2:
However, when I ask it for imager:
Note the
[bld][cmp][dl]
next to imager in the list. I thought from the help page that even if a source exists and is newer than the binary (the case for imager) it will default to the binary. However here it seems to try and build the source. For the same admin reasons as above it is not practical for me to install Rtools. Is this a bug?I can circumvent the whole thing by forcing the download of the binary:
which gives:
However, this feels clumsy. Any thoughts?
The text was updated successfully, but these errors were encountered: