JEFworks-Lab/veloviz

Failed to install VeloViz

arpansahoo opened this issue · 4 comments

When I tried to install the package via devtools::install_github('JEFworks/veloviz'), I got the following error.

Error: Failed to install 'unknown package' from GitHub:
  HTTP error 404.
  Not Found

  Did you spell the repo owner and repo name correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.

Ah yes, the repo was moved to JEFworks-Lab/veloviz.
Installing via devtools::install_github('JEFworks-Lab/veloviz') should work.

Tried devtools::install_github('JEFworks-Lab/veloviz') just now, but still got the same error. On the homepage of the repository, I see "No packages published" on the side. Maybe the error is related to that?

Hi Arpan,

I was able to reproduce your error and fix it using remotes instead of devtools as shown below:

> require(devtools)
Loading required package: devtools
Loading required package: usethis
Warning messages:
1: package ‘devtools’ was built under R version 3.6.2 
2: package ‘usethis’ was built under R version 3.6.2 
> devtools::install_github('JEFworks-Lab/veloviz')
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 404.
  Not Found

  Did you spell the repo owner (`JEFworks-Lab`) and repo name (`veloviz`) correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.
> install.packages('remotes')
Error in install.packages : Updating loaded packages

Restarting R session...

> install.packages("remotes")
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/remotes_2.2.0.tgz'
Content type 'application/x-gzip' length 386257 bytes (377 KB)
==================================================
downloaded 377 KB


The downloaded binary packages are in
	/var/folders/9z/0vrjtvrj1qzgc_cb5v_rbw200000gn/T//RtmpbjgGSt/downloaded_packages

> remotes::install_github('JEFworks-Lab/veloviz')
Downloading GitHub repo JEFworks-Lab/veloviz@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                                      
2: CRAN packages only                       
3: None                                     
4: Rcpp      (1.0.4.6   -> 1.0.5    ) [CRAN]
5: RcppEigen (0.3.3.7.0 -> 0.3.3.9.1) [CRAN]
6: magrittr  (1.5       -> 2.0.1    ) [CRAN]
7: igraph    (1.2.5     -> 1.2.6    ) [CRAN]

Enter one or more numbers, or an empty line to skip updates:1
Rcpp      (1.0.4.6   -> 1.0.5    ) [CRAN]
RcppEigen (0.3.3.7.0 -> 0.3.3.9.1) [CRAN]
magrittr  (1.5       -> 2.0.1    ) [CRAN]
igraph    (1.2.5     -> 1.2.6    ) [CRAN]
Installing 4 packages: Rcpp, RcppEigen, magrittr, igraph
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/Rcpp_1.0.5.tgz'
Content type 'application/x-gzip' length 3221298 bytes (3.1 MB)
==================================================
downloaded 3.1 MB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/RcppEigen_0.3.3.9.1.tgz'
Content type 'application/x-gzip' length 4871161 bytes (4.6 MB)
==================================================
downloaded 4.6 MB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/magrittr_2.0.1.tgz'
Content type 'application/x-gzip' length 225659 bytes (220 KB)
==================================================
downloaded 220 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/igraph_1.2.6.tgz'
Content type 'application/x-gzip' length 7666729 bytes (7.3 MB)
==================================================
downloaded 7.3 MB


The downloaded binary packages are in
	/var/folders/9z/0vrjtvrj1qzgc_cb5v_rbw200000gn/T//RtmpbjgGSt/downloaded_packages
✓  checking for file ‘/private/var/folders/9z/0vrjtvrj1qzgc_cb5v_rbw200000gn/T/RtmpbjgGSt/remotesa4d7aae1d13/JEFworks-Lab-veloviz-73d2849/DESCRIPTION’ ...
─  preparing ‘veloviz’: (663ms)
✓  checking DESCRIPTION meta-information
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
   Removed empty directory ‘veloviz/vignettes/data/Pancreas’
   Removed empty directory ‘veloviz/vignettes/data’
─  looking to see if a ‘data/datalist’ file should be added
─  building ‘veloviz_0.0.0.9000.tar.gz’ (24.5s)
   
* installing *source* package ‘veloviz’ ...
** using staged installation
** libs
/usr/local/clang4/bin/clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c RcppExports.cpp -o RcppExports.o
/usr/local/clang4/bin/clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c graphViz.cpp -o graphViz.o
/usr/local/clang4/bin/clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/clang4/lib -o veloviz.so RcppExports.o graphViz.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/3.6/Resources/library/00LOCK-veloviz/00new/veloviz/libs
** R
** data
*** moving datasets to lazyload DB
** 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
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (veloviz)

Could you please see if remotes::install_github fixes it for your as well:

remotes::install_github('JEFworks-Lab/veloviz')

Thanks!

Awesome, that worked. Thanks!