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

R devtools installation hangs on testing for >1 hour #115

Closed
gregpoore opened this issue Jan 26, 2021 · 4 comments
Closed

R devtools installation hangs on testing for >1 hour #115

gregpoore opened this issue Jan 26, 2021 · 4 comments

Comments

@gregpoore
Copy link

gregpoore commented Jan 26, 2021

Hello! I'm super excited about BacDiveR and have been trying to download it using the installation instructions (devtools::install_github("TIBHannover/BacDiveR")). Unfortunately, although the package downloads and starts running through checks, it never actually completes and hangs on testing if installed package can be loaded from temporary location. To troubleshoot, I've tried reinstalling a newer version of R (4.0.3), using conda environments instead of RStudio, and tried using other github installers, but none of them have worked thus far. Do you have any idea what may be going on and if there's a way to skip the installation tests that cause it to hang?

Code below:

> install_github("TIBHannover/BacDiveR")
Downloading GitHub repo TIBHannover/BacDiveR@HEAD
✓  checking for file ‘/private/var/folders/v6/49p8qf9n5hx4nn2lnm826rfc0000gn/T/RtmphNPMT1/remotes17e15228a1f39/TIBHannover-BacDiveR-44a2db7/DESCRIPTION’ ...
─  preparing ‘BacDiveR’:
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
   Removed empty directory ‘BacDiveR/figure’
─  building ‘BacDiveR_0.9.1.tar.gz’
   
* installing *source* package ‘BacDiveR’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location

(Hangs there for at least 1 hour and does not proceed)

@gregpoore gregpoore changed the title R devtools installation hangs on testing for >20 minutes R devtools installation hangs on testing for >1 hour Jan 26, 2021
@katrinleinweber
Copy link
Collaborator

Hi @gregpoore 👋 I've been out of that work for over a year now, so I'm not sure whether I can definitely help.

I'm thinking that maybe R v4 (or latest devtools?) might be trying to run all tests during installation? That would fail if the password was missing. Strange, that those errors wouldn't be surfaced, though?!?

Please try swapping steps 3 & 2 of the install process, so that your BacDive login details are already present. That worked for me on a new computer.

Alternatively, cloning this repo and using RStudio's "Install and Restart" option from within the project should also help ;-)

@katrinleinweber
Copy link
Collaborator

PS: If swapping steps 3 & 2 helped, would you be interested in sending a Pull Request to update the ReadMe?

@axel-klinger probably knows who's currently working for the DSMZ-TIB collaboration and could ping the responsible colleagues to get the PR(s) merged ;-)

@gregpoore
Copy link
Author

gregpoore commented Mar 1, 2021

Hi @katrinleinweber! Sorry for the delay responding, but swapping steps 3 and 2 of the install process seems to have fixed the issue. Thanks so much!

I also proposed a change to the ReadMe file on the installation.

gregpoore added a commit to gregpoore/BacDiveR that referenced this issue Mar 1, 2021
Install with devtools may hang if BacDive login information is not already stored in R environment (see TIBHannover#115)
@katrinleinweber
Copy link
Collaborator

Thank you @gregpoore! Please feel free to create a PR with that update. Same caveat as in #116 (comment) applies, though ;-) I'm trying to get someone at TIB to give me access to this 1 repo again, or to handle the PRs in my stead.

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

2 participants