fbreitwieser / pavian

🌈 Interactive analysis of metagenomics data
https://doi.org/10.1093/bioinformatics/btz715
385 stars 75 forks source link

Install error: Error in if (type == "binary") { : argument is of length zero #49

Open amansgill opened 5 years ago

amansgill commented 5 years ago

I'm having trouble getting Pavian running in R on an Amazon Linux ec2 instance. This is probably not an issue with Pavian itself but I'm hoping someone can help. Neither of the following install commands work for me, giving the error "Error in if (type == "binary") { : argument is of length zero":

> remotes::install_github("fbreitwieser/pavian") Downloading GitHub repo fbreitwieser/pavian@master Installing 13 packages: crosstalk, DT, ggplot2, gtable, lazyeval, plyr, rappdirs, reshape2, rhandsontable, shinycssloaders, shinydashboard, shinyjs, withr Error in if (type == "binary") { : argument is of length zero

> shiny::runGitHub("fbreitwieser/pavian", subdir = "inst/shinyapp") Downloading https://github.com/fbreitwieser/pavian/archive/master.tar.gz Loading required package: pavian Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘pavian’ Downloading GitHub repo fbreitwieser/pavian@master Installing 13 packages: crosstalk, DT, ggplot2, gtable, lazyeval, plyr, rappdirs, reshape2, rhandsontable, shinycssloaders, shinydashboard, shinyjs, withr Error in if (type == "binary") { : argument is of length zero

I'm not having any luck googling around so any suggestions would be appreciated.

Edit: I just tried the install on my local machine (a chromebook running linux) and I get the same exact error. However I ran it on our remote server and that works fine. I'm pretty much stumped for now.

Edit2: I got pavian working on my local machine via Docker but would still be interested if anyone has insight on the R issue.

fbreitwieser commented 5 years ago

Hi @amansgill , I think that's an error in remotes. Can you paste the output of traceback() after it fails, and of sessionInfo()?