2
votes

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?

2
Are you sure that's on CRAN? Maybe you need to install from Github / zip?JJJ
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
In that case, please add all the relevant information in your answer.JJJ
ggbiplot is not on CRAN; use devtools::install_github.Hong Ooi
Nelson, I checked that.Alvaro B

2 Answers

4
votes

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.

0
votes

Try this first, it worked for me

install_github("vqv/ggbiplot")
Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true")
install_github("vqv/ggbiplot")