2017-05-26 20 views
0

Ich versuche das Paket "tm" zu installieren und erhalte einen Fehler (siehe unten). Von diesem Fehler kann ich nicht sehen, was falsch läuft. Paket Rcpp ist installiert. Arbeiten an R 3.4.0, Xubuntu 64.Installationspaket "tm" schlägt fehl

Wie kann ich Paket tm installieren?

* installing *source* package ‘tm’ ... 
** package ‘tm’ successfully unpacked and MD5 sums checked 
** libs 
g++ -I/usr/share/R/include -DNDEBUG -I"/home/henk/R/x86_64-pc-linux-gnu-library/3.4/BH/include" -I"/home/henk/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o 
In file included from /home/henk/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp.h:34:0, 
       from RcppExports.cpp:4: 
/home/henk/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/grow.h:73:47: fatal error: Rcpp/generated/grow__pairlist.h: No such file or directory 
compilation terminated. 
/usr/lib/R/etc/Makeconf:168: recipe for target 'RcppExports.o' failed 
make: *** [RcppExports.o] Error 1 
ERROR: compilation failed for package ‘tm’ 
* removing ‘/home/henk/R/x86_64-pc-linux-gnu-library/3.4/tm’ 
Warning in install.packages : 
    installation of package 'tm' had non-zero exit status 

The downloaded source packages are in 
    '/tmp/Rtmp3tKSat/downloaded_packages' 

Antwort

1
At first we can install "devtools" packages and than install "tm" 
    by using devtools::install_cran("tm") 
+0

ich diesen Fehler: 'Fehler: Paket oder Namespace konnte nicht geladen werden für 'tm' in get (Info [i, 1], envir = env): Lazy-Load-Datenbank '/home/henk/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/R/Rcpp.rdb' ist beschädigt ' – Henk

+1

Saw [this] (https://github.com/wch/movies/issues/3) Kommentar zu Github; habe R neu gestartet und 'devtools :: install_cran (" tm ", force = T)' und dieses Mal installiert. – Henk

0

versuchen

sudo apt-get install r-cran-rcpp 
+0

Versuchte das bereits. Wie in der Frage gesagt, ist die Bibliothek Rcpp installiert. – Henk