在R中加载margin包时,出现以下错误,R被迫退出 我该如何解决这个问题?看来只有装订边距无法正确加载。
> install.packages("margins")
Installing package into ‘/Users/zoey_chen/Library/R/3.5/library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.cnr.berkeley.edu/bin/macosx/el-capitan/contrib/3.5/margins_0.3.23.tgz'
Content type 'application/x-gzip' length 1905876 bytes (1.8 MB)
==================================================
downloaded 1.8 MB
The downloaded binary packages are in
#I hid it
> library(margins)
*** caught segfault ***
address 0x5fc48, cause 'memory not mapped'
Traceback:
1: dyn.load(file, DLLpath = DLLpath, ...)
2: library.dynam(lib, package, package.lib)
3: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
4: asNamespace(ns)
5: namespaceImportFrom(ns, loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]), i[[2L]], from = package)
6: loadNamespace(package, lib.loc)
7: doTryCatch(return(expr), name, parentenv, handler)
8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
9: tryCatchList(expr, classes, parentenv, handlers)
10: tryCatch({ attr(package, "LibPath") <- which.lib.loc ns <- loadNamespace(package, lib.loc) env <- attachNamespace(ns, pos = pos, deps)}, 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)})
11: library(margins)
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace