R 3.4.0 tm.plugin.webmining安装失败

时间:2017-08-01 04:24:04

标签: r

全部 -

我最近有一个正在修补的工具箱(RHEL 6.8),它将我的R版本从3.3.3更新到3.4.0。这没有什么大不了的 - 唯一的复杂因素是我必须返回并在新版本下安装我需要的软件包。我依赖的一个包是tm.plugin.webmining包。

我的一个工作失败了,当我手动运行时,我得到了一堆关于该包的垃圾,所以我认为这是搞砸了所以我试图重新安装它,但我不断收到错误。

我考虑过回滚一个版本的R,但这需要大量工作,我真的想继续使用新版本。这是我尝试安装软件包时R会话的控制台输出:

 > install.packages("tm.plugin.webmining")
Installing package into â/root/R/x86_64-redhat-linux-gnu-library/3.4â
(as âlibâ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Secure CRAN mirrors 

 1: 0-Cloud [https]                   2: Algeria [https]                
 3: Australia (Canberra) [https]      4: Australia (Melbourne 1) [https]
 5: Australia (Perth) [https]         6: Austria [https]                
 7: Belgium (Ghent) [https]           8: Brazil (RJ) [https]            
 9: Brazil (SP 1) [https]            10: Bulgaria [https]               
11: Chile 1 [https]                  12: China (Lanzhou) [https]        
13: Colombia (Cali) [https]          14: Czech Republic [https]         
15: Denmark [https]                  16: Estonia [https]                
17: France (Lyon 1) [https]          18: France (Lyon 2) [https]        
19: France (Marseille) [https]       20: France (Montpellier) [https]   
21: France (Paris 2) [https]         22: Germany (Göttingen) [https]    
23: Germany (Münster) [https]        24: Greece [https]                 
25: Iceland [https]                  26: Indonesia (Jakarta) [https]    
27: Ireland [https]                  28: Italy (Padua) [https]          
29: Japan (Tokyo) [https]            30: Malaysia [https]               
31: Mexico (Mexico City) [https]     32: Norway [https]                 
33: Philippines [https]              34: Serbia [https]                 
35: Spain (A Coruña) [https]         36: Spain (Madrid) [https]         
37: Sweden [https]                   38: Switzerland [https]            
39: Turkey (Denizli) [https]         40: Turkey (Mersin) [https]        
41: UK (Bristol) [https]             42: UK (Cambridge) [https]         
43: UK (London 1) [https]            44: USA (CA 1) [https]             
45: USA (IA) [https]                 46: USA (KS) [https]               
47: USA (MI 1) [https]               48: USA (OR) [https]               
49: USA (TN) [https]                 50: USA (TX 1) [https]             
51: Vietnam [https]                  52: (other mirrors)                


Selection: 50
trying URL 'https://cran.revolutionanalytics.com/src/contrib/tm.plugin.webmining_1.3.tar.gz'
Content type 'application/octet-stream' length 263472 bytes (257 KB)
==================================================
downloaded 257 KB

* installing *source* package âtm.plugin.webminingâ ...
** package âtm.plugin.webminingâ successfully unpacked and MD5 sums checked
** R
** data
** inst
** preparing package for lazy loading

 *** caught bus error ***
address 0x7ffcfbdcf870, cause 'non-existent physical address'

Traceback:
 1: .External(RinitJVM, boot.classpath, parameters)
 2: .jinit()
 3: .jpackage(pkgname, lib.loc = libname)
 4: fun(libname, pkgname)
 5: doTryCatch(return(expr), name, parentenv, handler)
 6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 7: tryCatchList(expr, classes, parentenv, handlers)
 8: tryCatch(fun(libname, pkgname), error = identity)
 9: runHook(".onLoad", env, package.lib, package)
10: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
11: asNamespace(ns)
12: namespaceImportFrom(ns, loadNamespace(j <- i[[1L]], c(lib.loc,     .libPaths()), versionCheck = vI[[j]]), i[[2L]], from = package)
13: loadNamespace(package, lib.loc, keep.source, partial = TRUE)
14: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
15: suppressPackageStartupMessages(loadNamespace(package, lib.loc,     keep.source, partial = TRUE))
16: code2LazyLoadDB(package, lib.loc = lib.loc, keep.source = keep.source,     compress = compress)
17: makeLazyLoading(pkg_name, lib, keep.source = keep.source)
18: doTryCatch(return(expr), name, parentenv, handler)
19: tryCatchOne(expr, names, parentenv, handlers[[1L]])
20: tryCatchList(expr, classes, parentenv, handlers)
21: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        msg <- conditionMessage(e)        sm <- strsplit(msg, "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && identical(getOption("show.error.messages"),         TRUE)) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
22: try({    suppressPackageStartupMessages(.getRequiredPackages(quietly = TRUE))    makeLazyLoading(pkg_name, lib, keep.source = keep.source)})
23: do_install_source(pkg_name, instdir, pkg, desc)
24: do_install(pkg)
25: tools:::.install_packages()
An irrecoverable exception occurred. R is aborting now ...
/usr/lib64/R/bin/INSTALL: line 34: 19398 Done                    echo 'tools:::.install_packages()'
     19399 Bus error               (core dumped) | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --slave --args ${args}

The downloaded source packages are in
        â/tmp/RtmphtZnGE/downloaded_packagesâ
Warning message:
In install.packages("tm.plugin.webmining") :
  installation of package âtm.plugin.webminingâ had non-zero exit status

有没有人有任何建议?对于我的下一步行动,我有点迷失了......谢谢!

查尔斯

1 个答案:

答案 0 :(得分:0)

安装3.4.1之后,tm.plugin.webmining包仍然存在安装问题,所以我最终根据需要使用基本包依赖编写自己的函数。只想要发布更新....