##报错:
Error in completeSubclasses(classDef2, class1, obj, where) :
trying to get slot "subclasses" from an object of a basic class ("NULL") with no slots
In addition: Warning message:
程辑包‘dbplyr’是用R版本4.2.3 来建造的
Error: package or namespace load failed for ‘dbplyr’:
loadNamespace()里算'dbplyr'时.onLoad失败了,详细内容:
调用: setClass(cl, contains = c(prevClass, "VIRTUAL"), where = where)
错误: “ident”类别里包含的子类别("character")不对;类别定义从‘dbplyr’中被删除
#####
R version 4.2.2 (2022-10-31 ucrt) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
原因可能是加载"clusterProfiler"包后导致" dbplyr "不能加载
加载解决:
##调整顺序
library("dbplyr")##先加载
library(clusterProfiler)
##能够顺利载入
package or namespace load failed for ‘dbplyr’ · Issue #1176 · tidyverse/dbplyr (github.com)