Unable to install packages "cli" and "devtools"

Hi! I'm trying to install the package "devtools" (which depends on "cli") but it's always returning an error. I already tried to first install "cli" separately, but I was also unable to install it.

RTools is installed and pointed to the path. In the case of 'cli' when trying to install source it returns the error (I was able to install the binary, but then I still have problem installing "devtools").

> install.packages("cli")
Installing package into ‘C:/Users/Silas/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)

  There is a binary version available but the source version is later:
    binary source needs_compilation
cli  2.3.1  2.4.0             FALSE

installing the source package ‘cli’

tentando a URL 'https://cran.rstudio.com/src/contrib/cli_2.4.0.tar.gz'
Content type 'application/x-gzip' length 149940 bytes (146 KB)
downloaded 146 KB

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

The downloaded source packages are in
	‘C:\Users\Silas\AppData\Local\Temp\Rtmp2JrRaN\downloaded_packages’
> install.packages("devtools")
Installing package into ‘C:/Users/Silas/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘cli’, ‘pkgload’


  There are binary versions available but the source versions are later:
         binary source needs_compilation
cli       2.3.1  2.4.0             FALSE
pkgload   1.2.0  1.2.1              TRUE
devtools  2.3.2  2.4.0             FALSE

installing the source packages ‘cli’, ‘pkgload’, ‘devtools’

tentando a URL 'https://cran.rstudio.com/src/contrib/cli_2.4.0.tar.gz'
Content type 'application/x-gzip' length 149940 bytes (146 KB)
downloaded 146 KB

tentando a URL 'https://cran.rstudio.com/src/contrib/pkgload_1.2.1.tar.gz'
Content type 'application/x-gzip' length 60651 bytes (59 KB)
downloaded 59 KB

tentando a URL 'https://cran.rstudio.com/src/contrib/devtools_2.4.0.tar.gz'
Content type 'application/x-gzip' length 369987 bytes (361 KB)
downloaded 361 KB

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

I also tried to install from RStudio pointing to the downloaded tarball.

I appreciate any help.

> sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=Portuguese_Brazil.1252  LC_CTYPE=Portuguese_Brazil.1252   
[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C                      
[5] LC_TIME=Portuguese_Brazil.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.0.4 tools_4.0.4   

> Sys.which("make")
                              make 
"C:\\rtools40\\usr\\bin\\make.exe" 

I was able to install now, after updating from R 4.0.4 to R 4.0.5

This topic was automatically closed 7 days after the last reply. 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.