動機
dplyrパッケージを使ってみたいからいんすこした。
エラーおきたw
同一ファイルが2つのパッケージから提供されて競合。
コード表示
Transaction check error:
file /usr/include/unicode/regex.h from install of libicu-devel-50.1.2-17.el7.x86_64 conflicts with file from package libicu57-devel-57.1-8.el7.x86_64
片方リム
りむる
コード表示
[oracle@centos ~]$ yum list libicu57-devel-57.1-8.el7.x86_64
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp-srv2.kddilabs.jp
* centos-qemu-ev: ftp-srv2.kddilabs.jp
* extras: ftp-srv2.kddilabs.jp
* updates: ftp-srv2.kddilabs.jp
インストール済みパッケージ
libicu57-devel.x86_64 57.1-8.el7 @okay
[oracle@centos ~]$ sudo yum remove libicu57-devel.x86_64
読み込んだプラグイン:fastestmirror, langpacks
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ libicu57-devel.x86_64 0:57.1-8.el7 を 削除
--> 依存性の処理をしています: pkgconfig(icu-uc) のパッケージ: harfbuzz-devel-1.7.5-2.el7.x86_64
--> トランザクションの確認を実行しています。
---> パッケージ harfbuzz-devel.x86_64 0:1.7.5-2.el7 を 削除
--> 依存性の処理をしています: pkgconfig(harfbuzz) のパッケージ: pango-devel-1.42.4-2.el7_6.x86_64
--> トランザクションの確認を実行しています。
---> パッケージ pango-devel.x86_64 0:1.42.4-2.el7_6 を 削除
--> 依存性の処理をしています: pango-devel >= 1.20.0-1 のパッケージ: gtk2-devel-2.24.31-1.el7.x86_64
--> 依存性の処理をしています: pkgconfig(pango) のパッケージ: gtk3-devel-3.22.30-3.el7.x86_64
--> 依存性の処理をしています: pkgconfig(pango) のパッケージ: gtk2-devel-2.24.31-1.el7.x86_64
--> 依存性の処理をしています: pkgconfig(pangocairo) のパッケージ: gtk3-devel-3.22.30-3.el7.x86_64
--> 依存性の処理をしています: pkgconfig(pangocairo) のパッケージ: gtk2-devel-2.24.31-1.el7.x86_64
--> 依存性の処理をしています: pkgconfig(pangoft2) のパッケージ: gtk3-devel-3.22.30-3.el7.x86_64
--> 依存性の処理をしています: pkgconfig(pangoft2) のパッケージ: gtk2-devel-2.24.31-1.el7.x86_64
--> トランザクションの確認を実行しています。
---> パッケージ gtk2-devel.x86_64 0:2.24.31-1.el7 を 削除
---> パッケージ gtk3-devel.x86_64 0:3.22.30-3.el7 を 削除
--> 依存性解決を終了しました。
依存性を解決しました
===================================================================================================================================================================================================================
Package アーキテクチャー バージョン リポジトリー 容量
===================================================================================================================================================================================================================
削除中:
libicu57-devel x86_64 57.1-8.el7 @okay 5.1 M
依存性関連での削除をします:
gtk2-devel x86_64 2.24.31-1.el7 @base 22 M
gtk3-devel x86_64 3.22.30-3.el7 @base 30 M
harfbuzz-devel x86_64 1.7.5-2.el7 @base 1.5 M
pango-devel x86_64 1.42.4-2.el7_6 @updates 3.2 M
トランザクションの要約
===================================================================================================================================================================================================================
削除 1 パッケージ (+4 個の依存関係のパッケージ)
インストール容量: 61 M
上記の処理を行います。よろしいでしょうか? [y/N]y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
削除中 : gtk2-devel-2.24.31-1.el7.x86_64 1/5
削除中 : gtk3-devel-3.22.30-3.el7.x86_64 2/5
削除中 : pango-devel-1.42.4-2.el7_6.x86_64 3/5
削除中 : harfbuzz-devel-1.7.5-2.el7.x86_64 4/5
削除中 : libicu57-devel-57.1-8.el7.x86_64 5/5
検証中 : gtk3-devel-3.22.30-3.el7.x86_64 1/5
検証中 : harfbuzz-devel-1.7.5-2.el7.x86_64 2/5
検証中 : pango-devel-1.42.4-2.el7_6.x86_64 3/5
検証中 : libicu57-devel-57.1-8.el7.x86_64 4/5
検証中 : gtk2-devel-2.24.31-1.el7.x86_64 5/5
削除しました:
libicu57-devel.x86_64 0:57.1-8.el7
依存性の削除をしました:
gtk2-devel.x86_64 0:2.24.31-1.el7 gtk3-devel.x86_64 0:3.22.30-3.el7 harfbuzz-devel.x86_64 0:1.7.5-2.el7 pango-devel.x86_64 0:1.42.4-2.el7_6
完了しました!
再いんすこ
コード表示
[oracle@centos ~]$ sudo yum install -y R --enablerepo=epel
いんすこ確認
コード表示
[oracle@centos ~]$ sudo yum install -y R --enablerepo=epel
[oracle@centos ~]$ R --version
R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.
[oracle@centos ~]$ which R
/usr/bin/R
動作確認
インタラクティブモードの終了はCTRL+Dを2回。
コード表示
[oracle@centos ~]$ R
R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
R は、自由なソフトウェアであり、「完全に無保証」です。
一定の条件に従えば、自由にこれを再配布することができます。
配布条件の詳細に関しては、'license()' あるいは 'licence()' と入力してください。
R は多くの貢献者による共同プロジェクトです。
詳しくは 'contributors()' と入力してください。
また、R や R のパッケージを出版物で引用する際の形式については
'citation()' と入力してください。
'demo()' と入力すればデモをみることができます。
'help()' とすればオンラインヘルプが出ます。
'help.start()' で HTML ブラウザによるヘルプがみられます。
'q()' と入力すれば R を終了します。
> x<-data.frame(Titanic)
> x
Class Sex Age Survived Freq
1 1st Male Child No 0
2 2nd Male Child No 0
3 3rd Male Child No 35
4 Crew Male Child No 0
5 1st Female Child No 0
6 2nd Female Child No 0
7 3rd Female Child No 17
8 Crew Female Child No 0
9 1st Male Adult No 118
10 2nd Male Adult No 154
11 3rd Male Adult No 387
12 Crew Male Adult No 670
13 1st Female Adult No 4
14 2nd Female Adult No 13
15 3rd Female Adult No 89
16 Crew Female Adult No 3
17 1st Male Child Yes 5
18 2nd Male Child Yes 11
19 3rd Male Child Yes 13
20 Crew Male Child Yes 0
21 1st Female Child Yes 1
22 2nd Female Child Yes 13
23 3rd Female Child Yes 14
24 Crew Female Child Yes 0
25 1st Male Adult Yes 57
26 2nd Male Adult Yes 14
27 3rd Male Adult Yes 75
28 Crew Male Adult Yes 192
29 1st Female Adult Yes 140
30 2nd Female Adult Yes 80
31 3rd Female Adult Yes 76
32 Crew Female Adult Yes 20
> summary(x)
Class Sex Age Survived Freq
1st :8 Male :16 Child:16 No :16 Min. : 0.00
2nd :8 Female:16 Adult:16 Yes:16 1st Qu.: 0.75
3rd :8 Median : 13.50
Crew:8 Mean : 68.78
3rd Qu.: 77.00
Max. :670.00
大量データ扱う時のレスポンスとか気になる
sqlみたいで楽しい。楽でいいな。