Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing devtools

I'm trying to install devtools for R in a MacBook (OS 13.0)

Problem is that it doesn't have dependency pkgdown:

ERROR: dependency ‘pkgdown’ is not available for package ‘devtools’
* removing ‘/opt/homebrew/lib/R/4.2/site-library/devtools’

nor ragg (when I try to install pkgdown)

<stdin>:1:10: fatal error: 'hb-ft.h' file not found
#include <hb-ft.h>
         ^~~~~~~~~
1 error generated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘textshaping’


ERROR: dependency ‘ragg’ is not available for package ‘pkgdown’

Trying to install textshaping didn't work either, giving:

#include <hb-ft.h>
         ^~~~~~~~~
1 error generated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘textshaping’
* removing ‘/opt/homebrew/lib/R/4.2/site-library/textshaping’
like image 371
Caterina Avatar asked Oct 29 '25 01:10

Caterina


1 Answers

Never mind I solved it with:

brew install harfbuzz
brew install fribidi

In addition (for future reference) you also need:

brew install libgit2

and then

install.packages("usethis", verbose=TRUE)
like image 165
Caterina Avatar answered Oct 30 '25 13:10

Caterina



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!