crsh / citr

RStudio Addin to Insert Markdown Citations
Other
407 stars 46 forks source link

Cannot install citr #65

Closed fibrahimo closed 4 years ago

fibrahimo commented 4 years ago

Hello,

I am having trouble installing citr. I have pasted the error messages that I am getting, as well as my session info below, and my current RStudio version is 1.2.5033. I have tried restarting my RStudio and accessing citr through the Addins button on the toolbar but citr does not show up. I have also tried other installation options as well (e.g. install from GitHub), and nothing seems to work.

Could you please help me figure out this issue?

Thank you in advance.

Installation attempt and error messages

> install.packages("citr")
also installing the dependencies ‘bibtex’, ‘RefManageR’

Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6:
  cannot open URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/PACKAGES'
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘bibtex’
Do you want to attempt to install these from sources? (Yes/no/cancel) Yes
installing the source packages ‘bibtex’, ‘RefManageR’, ‘citr’

trying URL 'https://cran.rstudio.com/src/contrib/bibtex_0.4.2.2.tar.gz'
Content type 'application/x-gzip' length 90950 bytes (88 KB)
==================================================
downloaded 88 KB

trying URL 'https://cran.rstudio.com/src/contrib/RefManageR_1.2.12.tar.gz'
Content type 'application/x-gzip' length 925938 bytes (904 KB)
==================================================
downloaded 904 KB

trying URL 'https://cran.rstudio.com/src/contrib/citr_0.3.2.tar.gz'
Content type 'application/x-gzip' length 2282736 bytes (2.2 MB)
==================================================
downloaded 2.2 MB

* installing *source* package ‘bibtex’ ...
** package ‘bibtex’ 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 ‘bibtex’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/bibtex’
Warning in install.packages :
  installation of package ‘bibtex’ had non-zero exit status
ERROR: dependency ‘bibtex’ is not available for package ‘RefManageR’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RefManageR’
Warning in install.packages :
  installation of package ‘RefManageR’ had non-zero exit status
ERROR: dependency ‘RefManageR’ is not available for package ‘citr’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/citr’
Warning in install.packages :
  installation of package ‘citr’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/yh/z_jc37r90hn70r1qggtbz_g80000gn/T/RtmpIoRRzE/downloaded_packages’

Session Info

 setting  value                       
 version  R version 3.6.2 (2019-12-12)
 os       macOS Catalina 10.15.3      
 system   x86_64, darwin15.6.0        
 ui       RStudio                     
 language (EN)                        
 collate  en_CA.UTF-8                 
 ctype    en_CA.UTF-8          
 date     2020-02-07 
crsh commented 4 years ago

Hi there, the error message indicates that you are having trouble installing the bibtex package.

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘bibtex’

I think you may need to install XCode (or you need to install the binary version package).