ggbiplot icon indicating copy to clipboard operation
ggbiplot copied to clipboard

Has anybody had success installing ggbiplot under R 3.5.2

Open AntonioGPS opened this issue 7 years ago • 38 comments

I've tried the experimental or not experimental versions of vqv, richardjtelford and vangalamaheshh github ggbiplot sites without success

AntonioGPS avatar Jan 16 '19 11:01 AntonioGPS

I've the same problem downloading ggbiplot. Hoping for a solution here. Are there alternative ways of plotting the elipses and the circle?

djgibson1 avatar Jan 20 '19 00:01 djgibson1

I had a problems with installation too!

Potamophylax avatar Jan 22 '19 13:01 Potamophylax

I was able to install the package with the option force= TRUE But now, this is not working with any of the alternatives

AntonioGPS avatar Jan 22 '19 13:01 AntonioGPS

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)

Potamophylax avatar Jan 22 '19 16:01 Potamophylax

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...

AntonioGPS avatar Jan 23 '19 11:01 AntonioGPS

Can confirm the non-experimental version installed successfully for me using the instructions from Readme.md.

spookysounds avatar Feb 20 '19 04:02 spookysounds

I had to use

install_github("vqv/ggbiplot", force = TRUE)

and not updating other packages.

ghost avatar Apr 02 '19 06:04 ghost

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.

iagogv3 avatar Apr 03 '19 10:04 iagogv3

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)

AntonioGPS avatar Apr 03 '19 10:04 AntonioGPS

Use this command to install, for new versions of R:

install.packages("remotes") remotes::install_github("vqv/ggbiplot")

fernandosarossi avatar Aug 01 '19 15:08 fernandosarossi

Thanks for this @fernandosarossi .

meenakshi-kushwaha avatar Aug 03 '19 13:08 meenakshi-kushwaha

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

Sobia803 avatar Sep 23 '19 05:09 Sobia803

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.

pnaveen4u87 avatar Oct 26 '19 00:10 pnaveen4u87

you can do this without the ggbiplot for example biplot(mtcars.pca) it works

EOKELLO avatar Oct 30 '19 13:10 EOKELLO

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.

JOSEPHINEGEND avatar Oct 31 '19 12:10 JOSEPHINEGEND

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.

karenvbeaman avatar Dec 05 '19 18:12 karenvbeaman

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

AntonioGPS avatar Jan 21 '20 11:01 AntonioGPS

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

AntonioGPS avatar Jan 21 '20 11:01 AntonioGPS

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'

8ar10der avatar Feb 03 '20 17:02 8ar10der

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 .

karenvbeaman avatar Feb 03 '20 17:02 karenvbeaman

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

8ar10der avatar Feb 03 '20 23:02 8ar10der

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 .

karenvbeaman avatar Feb 04 '20 09:02 karenvbeaman

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

ILVOddeconinck avatar Feb 07 '20 14:02 ILVOddeconinck

Hello Dumas,

That worked! So simple!

Thank you so much!

I really appreciate your sharing your learnings.

Now I can get back to work!

karenvbeaman avatar Feb 07 '20 18:02 karenvbeaman

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")

Attia81 avatar Mar 21 '20 16:03 Attia81

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)

sahemo avatar Apr 01 '20 05:04 sahemo

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)

salix-d avatar Apr 03 '20 21:04 salix-d

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

ribschenato avatar Aug 03 '20 19:08 ribschenato

Use this command to install, for new versions of R:

install.packages("remotes") remotes::install_github("vqv/ggbiplot")

Thank you, it works for me.

ghost avatar Sep 03 '20 20:09 ghost

The source file appeared in tar.gz. is ther any windows version?

GangminLigithub avatar Oct 19 '20 01:10 GangminLigithub