I am trying to download RMarkdown in RStudio but I keep getting this message:
install.packages("rmarkdown")
also installing the dependencies ‘markdown’, ‘knitr’, ‘mime’
There are binary versions available but the source versions are later:
binary source needs_compilation
markdown 0.9 1.1 TRUE
knitr 1.22 1.24 FALSE
mime 0.6 0.7 TRUE
rmarkdown 1.12 1.15 FALSE
Do you want to install from sources the packages which need compilation?
y/n: y
installing the source packages ‘markdown’, ‘knitr’, ‘mime’, ‘rmarkdown’
trying URL 'https://cran.rstudio.com/src/contrib/markdown_1.1.tar.gz'
Content type 'application/x-gzip' length 81050 bytes (79 KB)
==================================================
downloaded 79 KB
trying URL '://cran.rstudio.com/src/contrib/knitr_1.24.tar.gz'
Content type 'application/x-gzip' length 882405 bytes (861 KB)
==================================================
downloaded 861 KB
trying URL '://cran.rstudio.com/src/contrib/mime_0.7.tar.gz'
Content type 'application/x-gzip' length 13130 bytes (12 KB)
==================================================
downloaded 12 KB
trying URL '://cran.rstudio.com/src/contrib/rmarkdown_1.15.tar.gz'
Content type 'application/x-gzip' length 3174782 bytes (3.0 MB)
==================================================
downloaded 3.0 MB
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'America/EST'
* installing *source* package ‘mime’ ...
** package ‘mime’ successfully unpacked and MD5 sums checked
Warning in format.POSIXlt(as.POSIXlt(x, tz), format, usetz, ...) :
unknown timezone 'America/EST'
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘mime’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/mime’
Warning in install.packages :
installation of package ‘mime’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'America/EST'
ERROR: dependency ‘mime’ is not available for package ‘markdown’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/markdown’
Warning in install.packages :
installation of package ‘markdown’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'America/EST'
ERROR: dependency ‘markdown’ is not available for package ‘knitr’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/knitr’
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'America/EST'
ERROR: dependencies ‘knitr’, ‘mime’ are not available for package ‘rmarkdown’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rmarkdown’
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/1n/sfp4mkld4_dd4jvw8mkfrg7c0000gn/T/Rtmprh45XY/downloaded_packages’