Skip to content
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

Unable to download and install development version #186

Open
earbebarnes opened this issue Mar 19, 2024 · 5 comments
Open

Unable to download and install development version #186

earbebarnes opened this issue Mar 19, 2024 · 5 comments

Comments

@earbebarnes
Copy link

I was trying to download the development version of Spectre to get around an issue with prep.cytonorm as was suggested by a previous question : https://github.com/ImmuneDynamics/Spectre/issues/169#issue-1795142299

However I do not seem to be able to download the development version. I do seem to be able to install the non-development version (see below). Do you have any suggestions as to what my issue might be? Thank you in advance

devtools::install_github("immunedynamics/spectre", ref = 'development')
Downloading GitHub repo immunedynamics/spectre@development
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/immunedynamics/spectre/tarball/development' failed

devtools::install_github("immunedynamics/spectre")
Downloading GitHub repo immunedynamics/spectre@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

@ghar1821
Copy link
Member

Hi @earbebarnes

I just ran the install command u gave above and it seems to be working. There may have been issues with Github when u ran the command. Maybe try again now and see if it works?

Alternatively, you can also try the remotes package to see if it works:

remotes::install_github("immunedynamics/spectre", ref = 'development')

Having said that, we recently synced the master branch with the development branch. The issue may have been resolved in the master branch. So maybe give the prep.cytonorm in the master branch a go first and see how you go.

@earbebarnes
Copy link
Author

Thank you for your quick reply. I could not get prep.cytonorm working on the master branch version, however it did work with the developer version. I also realised that install_github() was timing out so was able to fix it by running options(timeout=400) before it. Thank you for your help.

@SamGG
Copy link

SamGG commented Mar 20, 2024

In my hands, the git repo results in a zip file named ImmuneDynamics-Spectre-v0.5.5-197-gd0fd33c.tar.gz of 234 MB. This is quite huge, IMHO, and may result in a large amount of download time.

@ghar1821
Copy link
Member

In my hands, the git repo results in a zip file named ImmuneDynamics-Spectre-v0.5.5-197-gd0fd33c.tar.gz of 234 MB. This is quite huge, IMHO, and may result in a large amount of download time.

Thanks for pointing this out @SamGG. @tomashhurst we should trim the repo size down.

@tomashhurst
Copy link
Member

@earbebarnes the prep.cytonorm issues should be fixed in the beta of v1.2 which you can test out with the following install code.

if(!require('remotes')) {install.packages('remotes')} # Installs the package 'remotes'
remotes::install_github(repo = "immunedynamics/spectre", ref = 'v1.2.0-beta') # Install the Spectre package

Don't forget the ref = 'v1.2.0-beta'

Along the lines of @SamGG 's suggestion, we've also massively cut down on the actual datasets stored within the Spectre repository itself, so the download time shouldn't be an issue at this point. If you run into any timeout issues, then please let us know! There are quick workarounds but it looks like they should not be necessary anymore.

We are looking to release v1.2 as the master version, hopefully next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants