can't install devtools in my Rstudio Macos

i tried too much to install devtools on my mac R studio but id doesn't , and this is the error appears:

Warning in install.packages :
installation of package ‘devtools’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/gj/b_jyp39x3191_5x00dbjkckh0000gn/T/RtmpSEJ4zH/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

Can you post the complete error message you get? you are omitting the informative parts.

i tried this:

install.packages("devtools", type = "source")
trying URL 'https://cran.rstudio.com/src/contrib/devtools_2.3.2.tar.gz'
Content type 'application/x-gzip' length 373387 bytes (364 KB)
==================================================
downloaded 364 KB

  • installing source package ‘devtools’ ...
    ** package ‘devtools’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    *** copying figures
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded from temporary location
    ** testing if installed package can be loaded from final location
    ** testing if installed package keeps a record of temporary installation path
  • DONE (devtools)

The downloaded source packages are in
‘/private/var/folders/gj/b_jyp39x3191_5x00dbjkckh0000gn/T/RtmprpKSBz/downloaded_packages’

library(devtools)

but when try to use it it loading:
Loading required package: usethis

You are not showing any error message so far, can you post the complete output you get when you load devtools?

This topic was automatically closed after 45 days. New replies are no longer allowed.


If you have a query related to it or one of the replies, start a new topic and refer back with a link.