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 をインストールする / Installing R
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Kenji Saito
PRO
November 28, 2024
Technology
130
0
Share
R をインストールする / Installing R
早稲田大学大学院経営管理研究科「企業データ分析」2024 冬のオンデマンド教材 第2回で使用したスライドです。
Kenji Saito
PRO
November 28, 2024
More Decks by Kenji Saito
See All by Kenji Saito
ウェブとイノベーション / The Web and Innovation
ks91
PRO
0
14
試作とデモンストレーション / Prototyping and Demonstrations
ks91
PRO
0
47
アカデミーキャンプ2026GW「前倒し!ウチらとヤツらの自由研究」DAY 4 / Academy Camp 2026 GW "Bringing It Forward! Our and Their Free Research Projects" DAY 4
ks91
PRO
0
30
アカデミーキャンプ2026GW「前倒し!ウチらとヤツらの自由研究」DAY 3 / Academy Camp 2026 GW "Bringing It Forward! Our and Their Free Research Projects" DAY 3
ks91
PRO
0
47
アカデミーキャンプ2026GW「前倒し!ウチらとヤツらの自由研究」DAY 2 / Academy Camp 2026 GW "Bringing It Forward! Our and Their Free Research Projects" DAY 2
ks91
PRO
0
56
アカデミーキャンプ2026GW「前倒し!ウチらとヤツらの自由研究」DAY 1 / Academy Camp 2026 GW "Bringing It Forward! Our and Their Free Research Projects" DAY 1
ks91
PRO
0
84
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
190
2026年度 生成AI を活用した論文執筆ガイド/ワークショップ / 2026 Academic Year Guide to Writing Papers Using Generative AI - Workshop
ks91
PRO
0
110
インターネットのガバナンスと応用 / Internet Governance and Applications
ks91
PRO
0
73
Other Decks in Technology
See All in Technology
Oracle Cloud Infrastructure:2026年4月度サービス・アップデート
oracle4engineer
PRO
0
240
フロントエンドの相手が変わった - AIが加わったWebの新しいインターフェース設計
azukiazusa1
23
6k
基盤を育てる 外部SaaS連携の運用
gamonges_dresscode
1
130
Oracle Exadata Database Service on Cloud@Customer X11M (ExaDB-C@C) サービス概要
oracle4engineer
PRO
2
7.9k
世界の中心でApp Runnerを叫ぶ FINAL
tsukuboshi
0
160
20260423_執筆の工夫と裏側 技術書の企画から刊行まで / From the planning to the publication of technical book
nash_efp
3
690
FessのAI検索モード:検索システムとLLMへの取り組み
marevol
0
160
Angular Architecture Revisited Modernizing Angular Architectural Patterns
rainerhahnekamp
0
110
社内エンジニア勉強会の醍醐味と苦しみ/tamadev
nishiuma
0
270
小説執筆のハーネスエンジニアリング
yoshitetsu
0
890
知ってた?JavaScriptの"正しさ"を検証するテストが5万以上もあること(Test262)
riyaamemiya
0
110
要件定義の精度を高めるための型と生成AIの活用 / Using Types and Generative AI to Improve the Accuracy of Requirements Definition
haru860
0
260
Featured
See All Featured
HDC tutorial
michielstock
2
650
Automating Front-end Workflow
addyosmani
1370
200k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
The Limits of Empathy - UXLibs8
cassininazir
1
320
Marketing to machines
jonoalderson
1
5.2k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
120
Testing 201, or: Great Expectations
jmmastey
46
8.1k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
Between Models and Reality
mayunak
3
270
Transcript
Boxes and whiskers — generated by Stable Diffusion XL v1.0
2024 2 R (WBS) 2024 2 R — 2024-11 – p.1/22
https://speakerdeck.com/ks91/collections/corporate-data-analysis-2024-winter 2024 2 R — 2024-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/16 ) / (2 ) OK / 2024 2 R — 2024-11 – p.3/22
R ( ) ( 8 ) : GPL (GNU General
Public License) 2024 2 R — 2024-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 2024 2 R — 2024-11 – p.5/22
RStudio R Python (IDE) GPL . . . ( :
^^;) R RStudio ( ) RStudio Desktop ↑ . . . 2024 2 R — 2024-11 – p.6/22
R RStudio R Windows macOS — — Linux (Ubuntu) GPL
( ) ↑ 2024 2 R — 2024-11 – p.7/22
Windows Windows 11 ARM (macOS ) (Intel ) ARM :
Arm Ltd. mac SoC (System on a Chip) (M1∼M4) Intel : Intel 2024 2 R — 2024-11 – p.8/22
R (Windows ) . . . https://www.r-project.org/ “download R” OS
R Windows ( ) OK 2024 2 R — 2024-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 → 2024 2 R — 2024-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( . . . )’ 2024 2 R — 2024-11 – p.11/22
macOS macOS Ventura 13.6.1 ( Sequoia 15.1.1 ) Apple (ARM)
Apple : M1∼M4 2024 2 R — 2024-11 – p.12/22
R (macOS ) . . . https://www.r-project.org/ “download R” OS
R macOS OK 2024 2 R — 2024-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 2024 2 R — 2024-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 2024 2 R — 2024-11 – p.15/22
Linux RStudio Desktop 2024 2 R — 2024-11 – p.16/22
Linux (Ubuntu) Ubuntu 22.04 ( Ubuntu 24.04 ) ARM (macOS
) ARM (binary) : 2 (source) : ( ) (build) : 2024 2 R — 2024-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 2024 2 R — 2024-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 2024 2 R — 2024-11 – p.19/22
RStudio Desktop (Ubuntu ) ( ) https://dailies.rstudio.com/rstudio/cherry-blossom/electron/jammy-arm64/ .deb (Ubuntu 24.04
) https://dailies.rstudio.com/rstudio/cranberry-hibiscus/electron/noble-arm64/ $ sudo apt install ./ 2024 2 R — 2024-11 – p.20/22
p.11 2024 2 R — 2024-11 – p.21/22
2024 2 R — 2024-11 – p.22/22