Hi everyone.
This is my first time posting, so please forgive me if something should have been done differently.
I've tried to use the reprex function, but it will not work for me.
It's been a few years since I last used R studios, but I ned to do a PCA analysis and plot for my thesis im handing in, in 6 days!
I've downloaded the newest version of R and RStudios
I've tried installing all the packages I usually use, and are experiencing issues with many packages.
The package I really need is ggbiplot. I can understand that many are experiencing issues with this, so I have been searching for a way to fix this for 4 days, and have tried the following methods for installing:
remotes::install_github('vqv/ggbiplot')
Yes
install.packages("remotes")
remotes::install_github('vqv/ggbiplot')
Yes
Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true")
install_github('vqv/ggbiplot', force=TRUE)
AND
install.packages('devtools')
yes
devtools::install_github('mortenarendt/data4consumerscience')
yes
devtools::install_github('vqv/ggbiplot')
None works. I'm desperate at this point.
I'm running the code:
install.packages('devtools')
library("devtools")
install_github('vqv/ggbiplot')
the error I'm receiving when I attempt to install the package is this:
install.packages("devtools")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.2/devtools_2.4.5.tgz'
Content type 'application/x-gzip' length 422160 bytes (412 KB)
==================================================
downloaded 412 KB
The downloaded binary packages are in
/var/folders/rp/0f53kg9n6f5gkfpc1bgg16640000gn/T//RtmpPIgxQq/downloaded_packages
library("devtools")
Loading required package: usethis
install_github('vqv/ggbiplot')
Downloading GitHub repo vqv/ggbiplot@HEAD
Installing 1 packages: tibble
There is a binary version available but the source version is later:
binary source needs_compilation
tibble 3.1.8 3.2.0 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘tibble’
trying URL 'https://cran.rstudio.com/src/contrib/tibble_3.2.0.tar.gz'
Content type 'application/x-gzip' length 565955 bytes (552 KB)
downloaded 552 KB
- installing source package ‘tibble’ ...
** package ‘tibble’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘tibble’ - removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/tibble’
The downloaded source packages are in
‘/private/var/folders/rp/0f53kg9n6f5gkfpc1bgg16640000gn/T/RtmpPIgxQq/downloaded_packages’
── R CMD build ───────────────────────────────────────────────────────────────────
checking for file ‘/private/var/folders/rp/0f53kg9n6f5gkfpc1bgg16640000gn/T/RtmpPIgxQq/remotes1ea64dc1678b/vqv-ggbiplot-7325e88/DESCRIPTION’
─ preparing ‘ggbiplot’:
checking DESCRIPTION meta-information
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘ggbiplot_0.55.tar.gz’
- installing source package ‘ggbiplot’ ...
** using staged installation
** R
** data
** byte-compile and prepare package for lazy loading
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘tibble’
Execution halted
ERROR: lazy loading failed for package ‘ggbiplot’ - removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/ggbiplot’
Warning messages:
1: In i.p(...) : installation of package ‘tibble’ had non-zero exit status
2: In i.p(...) :
installation of package ‘/var/folders/rp/0f53kg9n6f5gkfpc1bgg16640000gn/T//RtmpPIgxQq/file1ea64cf447f3/ggbiplot_0.55.tar.gz’ had non-zero exit status
I'm getting the sense that the path on my computer makes it so that the package can't be found. But I have no idea about computers, nd how to change it.
can anyone help?
I have also tried using the remote package, but am getting a similar error