xabi
July 24, 2018, 5:40pm
1
That is what I get when i am trying to install the package.
installing source package ‘Rcpp’ ...
** package ‘Rcpp’ 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 ‘Rcpp’
removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp’
The downloaded source packages are in
‘/private/var/folders/ld/5gyjrx5n7sgb50kmj06n6bkc0000gn/T/RtmpWIGSP2/downloaded_packages’
Warning message:
In install.packages("dplyr") :
installation of package ‘Rcpp’ had non-zero exit status
System Information:
RStudio Edition: (Desktop or Server) desktop
RStudio Version: last version for mac
OS Version: 10.13.6
R Version: 3.5.1
Someone has an idea?
From Troubleshooting Guide: Using RStudio
Could you try:
install.packages("dplyr", dependencies=TRUE)
and failing that,
install.packages("Rcpp", dependencies=TRUE)
mara
July 24, 2018, 6:23pm
3
xabi:
installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ 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 ‘Rcpp’
This looks like a problem with your local toolchain. There's a post (below), which suggests you install or update xcode, or xcode CLT
https://tips.tutorialhorizon.com/2015/10/01/xcrun-error-invalid-active-developer-path-library-developer-commandline-tools-missing-xcrun/
xabi
July 24, 2018, 6:38pm
4
Thank you everyone !! i have just find out. I had to install the command line tool on my laptop. All done and working now.
Thank you so much for you help.
1 Like
mara
July 24, 2018, 7:15pm
5
Yay! I figured that was the issue.
If your question's been answered (even if by you), would you mind choosing a solution? (See FAQ below for how).
Having questions checked as resolved makes it a bit easier to navigate the site visually and see which threads still need help.
If your question has been answered, don't forget to mark the solution!
How do I mark a solution?
Find the reply you want to mark as the solution and look for the row of small gray icons at the bottom of that reply. Click the one that looks like a box with a checkmark in it:
[image]
Hovering over the mark solution button shows the label, "Select if this reply solves the problem". If you don't see the mark solution button, try clicking the three dots button ( ••• ) to expand the full set of options.
When a solution is chosen, the icon turns green and the hover label changes to: "Unselect if this reply no longer solves the problem". Success!
[solution_reply_author]
…
Thanks
xabi
July 24, 2018, 7:37pm
6
Oh thank you for telling me ! I am new here and to rstudio. I have ticked it
1 Like