Installing Rtools - WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

quisiera instalar ggtree, pero me sale lo siguiente al momento de instalarlo y correr la libreria

install.packages("ggtree")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/usuario/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ggtree’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at

library(ggtree)
Error in library(ggtree) : there is no package called ‘ggtree’

muchas gracias

Hola, se necisita instalar Rtools para usar este paquete.

Vale, muchas gracias.

sigue sin funcionarme

Puedes ser más especifica? Si sigues recibiendo exactamente el mismo mensaje entonces no has instalado RTools correctamente, si el mensaje de error es distinto, entonces por favor publicalo aquí para poder ayudarte.

También, ten presente que ggtree no está disponible en CRAN sino en Bioconductor así que tienes que instalarlo de esta forma

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("ggtree")

(post deleted by author)