4

Warning in install.packages :

package ‘ggbiplot’ is not available (for R version 3.5.3)

tried every options I found to install this package. is it not available to this version of R? have I other way to use ggbiplot on my RStudio?

Alvaro B
  • 63
  • 1
  • 1
  • 4
  • Are you sure that's on CRAN? Maybe you need to install from Github / zip? – JJJ Mar 23 '19 at 23:50
  • did not work: > install.packages("F:/ggbiplot-master.zip", repos = NULL, type = "win.binary") Installing package into ‘C:/Users/CASA/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified) – Alvaro B Mar 24 '19 at 00:14
  • 1
    In that case, please add all the relevant information in your answer. – JJJ Mar 24 '19 at 00:22
  • ggbiplot is not on CRAN; use devtools::install_github. – Hong Ooi Mar 24 '19 at 07:39
  • Nelson, I checked that. – Alvaro B Mar 24 '19 at 11:40
  • Hong: > library("devtools", lib.loc="~/R/win-library/3.5") > library("githubinstall", lib.loc="~/R/win-library/3.5") > devtools::install_github(ggbiplot) Error in lapply(repo, github_remote, ref = ref, subdir = subdir, auth_token = auth_token, : object 'ggbiplot' not found > – Alvaro B Mar 24 '19 at 11:41
  • JJJ, is it possible that ggbiplot do not run under 3.5.3 R version? should I try an older version? Warning in install.packages : package ‘ggbiplot’ is not available (for R version 3.5.3) – Alvaro B Mar 24 '19 at 11:43
  • See my hint below about the 10 dependent packages. Make sure you have all those. Check it one by one. Load them. Once you have them, try `install_github()` again. – Dirk Eddelbuettel Mar 24 '19 at 12:36
  • that is it !) :) – Alvaro B Mar 24 '19 at 15:23

2 Answers2

5

As per its repository's README.md under Installation, you need

library(devtools)
install_github("vqv/ggbiplot")

Edit: Based on your comment, I am running this now in a fresh Docker container of r-base. It works without a hitch:

> library(devtools)                         
> install_github("vqv/ggbiplot")                                              
Downloading GitHub repo vqv/ggbiplot@master  
[...stuff deleted here for brevity...]
* installing *source* package ‘ggbiplot’ ...
** R
** data
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (ggbiplot)
>

So it works as I claimed it would. In between, it required another little diversion as this package apparently is not part of the tinyverse either requiring all this:

Installing 10 packages: colorspace, ggplot2, gtable, labeling, 
munsell, plyr, RColorBrewer, reshape2, scales, viridisLite

That notwithstanding, the original suggestions held just as promised.

Dirk Eddelbuettel
  • 360,940
  • 56
  • 644
  • 725
0

Try this first, it worked for me

install_github("vqv/ggbiplot")
Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true")
install_github("vqv/ggbiplot")
Spike
  • 23
  • 4