【发布时间】:2021-09-28 16:14:55
【问题描述】:
我的 Rstudio 是 4.0.4 版本,但是它显示该包是在 R 版本 3.6.3 下构建的。 我不能使用这个包。如何解决这个问题?
library(tidymodels)
Warning message:
"package 'tidymodels' was built under R version 3.6.3"
Error: package or namespace load failed for 'tidymodels' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace 'recipes' 0.1.5 is being loaded, but >= 0.1.16 is required
Traceback:
1. library(tidymodels)
2. tryCatch({
. attr(package, "LibPath") <- which.lib.loc
. ns <- loadNamespace(package, lib.loc)
. env <- attachNamespace(ns, pos = pos, deps, exclude, include.only)
. }, error = function(e) {
. P <- if (!is.null(cc <- conditionCall(e)))
. paste(" in", deparse(cc)[1L])
. else ""
. msg <- gettextf("package or namespace load failed for %s%s:\n %s",
. sQuote(package), P, conditionMessage(e))
. if (logical.return)
. message(paste("Error:", msg), domain = NA)
. else stop(msg, call. = FALSE, domain = NA)
. })
3. tryCatchList(expr, classes, parentenv, handlers)
4. tryCatchOne(expr, names, parentenv, handlers[[1L]])
5. value[[3L]](cond)
6. stop(msg, call. = FALSE, domain = NA)
【问题讨论】:
-
从菜单中选择工具\检查包更新...并更新任何需要它的包。
标签: r jupyter-notebook