Mohave Mac Devtools problem

121 views
Skip to first unread message

moppezz

unread,
Jan 9, 2019, 2:52:43 PM1/9/19
to devtools
Hello

I have a Mac and Mohave and use RStudio.
I get this message with dev tools installation.... Please help!

R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> remove.packages("rstan")
Removing package from ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library’
(as ‘lib’ is unspecified)
> if (file.exists(".RData")) file.remove(".RData")
> install.packages("rstan", repos = "https://cloud.r-project.org/", dependencies = TRUE)
trying URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.5/rstan_2.18.2.tgz'
Content type 'application/x-gzip' length 19107931 bytes (18.2 MB)
==================================================
downloaded 18.2 MB


The downloaded binary packages are in
	/var/folders/nx/pbmd96d519s02pv73bq18pxw0000gn/T//RtmpAlR4VE/downloaded_packages
> install.packages(c("coda", "devtools", "mvtnorm", "RStanArm", "brms", "ShinyStan", "bayesplot", "rstan", "rstantools"))
Warning in install.packages :
  packages ‘RStanArm’, ‘ShinyStan’ are not available (for R version 3.5.1)
also installing the dependencies ‘Brobdingnag’, ‘bridgesampling’, ‘nleqslv’, ‘abind’, ‘rlang’


  There are binary versions available but the source versions are later:
          binary source needs_compilation
rlang    0.3.0.1  0.3.1              TRUE
devtools  1.13.6  2.0.1             FALSE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) yes
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/Brobdingnag_1.2-6.tgz'
Content type 'application/x-gzip' length 415668 bytes (405 KB)
==================================================
downloaded 405 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/bridgesampling_0.6-0.tgz'
Content type 'application/x-gzip' length 1269009 bytes (1.2 MB)
==================================================
downloaded 1.2 MB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/nleqslv_3.3.2.tgz'
Content type 'application/x-gzip' length 153198 bytes (149 KB)
==================================================
downloaded 149 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/abind_1.4-5.tgz'
Content type 'application/x-gzip' length 61870 bytes (60 KB)
==================================================
downloaded 60 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/coda_0.19-2.tgz'
Content type 'application/x-gzip' length 318118 bytes (310 KB)
==================================================
downloaded 310 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/mvtnorm_1.0-8.tgz'
Content type 'application/x-gzip' length 260771 bytes (254 KB)
==================================================
downloaded 254 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/brms_2.7.0.tgz'
Content type 'application/x-gzip' length 4859029 bytes (4.6 MB)
==================================================
downloaded 4.6 MB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/bayesplot_1.6.0.tgz'
Content type 'application/x-gzip' length 5314851 bytes (5.1 MB)
==================================================
downloaded 5.1 MB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/rstan_2.18.2.tgz'
Content type 'application/x-gzip' length 19107931 bytes (18.2 MB)
==================================================
downloaded 18.2 MB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/rstantools_1.5.1.tgz'
Content type 'application/x-gzip' length 101621 bytes (99 KB)
==================================================
downloaded 99 KB


The downloaded binary packages are in
	/var/folders/nx/pbmd96d519s02pv73bq18pxw0000gn/T//RtmpAlR4VE/downloaded_packages
installing the source packages ‘rlang’, ‘devtools’

trying URL 'https://cran.rstudio.com/src/contrib/rlang_0.3.1.tar.gz'
Content type 'application/x-gzip' length 857682 bytes (837 KB)
==================================================
downloaded 837 KB

trying URL 'https://cran.rstudio.com/src/contrib/devtools_2.0.1.tar.gz'
Content type 'application/x-gzip' length 388953 bytes (379 KB)
==================================================
downloaded 379 KB

* 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
* installing *source* package ‘devtools’ ...
** package ‘devtools’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called ‘rlang’
ERROR: lazy loading failed for package ‘devtools’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/devtools’
Warning in install.packages :
  installation of package ‘devtools’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/nx/pbmd96d519s02pv73bq18pxw0000gn/T/RtmpAlR4VE/downloaded_packages’
> library(devtools)
Error in library(devtools) : there is no package called ‘devtools’
> library(devtools)
Error in library(devtools) : there is no package called ‘devtools’
> remove.packages("rstan")
Removing package from ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library’
(as ‘lib’ is unspecified)
> if (file.exists(".RData")) file.remove(".RData")
> install.packages(c("coda", "devtools", "mvtnorm", "RStanArm", "brms", "ShinyStan", "bayesplot", "rstan", "rstantools"))
Warning in install.packages :
  packages ‘RStanArm’, ‘ShinyStan’ are not available (for R version 3.5.1)
also installing the dependency ‘rlang’


  There are binary versions available but the source versions are later:
          binary source needs_compilation
rlang    0.3.0.1  0.3.1              TRUE
devtools  1.13.6  2.0.1             FALSE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/coda_0.19-2.tgz'
Content type 'application/x-gzip' length 318118 bytes (310 KB)
==================================================
downloaded 310 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/mvtnorm_1.0-8.tgz'
Content type 'application/x-gzip' length 260771 bytes (254 KB)
==================================================
downloaded 254 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/brms_2.7.0.tgz'
Content type 'application/x-gzip' length 4859029 bytes (4.6 MB)
==================================================
downloaded 4.6 MB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/bayesplot_1.6.0.tgz'
Content type 'application/x-gzip' length 5314851 bytes (5.1 MB)
==================================================
downloaded 5.1 MB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/rstan_2.18.2.tgz'
Content type 'application/x-gzip' length 19107931 bytes (18.2 MB)
==================================================
downloaded 18.2 MB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/rstantools_1.5.1.tgz'
Content type 'application/x-gzip' length 101621 bytes (99 KB)
==================================================
downloaded 99 KB


The downloaded binary packages are in
	/var/folders/nx/pbmd96d519s02pv73bq18pxw0000gn/T//RtmpAlR4VE/downloaded_packages
installing the source packages ‘rlang’, ‘devtools’

trying URL 'https://cran.rstudio.com/src/contrib/rlang_0.3.1.tar.gz'
Content type 'application/x-gzip' length 857682 bytes (837 KB)
==================================================
downloaded 837 KB

trying URL 'https://cran.rstudio.com/src/contrib/devtools_2.0.1.tar.gz'
Content type 'application/x-gzip' length 388953 bytes (379 KB)
==================================================
downloaded 379 KB

* 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
* installing *source* package ‘devtools’ ...
** package ‘devtools’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called ‘rlang’
ERROR: lazy loading failed for package ‘devtools’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/devtools’
Warning in install.packages :
  installation of package ‘devtools’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/nx/pbmd96d519s02pv73bq18pxw0000gn/T/RtmpAlR4VE/downloaded_packages’
> install.packages("devtools")

CHOQUEL Loïc

unread,
Dec 21, 2019, 11:06:01 AM12/21/19
to devtools

Hi,
Did you find an answer to your problem ? I have the same one.
Thx you very much
Loïc

Gregory Jefferis

unread,
Dec 21, 2019, 12:10:21 PM12/21/19
to CHOQUEL Loïc, devtools
--
You received this message because you are subscribed to the Google Groups "devtools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdevtools+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdevtools/ef5cb4db-7fbc-4914-bc9a-57ade969b0e3%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages