Has anybody had success installing ggbiplot under R 3.5.2
I've tried the experimental or not experimental versions of vqv, richardjtelford and vangalamaheshh github ggbiplot sites without success
I've the same problem downloading ggbiplot. Hoping for a solution here. Are there alternative ways of plotting the elipses and the circle?
I had a problems with installation too!
I was able to install the package with the option force= TRUE But now, this is not working with any of the alternatives
Very strange: now it works after R restarting! (R 3.5.2) And after manual 'scales' instalation...
library(openxlsx)
library(reshape2)
library(plyr)
library(scales)
library(ggplot2)
library(devtools)
library(grid)
####################################### Works
install_github("vqv/ggbiplot")
library(ggbiplot)
Still not working for me with Potamophylax suggestion It is surprising the kind of error it throws "Error: package 'datasets' in options("defaultPackages") was not found
The datasets package is a base package, and cannot be either installed or updated
If I preload the datasets package, is not working either...
Can confirm the non-experimental version installed successfully for me using the instructions from Readme.md.
I had to use
install_github("vqv/ggbiplot", force = TRUE)
and not updating other packages.
I installed with the given instructions, checking before I had installed the packages quoted by Potamophylax and I had no problem, even to work, with R version 3.5.2 too.
After fully updating my linux R, and having R version 3.5.3, I eventually could install ggbiplot by using
library(devtools)
install_github("vqv/ggbiplot", force = TRUE)
Use this command to install, for new versions of R:
install.packages("remotes") remotes::install_github("vqv/ggbiplot")
Thanks for this @fernandosarossi .
Hi,
I am having issue in installing ggbiplot via githubinstall in R 3.6.1. The error it is giving is pasted below:
library(usethis) library(devtools) install_github("vqv/ggbiplot") Downloading GitHub repo vqv/ggbiplot@master Installing 1 packages: pkgconfig Installing package into ‘\uniwa.uwa.edu.au/userhome/students5/21583685/My Documents/R/win-library/3.6’ (as ‘lib’ is unspecified)
There is a binary version available but the source version is later: binary source needs_compilation pkgconfig 2.0.2 2.0.3 FALSE
installing the source package ‘pkgconfig’
trying URL 'https://cloud.r-project.org/src/contrib/pkgconfig_2.0.3.tar.gz' Content type 'application/x-gzip' length 6080 bytes downloaded 6080 bytes
'\uniwa.uwa.edu.au\userhome\students5\21583685\My Documents' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. ERROR: failed to lock directory '\uniwa.uwa.edu.au/userhome/students5/21583685/My Documents/R/win-library/3.6' for modifying Try removing '\uniwa.uwa.edu.au/userhome/students5/21583685/My Documents/R/win-library/3.6/00LOCK-pkgconfig' Error: Failed to install 'ggbiplot' from GitHub: (converted from warning) installation of package ‘pkgconfig’ had non-zero exit status
After fully updating my linux R, and having R version 3.5.3, I eventually could install ggbiplot by using
library(devtools) install_github("vqv/ggbiplot", force = TRUE)
It worked for me thanks.
you can do this without the ggbiplot for example biplot(mtcars.pca) it works
you can do this without the ggbiplot for example biplot(mtcars.pca) it works
This worked for me on R version 3.6.1. Thanks.
Has anyone installed ggbiplot under R 3.6.0.? I can't get it to work on my new computer.
I've tried both of these suggestions: install_github("vqv/ggbiplot", force = TRUE)
install.packages("remotes") remotes::install_github("vqv/ggbiplot")
Here are the messages I get:
Installing package into ‘C:/Users/KarenV/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified)
- installing source package 'ggbiplot' ... ** using staged installation ** R ** data ** byte-compile and prepare package for lazy loading Error: (converted from warning) package 'ggplot2' was built under R version 3.6.1 Execution halted ERROR: lazy loading failed for package 'ggbiplot'
- removing 'C:/Users/KarenV/Documents/R/win-library/3.6/ggbiplot'
Any suggestions would be most helpful.
this is the most disgusting package to install. After updating R to 3.6.1, there is not an easy way to install the package. I am facing the same problems again, and the methods herein described are not working again
you can do this without the ggbiplot for example biplot(mtcars.pca) it works
This worked for me on R version 3.6.1. Thanks.
But this is not ggbiplot. biplot is the regular function that does not use the nice graphics implemented into ggplot2
After fully updating my linux R, and having R version 3.5.3, I eventually could install ggbiplot by using
library(devtools) install_github("vqv/ggbiplot", force = TRUE)
Not work for me
library(devtools) install_github("vqv/ggbiplot", force = TRUE) Downloading GitHub repo vqv/ggbiplot@master Error in utils::download.file(url, path, method = download_method(), quiet = quiet, : URL'https://api.github.com/repos/vqv/ggbiplot/tarball/master'
I'm wondering how this works for some people, but not for me. I'm on a Windows machine and these same instructions give me the following error:
** byte-compile and prepare package for lazy loading Error: (converted from warning) package 'ggplot2' was built under R version 3.6.1 Execution halted ERROR: lazy loading failed for package 'ggbiplot'
- removing 'C:/Users/KarenV/Documents/R/win-library/3.6/ggbiplot' Error: Failed to install 'ggbiplot' from GitHub: (converted from warning) installation of package ‘C:/Users/KarenV/AppData/Local/Temp/Rtmp6z4l7X/file9360530818de/ggbiplot_0.55.tar.gz’ had non-zero exit status
I'm truly bewildered by this as I have no such problems with any other packages. What to do?
On Mon, Feb 3, 2020 at 6:06 PM Amao Three [email protected] wrote:
After fully updating my linux R, and having R version 3.5.3, I eventually could install ggbiplot by using
library(devtools) install_github("vqv/ggbiplot", force = TRUE)
Not work for me
library(devtools) install_github("vqv/ggbiplot", force = TRUE) Downloading GitHub repo vqv/ggbiplot@master Error in utils::download.file(url, path, method = download_method(), quiet = quiet, : URL'https://api.github.com/repos/vqv/ggbiplot/tarball/master'
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vqv/ggbiplot/issues/53?email_source=notifications&email_token=ANOLV5DB4VHXSADG3SEEWNLRBBFK3A5CNFSM4GQLSQV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKUT2EY#issuecomment-581516563, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANOLV5ATVHJLDYKRTNC37EDRBBFK3ANCNFSM4GQLSQVQ .
After fully updating my linux R, and having R version 3.5.3, I eventually could install ggbiplot by using
library(devtools) install_github("vqv/ggbiplot", force = TRUE)Not work for me
library(devtools) install_github("vqv/ggbiplot", force = TRUE) Downloading GitHub repo vqv/ggbiplot@master Error in utils::download.file(url, path, method = download_method(), quiet = quiet, : URL'https://api.github.com/repos/vqv/ggbiplot/tarball/master'
I solved the issues with this commands
library(devtools)
options(download.file.method = "wininet")
install_github("vqv/ggbiplot", force = TRUE)
I hope that may help anybody
Thanks for your response, but those commands don't work for me either. I still get the same error:
Error: (converted from warning) package 'ggplot2' was built under R version 3.6.1 Execution halted ERROR: lazy loading failed for package 'ggbiplot'
- removing 'C:/Users/KarenV/Documents/R/win-library/3.6/ggbiplot' Error: Failed to install 'ggbiplot' from GitHub: (converted from warning) installation of package ‘C:/Users/KarenV/AppData/Local/Temp/Rtmp6z4l7X/file93606fde1e81/ggbiplot_0.55.tar.gz’ had non-zero exit status
On Tue, Feb 4, 2020 at 12:13 AM Amao Three [email protected] wrote:
After fully updating my linux R, and having R version 3.5.3, I eventually could install ggbiplot by using
library(devtools) install_github("vqv/ggbiplot", force = TRUE)
Not work for me
library(devtools) install_github("vqv/ggbiplot", force = TRUE) Downloading GitHub repo vqv/ggbiplot@master Error in utils::download.file(url, path, method = download_method(), quiet = quiet, : URL'https://api.github.com/repos/vqv/ggbiplot/tarball/master'
I solved the issues with this commands
library(devtools) options(download.file.method = "wininet") install_github("vqv/ggbiplot", force = TRUE)
I hope that may help anybody
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vqv/ggbiplot/issues/53?email_source=notifications&email_token=ANOLV5EINVJ2NLBESPABQM3RBCQH7A5CNFSM4GQLSQV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKVYABY#issuecomment-581664775, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANOLV5D75XHYVXFKWESJK73RBCQH7ANCNFSM4GQLSQVQ .
Hey guys! My colleague was also struggling with this so I helped him figure it out.
You don't need to get functions from packages for them to work. You can entre them manually.
What I suggested he did is to go to https://github.com/vqv/ggbiplot and download the zip file ("clone or download"). In the zip file you'll find a folder called R. In this folder are two R scripts. Open these two and just run them. This is the manual way of creatin gthe function ggbiplot.
Hopefully I explained it well enough.
Kind regards! Dumas
Hello Dumas,
That worked! So simple!
Thank you so much!
I really appreciate your sharing your learnings.
Now I can get back to work!
As Dumas suggested, just use the two functions there
source("path to /ggbiplot-master/R/ggbiplot.r") source("path to /ggbiplot-master/R/ggscreeplot.r")
To add with @ILVOddeconinck and @Attia81 ,
source('https://raw.githubusercontent.com/vqv/ggbiplot/master/R/ggbiplot.r')
source('https://raw.githubusercontent.com/vqv/ggbiplot/master/R/ggscreeplot.r')
pca_object <- prcomp(iris[,-5], center = T, scale. = T)
ggbiplot(pca_object)
ggscreeplot(pca_object)
Created on 2020-04-01 by the reprex package (v0.3.0)
Very strange: now it works after R restarting! (R 3.5.2) And after manual 'scales' instalation...
library(openxlsx) library(reshape2) library(plyr) library(scales) library(ggplot2) library(devtools) library(grid) ####################################### Works install_github("vqv/ggbiplot") library(ggbiplot)
Pretty normal since when you do : library(ggbiplot)
you get
Loading required package: ggplot2
Loading required package: plyr
Loading required package: scales
Loading required package: grid
so it does need it. Altho, I guess it could ask you to install it explicitly since it's a dependency...
Only problem I got installing it with remotes::install_github("vqv/ggbiplot") was that it ask me to update packages and doing so gives me an error saying it can't remove the previous install of those package. So I have to close R, delete the package manually in it's folder, and redo the install ignoring the updates. Don't know if that error is related tho, because it does that for all packages I install using remotes.
(Installing on R 3.6.3)
Use this command to install, for new versions of R:
install.packages("remotes") remotes::install_github("vqv/ggbiplot")
This solution proposed by @fernandosarossi still working under R-4.0.2
Use this command to install, for new versions of R:
install.packages("remotes") remotes::install_github("vqv/ggbiplot")
Thank you, it works for me.
The source file appeared in tar.gz. is ther any windows version?