Installing DescTools

RStudio:-
RStudio 2022.07.1+554 "Spotted Wakerobin" Release (7872775ebddc40635780ca1ed238934c3345c5de, 2022-07-23) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.07.1+554 Chrome/102.0.5005.63 Electron/19.0.4 Safari/537.36

R Language: 4.1.0

OS: W11 23H2
++++++++++++++++++++++++++++++++++++++++

Trying to install DescTools for a colleague but when trying to install they're getting the below error;

install.packages("DescTools")
Installing package into ‘C:/Users/KeThoma/OneDrive - Paragon Bank PLC/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘DescTools’ is not available for this version of R

however, this is the same version of R which is installed on a colleagues and DescTools works fine.

The most recent version of DescTools needs R 4.2.0 at least:

❯ pkgsearch::cran_package("DescTools")$Depends
$base
[1] "*"

$stats
[1] "*"

$R
[1] ">= 4.2.0"

You can install an older version, this one looks good:

❯ pkgsearch::cran_package("DescTools", version = "0.99.51")$Depends
$base
[1] "*"

$stats
[1] "*"

$R
[1] ">= 4.0.0"

You can install it manually or with pak:

pak::pkg_install("DescTools@0.99.51")

See All about installing pak. — Installing pak • pak for installing pak.

2 Likes