質問編集履歴
3
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -93,6 +93,15 @@
|
|
93
93
|
|
94
94
|
The downloaded source packages are in
|
95
95
|
‘/private/var/folders/tr/0dstc08s6l33fy29c6myjls40000gn/T/Rtmp8ki6X8/downloaded_packages’
|
96
|
+
> wordcloud(RMeCabText.result.2,min.freq=2,random.order=FALSE)
|
97
|
+
Loading required package: tm
|
98
|
+
wordcloud(RMeCabText.result.2, min.freq = 2, random.order = FALSE) でエラー:
|
99
|
+
freq must either be non-missing, or the tm package must be available
|
100
|
+
追加情報: 警告メッセージ:
|
101
|
+
library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, で:
|
102
|
+
there is no package called ‘tm’
|
103
|
+
> library("XML", lib.loc="/usr/local/lib/R/3.4/site-library")
|
104
|
+
>
|
96
105
|
```
|
97
106
|
この中でこの部分にエラーが出ていてやはりうまくいきません。
|
98
107
|
```R
|
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -93,4 +93,14 @@
|
|
93
93
|
|
94
94
|
The downloaded source packages are in
|
95
95
|
‘/private/var/folders/tr/0dstc08s6l33fy29c6myjls40000gn/T/Rtmp8ki6X8/downloaded_packages’
|
96
|
+
```
|
97
|
+
この中でこの部分にエラーが出ていてやはりうまくいきません。
|
98
|
+
```R
|
99
|
+
Warning in install.packages :
|
100
|
+
installation of package ‘xml2’ had non-zero exit status
|
101
|
+
ERROR: dependency ‘xml2’ is not available for package ‘tm’
|
102
|
+
* removing ‘/usr/local/lib/R/3.4/site-library/tm’
|
103
|
+
Warning in install.packages :
|
104
|
+
installation of package ‘tm’ had non-zero exit status
|
105
|
+
|
96
106
|
```
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -47,4 +47,50 @@
|
|
47
47
|
追加情報: 警告メッセージ:
|
48
48
|
library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, で:
|
49
49
|
there is no package called ‘tm’
|
50
|
+
```
|
51
|
+
|
52
|
+
install.packages('tm')
|
53
|
+
を実行した場合の結果
|
54
|
+
```R
|
55
|
+
> install.packages('tm')
|
56
|
+
Installing package into ‘/usr/local/lib/R/3.4/site-library’
|
57
|
+
(as ‘lib’ is unspecified)
|
58
|
+
also installing the dependency ‘xml2’
|
59
|
+
|
60
|
+
URL 'https://cran.rstudio.com/src/contrib/xml2_1.2.0.tar.gz' を試しています
|
61
|
+
Content type 'application/x-gzip' length 251614 bytes (245 KB)
|
62
|
+
==================================================
|
63
|
+
downloaded 245 KB
|
64
|
+
|
65
|
+
URL 'https://cran.rstudio.com/src/contrib/tm_0.7-5.tar.gz' を試しています
|
66
|
+
Content type 'application/x-gzip' length 508376 bytes (496 KB)
|
67
|
+
==================================================
|
68
|
+
downloaded 496 KB
|
69
|
+
|
70
|
+
* installing *source* package ‘xml2’ ...
|
71
|
+
** パッケージ ‘xml2’ の解凍および MD5 サムの検証に成功しました
|
72
|
+
Found pkg-config cflags and libs!
|
73
|
+
Using PKG_CFLAGS=-I/usr/include/libxml2
|
74
|
+
Using PKG_LIBS=-L/usr/lib -lxml2 -lz -lpthread -licucore -lm
|
75
|
+
------------------------- ANTICONF ERROR ---------------------------
|
76
|
+
Configuration failed because libxml-2.0 was not found. Try installing:
|
77
|
+
* deb: libxml2-dev (Debian, Ubuntu, etc)
|
78
|
+
* rpm: libxml2-devel (Fedora, CentOS, RHEL)
|
79
|
+
* csw: libxml2_dev (Solaris)
|
80
|
+
If libxml-2.0 is already installed, check that 'pkg-config' is in your
|
81
|
+
PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config
|
82
|
+
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
|
83
|
+
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
|
84
|
+
--------------------------------------------------------------------
|
85
|
+
ERROR: configuration failed for package ‘xml2’
|
86
|
+
* removing ‘/usr/local/lib/R/3.4/site-library/xml2’
|
87
|
+
Warning in install.packages :
|
88
|
+
installation of package ‘xml2’ had non-zero exit status
|
89
|
+
ERROR: dependency ‘xml2’ is not available for package ‘tm’
|
90
|
+
* removing ‘/usr/local/lib/R/3.4/site-library/tm’
|
91
|
+
Warning in install.packages :
|
92
|
+
installation of package ‘tm’ had non-zero exit status
|
93
|
+
|
94
|
+
The downloaded source packages are in
|
95
|
+
‘/private/var/folders/tr/0dstc08s6l33fy29c6myjls40000gn/T/Rtmp8ki6X8/downloaded_packages’
|
50
96
|
```
|