I have updated my R version, and then updated my Rstudio, and now I am trying to install library(dplyr), but I get the following error:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘vctrs’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/vctrs’
Warning in install.packages :
installation of package ‘vctrs’ had non-zero exit status
and when I try installing the library(vctrs) as #MrFlick suggested, and run library(dplyr) again, it shows that a dependency called 'xfun' is not installed. When I try...
** package ‘xfun’ 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 ‘xfun’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/xfun’
Warning in install.packages :
installation of package ‘xfun’ had non-zero exit status
Related
Im having trouble to install any package after downloading the last R update. The errors always look like this:
ERROR: dependencies ‘ellipsis’, ‘glue’, ‘vctrs’ are not available for package ‘tidyselect’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/tidyselect’
Warning in install.packages :
installation of package ‘tidyselect’ had non-zero exit status
Also it appears an error such as this:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘backports’
Anyone has any idea how i can change this?
I'm trying to install the LambertW package for R (or any package that will give me the Lambert W function). Everytime I try:
install.packages("LambertW")
I get this output...
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error in read_r_config(sprintf("%sFLAGS", cxx), envir = NULL)[[1]] :
subscript out of bounds
Calls: source_file -> eval -> eval
Execution halted
ERROR: configuration failed for package ‘RcppParallel’
* removing ‘/usr/local/lib/R/3.6/site-library/RcppParallel’
Warning in install.packages :
installation of package ‘RcppParallel’ had non-zero exit status
ERROR: dependency ‘RcppParallel’ is not available for package ‘lamW’
* removing ‘/usr/local/lib/R/3.6/site-library/lamW’
Warning in install.packages :
installation of package ‘lamW’ had non-zero exit status
ERROR: dependency ‘lamW’ is not available for package ‘LambertW’
* removing ‘/usr/local/lib/R/3.6/site-library/LambertW’
Warning in install.packages :
installation of package ‘LambertW’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/4m/qkbb2hwd1t12v_11mjcphv300000gn/T/RtmpcUm3LQ/downloaded_packages’
Then if I try to load it using library I get this
library("LambertW")
Error in library("LambertW") : there is no package called ‘LambertW’
Does anyone know how to solve this?
When I try to redownload packages like digest I get this error.
installing the source package ‘digest’
trying URL 'https://cran.rstudio.com/src/contrib/digest_0.6.23.tar.gz'
Content type 'application/x-gzip' length 143316 bytes (139 KB)
downloaded 139 KB
installing *source* package ‘digest’ ...
package ‘digest’ 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 ‘digest’
removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/digest’
Warning in install.packages :
installation of package ‘digest’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/rn/2fyqm2wd6qs5pq5ttswtffvh0000gn/T/Rtmpv0Vy8N/downloaded_packages’
Any help would be greatly appreciated
I am trying to install Tidyverse but I cannot get the rlang package to download.
I am using R version 3.5.3, and I have tried uninstalling and reinstalling R. Furthermore, I have tried to install Tidyverse as well as the rlang package individually.
install.packages("tidyverse")
install.packages("rlang", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
With both of these methods, I get the same error message.
* installing *source* package ‘rlang’ ...
** package ‘rlang’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘rlang’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rlang’
Warning in install.packages :
installation of package ‘rlang’ had non-zero exit status
Any ideas would be greatly appreciated!
I have searched for hints to my problem and made some progress through hints from similar posts, but ultimately still stuck. I am trying to install the package hydroTSM on a Mac (OS X 10.9.5). Using R Studio I successfully installed and loaded the most recent zoo and xts packages (dependencies). I tried:
install.packages("hydroTSM", lib="/Library/Frameworks/R.framework/Versions/3.1/Resources/library", type="source")
and it the install seems to proceed Ok until it gets to installing the rgeos package, and I get:
* installing *source* package ‘rgeos’ ...
** package ‘rgeos’ successfully unpacked and MD5 sums checked
configure: CC: clang
configure: CXX: clang++
configure: rgeos: 0.3-4
checking for /usr/bin/svnversion... yes
configure: svn revision: 460
checking geos-config usability...
./configure: line 2056: geos-config: command not found
no
configure: error: geos-config not usable
ERROR: configuration failed for package ‘rgeos’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/rgeos’
Warning in install.packages :
installation of package ‘rgeos’ had non-zero exit status
ERROR: dependency ‘rgeos’ is not available for package ‘spacetime’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/spacetime’
Warning in install.packages :
installation of package ‘spacetime’ had non-zero exit status
ERROR: dependency ‘spacetime’ is not available for package ‘gstat’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/gstat’
Warning in install.packages :
installation of package ‘gstat’ had non-zero exit status
ERROR: dependency ‘gstat’ is not available for package ‘automap’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/automap’
Warning in install.packages :
installation of package ‘automap’ had non-zero exit status
ERROR: dependencies ‘gstat’, ‘automap’ are not available for package ‘hydroTSM’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/hydroTSM’
Warning in install.packages :
installation of package ‘hydroTSM’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/87/wn7lf03j7w39zjtnslph4lj80000gn/T/RtmpZ7UFC7/downloaded_packages’ "
Any suggestions greatly appreciated.