質問編集履歴
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -188,6 +188,24 @@
|
|
188
188
|
|
189
189
|
‘/private/var/folders/tr/0dstc08s6l33fy29c6myjls40000gn/T/Rtmp8ki6X8/downloaded_packages’
|
190
190
|
|
191
|
+
> wordcloud(RMeCabText.result.2,min.freq=2,random.order=FALSE)
|
192
|
+
|
193
|
+
Loading required package: tm
|
194
|
+
|
195
|
+
wordcloud(RMeCabText.result.2, min.freq = 2, random.order = FALSE) でエラー:
|
196
|
+
|
197
|
+
freq must either be non-missing, or the tm package must be available
|
198
|
+
|
199
|
+
追加情報: 警告メッセージ:
|
200
|
+
|
201
|
+
library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, で:
|
202
|
+
|
203
|
+
there is no package called ‘tm’
|
204
|
+
|
205
|
+
> library("XML", lib.loc="/usr/local/lib/R/3.4/site-library")
|
206
|
+
|
207
|
+
>
|
208
|
+
|
191
209
|
```
|
192
210
|
|
193
211
|
この中でこの部分にエラーが出ていてやはりうまくいきません。
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -189,3 +189,23 @@
|
|
189
189
|
‘/private/var/folders/tr/0dstc08s6l33fy29c6myjls40000gn/T/Rtmp8ki6X8/downloaded_packages’
|
190
190
|
|
191
191
|
```
|
192
|
+
|
193
|
+
この中でこの部分にエラーが出ていてやはりうまくいきません。
|
194
|
+
|
195
|
+
```R
|
196
|
+
|
197
|
+
Warning in install.packages :
|
198
|
+
|
199
|
+
installation of package ‘xml2’ had non-zero exit status
|
200
|
+
|
201
|
+
ERROR: dependency ‘xml2’ is not available for package ‘tm’
|
202
|
+
|
203
|
+
* removing ‘/usr/local/lib/R/3.4/site-library/tm’
|
204
|
+
|
205
|
+
Warning in install.packages :
|
206
|
+
|
207
|
+
installation of package ‘tm’ had non-zero exit status
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
```
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -97,3 +97,95 @@
|
|
97
97
|
there is no package called ‘tm’
|
98
98
|
|
99
99
|
```
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
install.packages('tm')
|
104
|
+
|
105
|
+
を実行した場合の結果
|
106
|
+
|
107
|
+
```R
|
108
|
+
|
109
|
+
> install.packages('tm')
|
110
|
+
|
111
|
+
Installing package into ‘/usr/local/lib/R/3.4/site-library’
|
112
|
+
|
113
|
+
(as ‘lib’ is unspecified)
|
114
|
+
|
115
|
+
also installing the dependency ‘xml2’
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
URL 'https://cran.rstudio.com/src/contrib/xml2_1.2.0.tar.gz' を試しています
|
120
|
+
|
121
|
+
Content type 'application/x-gzip' length 251614 bytes (245 KB)
|
122
|
+
|
123
|
+
==================================================
|
124
|
+
|
125
|
+
downloaded 245 KB
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
URL 'https://cran.rstudio.com/src/contrib/tm_0.7-5.tar.gz' を試しています
|
130
|
+
|
131
|
+
Content type 'application/x-gzip' length 508376 bytes (496 KB)
|
132
|
+
|
133
|
+
==================================================
|
134
|
+
|
135
|
+
downloaded 496 KB
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
* installing *source* package ‘xml2’ ...
|
140
|
+
|
141
|
+
** パッケージ ‘xml2’ の解凍および MD5 サムの検証に成功しました
|
142
|
+
|
143
|
+
Found pkg-config cflags and libs!
|
144
|
+
|
145
|
+
Using PKG_CFLAGS=-I/usr/include/libxml2
|
146
|
+
|
147
|
+
Using PKG_LIBS=-L/usr/lib -lxml2 -lz -lpthread -licucore -lm
|
148
|
+
|
149
|
+
------------------------- ANTICONF ERROR ---------------------------
|
150
|
+
|
151
|
+
Configuration failed because libxml-2.0 was not found. Try installing:
|
152
|
+
|
153
|
+
* deb: libxml2-dev (Debian, Ubuntu, etc)
|
154
|
+
|
155
|
+
* rpm: libxml2-devel (Fedora, CentOS, RHEL)
|
156
|
+
|
157
|
+
* csw: libxml2_dev (Solaris)
|
158
|
+
|
159
|
+
If libxml-2.0 is already installed, check that 'pkg-config' is in your
|
160
|
+
|
161
|
+
PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config
|
162
|
+
|
163
|
+
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
|
164
|
+
|
165
|
+
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
|
166
|
+
|
167
|
+
--------------------------------------------------------------------
|
168
|
+
|
169
|
+
ERROR: configuration failed for package ‘xml2’
|
170
|
+
|
171
|
+
* removing ‘/usr/local/lib/R/3.4/site-library/xml2’
|
172
|
+
|
173
|
+
Warning in install.packages :
|
174
|
+
|
175
|
+
installation of package ‘xml2’ had non-zero exit status
|
176
|
+
|
177
|
+
ERROR: dependency ‘xml2’ is not available for package ‘tm’
|
178
|
+
|
179
|
+
* removing ‘/usr/local/lib/R/3.4/site-library/tm’
|
180
|
+
|
181
|
+
Warning in install.packages :
|
182
|
+
|
183
|
+
installation of package ‘tm’ had non-zero exit status
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
The downloaded source packages are in
|
188
|
+
|
189
|
+
‘/private/var/folders/tr/0dstc08s6l33fy29c6myjls40000gn/T/Rtmp8ki6X8/downloaded_packages’
|
190
|
+
|
191
|
+
```
|