2017-08-01 166 views
0

全部 -[R 3.4.0 tm.plugin.webmining安裝失敗

我最近有在修補工作(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 

有沒有人有任何建議?我有點失落,因爲我的下一步行動是......謝謝!

查爾斯

+0

你有沒有嘗試通過github安裝? 'devtools :: install_github(「mannau/tm.plugin.webmining」)' 另外,介意如果你分享你的'sessionInfo()'? – hongsy

+0

我用R 3.4.0解決了升級到3.4.1的奇怪問題。 – mikeck

+0

@hongsy - 我嘗試了github安裝並得到了相同的錯誤,但在發生了一堆其他事情之後。 – azdatasci

回答

0

安裝3.4.1後,tm.plugin.webmining包仍然有問題的安裝,所以我結束了使用基礎包依賴我需要寫我自己的功能。只想d發佈更新....