Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Windows binary distributions supported? #41

Closed
kenahoo opened this issue Aug 30, 2018 · 4 comments
Closed

Windows binary distributions supported? #41

kenahoo opened this issue Aug 30, 2018 · 4 comments

Comments

@kenahoo
Copy link

kenahoo commented Aug 30, 2018

In a standard CRAN repository, Windows binaries are stored in a location like /bin/windows/contrib/$R_VERSION/. Is that a supported use case for this plugin?

@cderv
Copy link

cderv commented Aug 31, 2018

When using the proxy repo, I manage to download windows binary package. If you try to install a package on a windows computer using your nexus repo with install.packages, it will download from CRAN the binary and put it correctly in the repo.
However, I did not try to push a windows binary to a hosted repo. Have you tried yourself to upload to bin/windows/contrib and see if it's working ?

@kenahoo
Copy link
Author

kenahoo commented Aug 31, 2018

Hi @cderv, I did do some trial and error, and I discovered that if I push a binary (using curl) to /bin/windows/contrib/3.3/PackageName_1.2.3.zip, it gets indexed correctly and I can use it for a binary install. It didn't work to push it to /bin/windows/contrib/3.3/PackageName/PackageName_1.2.3.zip - it accepted the upload, but it didn't get indexed to end up in the PACKAGES.gz file, so it couldn't be installed from R.

@cderv
Copy link

cderv commented Sep 2, 2018

On CRAN, all the binary are stored in bin/windows/contrib/<version>/<pkg.zip>, and not in sub-folders.
As mentioned in another discussion, I think it is possible to support subdirectories but it needs to be taken into account in the generation of PACKAGES.gz or PACKAGES file. It is not standard and correspond to tools::write_PACKAGES(".", subdirs = TRUE). CRAN is not a repository that support subdirectories for examples.
So I don't know what should be the behaviour of nexus, and if currently this is a bug or not.

@kenahoo
Copy link
Author

kenahoo commented Nov 30, 2018

I'm happy with the resolution here, ticket can be closed as far as I'm concerned.

@kenahoo kenahoo closed this as completed Nov 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants