Error: ggplot2 package not found when loading carriage package

When I install the carriage.

install.packages("caret", dependencies=c("Depends", "Suggests"))
library(caret)
## Loading required package: lattice
## Loading required package: ggplot2

Error in LoadNamespace (i, c (lib.loc, .libPaths ()), versionCheck = vI [[i]]): no package called "digest"
Error: package "ggplot2" could not be loaded.

So, I am resolving the package digest problem by installing a carriage using this code and what I will get again:

install.packages("caret",  dep="TRUE")
library(caret)
## Loading required package: lattice
## Loading required package: ggplot2

Error in LoadNamespace (i, c (lib.loc, .libPaths ()), versionCheck = vI [[i]]): no package called "gtable"
Error: package "ggplot2" could not be loaded.

How to install the carriage successfully without such errors, especially the ggplot2 error!

my version of R is R 3.2.2

+4
4

, , . install.packages("caret", dep="TRUE"), digest, install.packages("ggplot"), ggplot gtable, . - caret - .

+3

, ggplot2 (, digest gtable)

,

install.packages("caret", dependencies = c("Depends", "Imports", "Suggests"))

, dep = TRUE, , .

0

, ggplot2:

install.packages('ggplot2', repos='http://cran.us.r-project.org')
0

R3.2.3, , .

0

Source: https://habr.com/ru/post/1611992/


All Articles