Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
R をインストールする / Install R
Search
Kenji Saito
PRO
November 28, 2023
Business
0
99
R をインストールする / Install R
早稲田大学大学院経営管理研究科「企業データ分析」2023 冬のオンデマンド教材 第2回で使用したスライドです。
Kenji Saito
PRO
November 28, 2023
Tweet
Share
More Decks by Kenji Saito
See All by Kenji Saito
グリーンマイニングが Bitcoin プロトコルに及ぼす影響 / Impact of Green Mining on the Bitcoin Protocol
ks91
PRO
0
18
FinTech 13-14 : Ideathon, Presentations and Conclusions
ks91
PRO
0
49
デザイン相談会 / Design Consultation
ks91
PRO
0
13
FinTech 11-12 : Cyber-Physical Society and Future of Finance
ks91
PRO
0
52
メタ自然選択と製品トレーサビリティー / Meta-Natural Selection and Product Traceability
ks91
PRO
0
8
伝統的金融に呑まれる分散型金融 / Decentralised Finance Engulfed by Traditional Finance
ks91
PRO
0
15
ウェブサービスデザイン 2 / Web Service Design 2
ks91
PRO
0
25
生成AI による論文執筆サポートの手引き(ワークショップ) / A guide to supporting dissertation writing with generative AI (workshop)
ks91
PRO
0
250
FinTech 9-10: Smart Contracts and Decentralized Finance
ks91
PRO
0
64
Other Decks in Business
See All in Business
株式会社AGEST紹介資料/AGEST Recruitment
agest_recruit
0
2.2k
会社紹介資料
ldf_tech
1
320
Theoria technologies:About Us
theoriatec2024
1
2k
都庁初!!局DX推進計画策定
tokyo_metropolitan_gov_digital_hr
0
390
サスメド株式会社 Culture Deck
susmed
0
36k
【Otegami】「月経期間のパートナーとのすれ違いを軽減する」
hinalin
0
630
株式会社kubellストレージ 会社説明資料
kubell_storage
2
250
採用ピッチ資料
beglobal_document
0
320
スタートアップのマネージャーに役立つ視座/A useful perspective for startup managers
dskst
6
1.2k
Company deck
tricera
0
470
もしドラッカーがアジャイルコーチになったら / If Drucker Were an Agile Coach
fkino
2
410
株式会社CINC 会社案内/Company introduction
cinchr
6
45k
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
A Tale of Four Properties
chriscoyier
156
23k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
Designing Experiences People Love
moore
138
23k
A designer walks into a library…
pauljervisheath
204
24k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
96
Six Lessons from altMBA
skipperchong
27
3.5k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
How GitHub (no longer) Works
holman
310
140k
Transcript
generated by Stable Diffusion XL v1.0 2023 2 R (WBS)
2023 2 R — 2023-11 – p.1/22
https://speakerdeck.com/ks91 2023 2 R — 2023-11 – p.2/22
( 20 ) 1 • 2 R • 3 4
5 6 ( ) 7 (1) 8 (2) 9 R ( ) (1) 10 R ( ) (2) 11 R ( ) (1) 12 R ( ) (2) 13 GPT-4 14 GPT-4 15 ( ) LaTeX Overleaf 8 (12/14 ) / (2 ) OK / 2023 2 R — 2023-11 – p.3/22
R ( ) ( 8 ) : GPL (GNU General
Public License) 2023 2 R — 2023-11 – p.4/22
GNU General Public License (GPL) GNU ( ) GNU’s Not
Unix . . . GNU GPL GNU ( ) 0: ( ) 1: ↑ 2: 3: 4 → (copyleft) 4 copyleft R 2023 2 R — 2023-11 – p.5/22
RStudio R Python (IDE) GPL . . . R RStudio
( ) RStudio Desktop ↑ . . . 2023 2 R — 2023-11 – p.6/22
R RStudio R Windows macOS — — Linux (Ubuntu) GPL
( ) ↑ 2023 2 R — 2023-11 – p.7/22
Windows Windows 11 ARM (macOS ) (Intel ) ARM :
Arm Ltd. mac SoC (System on a Chip) (M1∼M3) Intel : Intel 2023 2 R — 2023-11 – p.8/22
R (Windows ) . . . https://www.r-project.org/ “download R” OS
R Windows ( ) OK 2023 2 R — 2023-11 – p.9/22
RStudio Desktop (Windows ) . . . https://posit.co/download/rstudio-desktop/ “2: Install
RStudio” OS RStudio “1: Install R” R ← RStudio . . . Windows ( ) OK RStudio Choose R Installation → default 64-bit version of R OK crash reports → 2023 2 R — 2023-11 – p.10/22
Console ‘> ’ 1 > x <- c(1, 2, 3,
4, 5) # X > y <- c(5, 4, 3, 2, 1) # Y > plot(x, y) # > plot(x, y, xlim=c(0, 6), ylim=c(0, 6)) # > m <- lm(y ~ x) # x y > m # > abline(m) # ‘> ’ # R ‘<-’ ‘c( . . . )’ combine ‘xlim’ ‘ylim’ ‘lm( . . . )’ linear model ( ) ‘A ∼ B’ B A ‘abline( . . . )’ 2023 2 R — 2023-11 – p.11/22
macOS macOS Ventura 13.6.1 Apple (ARM) Apple : M1∼M3 2023
2 R — 2023-11 – p.12/22
R (macOS ) . . . https://www.r-project.org/ “download R” OS
R macOS OK 2023 2 R — 2023-11 – p.13/22
RStudio Desktop (macOS ) . . . https://posit.co/download/rstudio-desktop/ “2: Install
RStudio” OS RStudio “1: Install R” R ← RStudio . . . macOS RStudio 2023 2 R — 2023-11 – p.14/22
p.11 ‘Plots’ ‘Export’ ‘Save as Image...’ EPS (Encapsulated PostScript) EPS
L ATEX EPS macOS Skim PDF Windows (macOS ) PowerPoint (↑) . . . PDF PDF 2023 2 R — 2023-11 – p.15/22
Linux RStudio Desktop 2023 2 R — 2023-11 – p.16/22
Linux (Ubuntu) Ubuntu 22.04 ARM (macOS ) ARM (binary) :
2 (source) : ( ) (build) : 2023 2 R — 2023-11 – p.17/22
R (Ubuntu ) (1/2) . . . https://www.r-project.org/ “download R”
“Source Code for all Platforms” “∼.tar.gz” unzip tar https://docs.posit.co/resources/install-r-source/ $ sudo sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list $ sudo apt update $ sudo apt build-dep r-base $ export R_VERSION=4.3.2 2023 2 R — 2023-11 – p.18/22
R (Ubuntu ) (2/2) https://docs.posit.co/resources/install-r-source/ (tar ) $ ./configure \
--prefix=/opt/R/${R_VERSION} \ --enable-R-shlib \ --enable-memory-profiling \ --with-blas \ --with-lapack $ make $ sudo make install $ sudo ln -s /opt/R/${R_VERSION}/bin/R /usr/local/bin/R $ sudo ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/local/bin/Rscript 2023 2 R — 2023-11 – p.19/22
RStudio Desktop (Ubuntu ) ( ) https://dailies.rstudio.com/rstudio/cherry-blossom/electron/jammy-arm64/ .deb $ sudo
apt install ./ 2023 2 R — 2023-11 – p.20/22
p.11 2023 2 R — 2023-11 – p.21/22
2023 2 R — 2023-11 – p.22/22