2014-04-28 6 views
1

내가 classInt가 설치되어 있지 않기 때문에 나에게 0이 아닌 종료 상태를 준 패키지 raster를 설치하려고 (R 버전 3.1.0 용)을 사용할 수 없습니다.패키지 'classInt는'

내가 최근에 업데이트 및 우분투의 모든 R 패키지와 (3.1) R-코어를 업그레이드했습니다. 내가 수동으로 할 때, 심지어 크랑 저장소에서 패키지 classInt를 설치하거나하려고하면

지금합니다 (tar.gz의를 다운로드하고 REPOS 설정) 내가받을 다음과 같은 오류 코드 :

package ‘classInt’ is not available (for R version 3.1.0) 

어떤 생각 이 디버깅하는 방법에? 세션 정보를 원하시면 여기

> install.packages("raster") 
Installing package into ‘/home/user/R/x86_64-pc-linux-gnu-library/3.1’ 
(as ‘lib’ is unspecified) 
trying URL 'http://cran.rstudio.com/src/contrib/raster_2.2-31.tar.gz' 
Content type 'application/x-gzip' length 1049759 bytes (1.0 Mb) 
opened URL 
================================================== 
    downloaded 1.0 Mb 

Error in library("classInt") : there is no package called ‘classInt’ 
Execution halted 
Warning in install.packages : 
    installation of package ‘raster’ had non-zero exit status 

The downloaded source packages are in 
‘/tmp/RtmpaJUU7d/downloaded_packages’ 
> 



    > install.packages("classInt") 

Installing package into ‘/home/user/R/x86_64-pc-linux-gnu-library/3.1’ 
(as ‘lib’ is unspecified) 
also installing the dependency ‘e1071’ 

trying URL 'http://cran.rstudio.com/src/contrib/e1071_1.6-3.tar.gz' 
Content type 'application/x-gzip' length 583697 bytes (570 Kb) 
opened URL 
================================================== 
    downloaded 570 Kb 

trying URL 'http://cran.rstudio.com/src/contrib/classInt_0.1-21.tar.gz' 
Content type 'application/x-gzip' length 18213 bytes (17 Kb) 
opened URL 
================================================== 
    downloaded 17 Kb 

Error in library("classInt") : there is no package called ‘classInt’ 
Execution halted 
Warning in install.packages : 
    installation of package ‘e1071’ had non-zero exit status 
Error in library("classInt") : there is no package called ‘classInt’ 
Execution halted 
Warning in install.packages : 
    installation of package ‘classInt’ had non-zero exit status 

The downloaded source packages are in 
‘/tmp/RtmpaJUU7d/downloaded_packages’ 
> 


    > install.packages("~/R/Packages/classInt_0.1-21.tar.gz",repos=NULL, type="source") 

Installing package into ‘/home/user/R/x86_64-pc-linux-gnu-library/3.1’ 
(as ‘lib’ is unspecified) 
Error in library("classInt") : there is no package called ‘classInt’ 
Execution halted 
Warning in install.packages : 
    installation of package ‘/home/user/R/Packages/classInt_0.1-21.tar.gz’ had non-zero exit status 
> 

:

> sessionInfo() 
R version 3.1.0 (2014-04-10) 
Platform: x86_64-pc-linux-gnu (64-bit) 

locale: 
    [1] LC_CTYPE=en_US.UTF-8  LC_NUMERIC=C    LC_TIME=en_US.UTF-8  LC_COLLATE=en_US.UTF-8  
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8  LC_NAME=C     
[9] LC_ADDRESS=C    LC_TELEPHONE=C    LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C  

attached base packages: 
    [1] stats  graphics grDevices utils  datasets methods base  

loaded via a namespace (and not attached): 
    [1] tools_3.1.0 

및 옵션()

> options() 
$add.smooth 
[1] TRUE 

$bitmapType 
[1] "cairo" 

$browser 
function (url) 
{ 
    .Call("rs_browseURL", url) 
} 
<environment: 0x45ec5b0> 

    $browserNLdisabled 
[1] FALSE 

$CBoundsCheck 
[1] FALSE 

$check.bounds 
[1] FALSE 

$citation.bibtex.max 
[1] 1 

$continue 
[1] "+ " 

$contrasts 
unordered   ordered 
"contr.treatment"  "contr.poly" 

$defaultPackages 
[1] "datasets" "utils"  "grDevices" "graphics" "stats"  "methods" 

$demo.ask 
[1] "default" 

$deparse.cutoff 
[1] 60 

$device 
[1] "RStudioGD" 

$device.ask.default 
[1] FALSE 

$digits 
[1] 7 

$dvipscmd 
[1] "dvips" 

$echo 
[1] TRUE 

$editor 
[1] "vi" 

$encoding 
[1] "native.enc" 

$error 
(function() 
{ 
    .rs.recordTraceback(userOnly) 
})() 

$example.ask 
[1] "default" 

$expressions 
[1] 5000 

$ggvis.renderer 
[1] "svg" 

$help.search.types 
[1] "vignette" "demo"  "help"  

$help.try.all.packages 
[1] FALSE 

$help_type 
[1] "html" 

$HTTPUserAgent 
[1] "R (3.1.0 x86_64-pc-linux-gnu x86_64 linux-gnu)" 

$internet.info 
[1] 2 

$keep.source 
[1] TRUE 

$keep.source.pkgs 
[1] FALSE 

$locatorBell 
[1] TRUE 

$mailer 
[1] "mailto" 

$max.print 
[1] 10000 

$menu.graphics 
[1] FALSE 

$na.action 
[1] "na.omit" 

$nwarnings 
[1] 50 

$OutDec 
[1] "." 

$pager 
function (files, header, title, delete.file) 
{ 
    for (i in 1:length(files)) { 
    if ((i > length(header)) || !nzchar(header[[i]])) 
     fileTitle <- title 
    else fileTitle <- header[[i]] 
    .Call("rs_showFile", fileTitle, files[[i]], delete.file) 
    } 
} 
<environment: 0x44790f8> 

    $papersize 
[1] "a4" 

$pdfviewer 
[1] "/usr/bin/xdg-open" 

$pkgType 
[1] "source" 

$printcmd 
[1] "/usr/bin/lpr" 

$prompt 
[1] "> " 

$repos 
CRAN 
"http://cran.univ-paris1.fr/" 

$rl_word_breaks 
[1] " \t\n\"\\'`><=%;,|&{()}" 

$scipen 
[1] 0 

$show.coef.Pvalues 
[1] TRUE 

$show.error.messages 
[1] TRUE 

$show.signif.stars 
[1] TRUE 

$str 
$str$strict.width 
[1] "no" 

$str$digits.d 
[1] 3 

$str$vec.len 
[1] 4 


$str.dendrogram.last 
[1] "`" 

$stringsAsFactors 
[1] TRUE 

$texi2dvi 
[1] "/usr/bin/texi2dvi" 

$timeout 
[1] 60 

$ts.eps 
[1] 1e-05 

$ts.S.compat 
[1] FALSE 

$unzip 
[1] "/usr/bin/unzip" 

$useFancyQuotes 
[1] TRUE 

$verbose 
[1] FALSE 

$viewer 
function (url, height = NULL) 
{ 
    if (!is.character(url) || (length(url) != 1)) 
    stop("url must be a single element character vector.", 
     call. = FALSE) 
    if (!is.null(height) && (!is.numeric(height) || (length(height) != 
                1))) 
    stop("height must be a single element integer vector.", 
     call. = FALSE) 
    invisible(.Call("rs_viewer", url, height)) 
} 
<environment: 0x45ec5b0> 

    $warn 
[1] 0 

$warning.length 
[1] 1000 

$width 
[1] 122 
+0

당신은 손으로 설치할 수는 (당신이하는 OS에 따라 다름). http://cran.r-project.org/web/packages/classInt/index.html을 참조하십시오. Windows 사용자 인 경우, .zip 파일을 다운로드하여 'install.packages ("file.zip ", repose = NULL)'그리고'raster'를 설치하십시오. 이것 만이 충족되지 않은 유일한 의존성이라면, 그것은 통과해야합니다. –

+0

@hrbrmstr : 그것은 어떻게 든 망가했기 때문에 나의 첫번째 코멘트를 입력 재 : 나는 모두가 나에게 ... – joaoal

+0

1 같은 오류를 제공합니다 ... 여러 가지 거울에 시도 당신이 사용하는 어떤 거울? 'install.packages ("classInt")'는 우분투 및 OS X (R3.1)에서 문제없이 작동했습니다. 2nd :'sessionInfo()'와 (아마도)'options()'의 덤프 (처음에 위생 처리가 필요할 수도있는 후자)는 약간의 조명을 제공 할 수 있습니다. 'classInt'는 적어도 RStudio CRAN 저장소에 있습니다 : http://cran.rstudio.com/web/packages/classInt/index.html – hrbrmstr

답변

1

확인, 문제 밝혀

전체 오류 출력

이 골대를 완료 이었고, 사용은 .Rprofile입니다. .Rprofile은 각 RSession의 시작 부분에서 자동으로 실행되는 작은 스크립트입니다. 스크립트에서 매번 호출하는 대신 일반적으로 사용되는 라이브러리를 호출 할 수 있으므로 워크 플로를 향상시켜야합니다.

난 아직도 R 2.15을 사용하는 경우 나는 file.edit("/home/user/R/.Rprofile")에이 프로필을 편집하고 나는 R 3.1 생성 된 패키지의 새 라이브러리 경로로 업그레이드 한 후, 이제 library("classInt").classInt라는 하나 다시 대부분의 추가 패키지를 다시 설치해야합니다. 그때 나는 classInt를 다시 설치하지 않았다.

이제 R이 시작할 때마다 classInt을 호출 할 때 패키지가 설치되지 않고 오류 메시지가 생성 되었기 때문에 작동하지 않습니다 : Error in library("classInt") : there is no package called 'classInt'. 나는이 메시지가 나에게 영향을 미치지 않았기 때문에 시작시에 항상이 메시지를 간과했다.

지금 .Rprofile에서 선 library("classInt")을 삭제 한 후 나는 어떤 오류 메시지없이 raster 패키지를 설치할 수 있으며, 또한 classInt 또는 기타 원하는 패키지를 다시 설치 할 수있다. 그래서 저는 R이 세션 시작시 성공적으로 classInt을 호출 한 후에 어떤 패키지도 설치할 수없는 버그라고 생각합니다.