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
TokyoR116_BeginnersSession1_環境構築
Search
yu_sekiya
January 24, 2025
Programming
0
80
TokyoR116_BeginnersSession1_環境構築
TokyoR#116の初心者セッション1環境構築の資料です。
https://tokyor.connpass.com/event/341862/
yu_sekiya
January 24, 2025
Tweet
Share
More Decks by yu_sekiya
See All by yu_sekiya
TokyoR#114 shiny+DT超(ザックリ)入門
kotatyamtema
0
75
TokyoR#113 bignners session2 Visualization
kotatyamtema
0
75
TokyoR #112 Beginners' Session2 data handing
kotatyamtema
0
79
TokyoR #111 Beginners' Session1 data handing
kotatyamtema
0
58
TokyoR#95 bignners session2 Visualization
kotatyamtema
0
53
TokyoR#102 bignners session2
kotatyamtema
0
62
TokyoR #110 Beginners' Session1
kotatyamtema
0
200
TokyoR #108 Beginners' Session1
kotatyamtema
0
200
TokyoR #106 Beginners' Session1
kotatyamtema
0
280
Other Decks in Programming
See All in Programming
Simple組み合わせ村から大都会Railsにやってきた俺は / Coming to Rails from the Simple
moznion
3
3.4k
asdf-ecspresso作って 友達が増えた話 / Fujiwara Tech Conference 2025
koluku
0
1.5k
Запуск 1С:УХ в крупном энтерпрайзе: мечта и реальность ПМа
lamodatech
0
970
shadcn/uiを使ってReactでの開発を加速させよう!
lef237
0
350
最近のVS Codeで気になるニュース 2025/01
74th
1
220
Alba: Why, How and What's So Interesting
okuramasafumi
0
230
Amazon Nova Reelの可能性
hideg
0
240
2025.01.17_Sansan × DMM.swift
riofujimon
2
630
ISUCON14公式反省会LT: 社内ISUCONの話
astj
PRO
0
130
はてなにおけるfujiwara-wareの活用やecspressoのCI/CD構成 / Fujiwara Tech Conference 2025
cohalz
3
3k
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
6
1.5k
CNCF Project の作者が考えている OSS の運営
utam0k
5
550
Featured
See All Featured
How GitHub (no longer) Works
holman
312
140k
Agile that works and the tools we love
rasmusluckow
328
21k
Statistics for Hackers
jakevdp
797
220k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
We Have a Design System, Now What?
morganepeng
51
7.4k
Rails Girls Zürich Keynote
gr2m
94
13k
Designing Experiences People Love
moore
139
23k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
Making the Leap to Tech Lead
cromwellryan
133
9k
Being A Developer After 40
akosma
89
590k
Transcript
ॳ৺ऀηογϣϯ $PO fi HVSJOH3&OWJSPONFOU 5PLZP3 !LPUBUZBNUFNB
ࣗݾհ 5XJUUFS*%!LPUBUZBNUFNB େֶͰͷઐߦಈੜଶֶ ཱҊdั֫d࣮ݧdੳ·ͰϫϯΦϖ ࠓ·Ͱ٬ઌ΅ͬͪੳˠΞύϨϧ௨ൢձࣾ ݱࡏҩྍݕࠪձࣾͷ3ˍ%෦ 3ྺա͔͗ͨʁӬԕͷॳ৺ऀ ۙگ"84ͱ4IJOZ"QQ͔͍ͬͯ͠͡ͳ͍ σʔλੳ͕͍ͨ͠ σʔλੳ͕͍ͨ͠
σʔλੳ͕͍ͨ͠
త 3Λ͏ͨΊͷڥઃఆ͕ Ͱ͖ΔΑ͏ʹ͢Δ 3Λշదʹ͏ઃఆ͕ Ͱ͖ΔΑ͏ʹ͢Δ
ϓϩάϥϜݴޠ*%&ͱ 334UVEJPͱ ɹΠϯετʔϧํ๏ 3ͷڥͱσΟϨΫτϦͷؔ ઈରύεͱ૬ରύε
QSPKFDUͱ σʔλίʔυͷཧͱ%JSFDUPSZͷߏ 3ͷػೳ֦ு ɹQBDLBHFͷΠϯετʔϧͱཧ ύοέʔδʹ͋Δσʔλͷݺͼग़͠ .&/6
ϓϩάϥϜݴޠ*%&ͱ ϓϩάϥϜݴޠͱɿ ίϯϐϡʔλʹҙͷಈ࡞Λͤ͞Δ໋ྩΛॻͨ͘Ίͷݴޠ &Y3 1ZUIPO 3VCZFUD *%& ౷߹։ൃڥ ͱɿ ϓϩάϥϜΛͬͯ։ൃ͕͍͢͠Α͏ʹ࡞ΒΕͨڥ
&Y34UVEJP +VQJUFS/PUFCPPLFUD *%& ౷߹։ൃڥ ϓϩάϥϜݴޠ
334UVEJPͱ 3ͱɿ ɹ౷ܭֶͷͨΊʹಛԽͨ͠ϓϩάϥϜ ɹˠσʔλಡΈࠐΈʙղੳʙΞϓϦ࡞·ͰҰ௨Γ؆୯ʹͰ͖Δ 34UVEJPͱɿ ɹ1PTJU͕ࣾఏڙ͢Δ3ʹಛԽͨ͠*%& ౷߹։ൃڥ ɹ3NBSLEPXO4IJOZɺ(JUɺ%8)ͱͷ࿈ܞ͕εϜʔζʹ ɹίʔσΟϯάதͷαδΣετิػೳ͕ॆ࣮
34UVEJP 3
334UVEJPͱ 3ຊମͷΠϯετʔϧɿ $3"/ $PNQSFIFOTJWF3"SDIJWF/FUXPSL ɾ$3"/ͱɿެࣜͷຊମٴͼύοέʔδ৴༻8FCαΠτ ɹIUUQTDSBOSQSPKFDUPSHɹ ɾ.BDڥͷ߹IPNFCSFXͰΠϯετʔϧՄ ɹIPNFCSFXͷ)1 IUUQTCSFXTIJOEFY@KB
34UVEJPͷΠϯετʔϧɿ ɾQPTJUࣾͷ)1͔ΒΠϯετʔϥΛμϯϩʔυ ɹ IUUQTQPTJUDPEPXOMPBESTUVEJPEFTLUPQ ɾ.BDڥͷ߹IPNFCSFXDBTLͰΠϯετʔϧՄ ҙɿ3ຊମˠ34UVEJPͷॱʹΠϯετʔϧ͢Δ͜ͱ
334UVEJPͱ εΫϦϓτΛॻ͘ ࣮ࢪ݁Ռͷग़ྗ ڥʹ͋ΔσʔλͳͲΛදࣔ ˠλϒͰදࣔΛΓସ͑ Πϯετʔϧ͞Εͨ 1BDLBHFΛදࣔ ˠλϒͰදࣔΛΓସ͑ ࠓͷQSPKFDU໊Λදࣔ 34UVEJPͷΠϝʔδ
34UVEJP4FSWFS άϧʔϓͰ͏ղੳڥΛ࡞Γ͍ͨ߹ 34UVEJP4FSWFS ɾ-JOVYܥͷ04Λͬͨαʔόʹߏங͠ɺෳਓͰར༻Ͱ͖Δղੳ ڥ ˠղੳऀ͕ڥߏங͠ͳͯ͘ྑ͍ ˠαʔόͷεϖοΫʹΑͬͯϩʔΧϧ1$ΑΓύϫϑϧ ˠωοτ͑͞௨͍ͯ͡ΕɺجຊతʹͲ͔͜ΒͰղੳͰ͖Δ 34UVEJP4FSWFSͷߏஙɿ ɾ34UVEJPͷ)1͔Βαʔόͷ04ʹ߹ΘͤͨΠϯετʔϥΛμϯ
ϩʔυ IUUQTQPTJUDPEPXOMPBESTUVEJPTFSWFS ɾ3 SCBTF ͷΠϯετʔϧ ɾ34UVEJPTFSWFSͷΠϯετʔϧ
ཧऀݖݶͳ͠Ͱ͏ํ๏ ཧऀݖݶ͕ͳ͍ڥʹΠϯετʔϧ͢Δ߹ʢ8JOEPXTݶఆʣ 3 ɾΠϯετʔϧઌͷબ࣌ʹݖݶ͕ඞཁͳ͍σΟϨΫτϦΛબͿ ҙɿQBDLBHFͳͲͷύε͕௨ৗͱҟͳΔ߹͕͋ΔͷͰ֬ೝ
ཧऀݖݶͳ͠Ͱ͏ํ๏ ཧऀݖݶ͕ͳ͍ڥʹΠϯετʔϧ͢Δ߹ʢ8JOEPXTݶఆʣ 34UVEJP ɾ1PTJUࣾͷ)1ʢIUUQTQPTJUDPEPXOMPBESTUVEJPEFTLUPQʣͷ தஈʹ[JQϑΝΠϧ͕͋ΔͷͰҙͷσΟϨΫτϦͰղౚ͢Δ ҙɿ3ͷଓΛ֬ೝ͢Δ͜ͱʢHMPCBMUPPMT͔Β֬ೝ
ཧऀݖݶͳ͠Ͱ͏ํ๏ ཧऀݖݶ͕ͳ͍ڥʹΠϯετʔϧ͢Δ߹ʢ8JOEPXTݶఆʣ 34UVEJP ɾ1PTJUࣾͷ)1ʢIUUQTQPTJUDPEPXOMPBESTUVEJPEFTLUPQʣ ͷதஈʹ[JQϑΝΠϧ͕͋ΔͷͰҙͷσΟϨΫτϦͰղౚ͢Δ ҙɿ3ͷଓΛ֬ೝ͢Δ͜ͱʢHMPCBMUPPMT͔Β֬ೝʣ
3ͷڥͱσ ΟϨΫτϦͷؔ 1$ϝϞϦͷҰ෦ΛUFNQPSBSZͳϝϞϦͱͯ͠༻ ˠ3Λऴྃ͢Δͱফ͑Δ ˠ3Ͱ࣮ߦͨ݁͠ՌΛ3ऴྃޙอ͢ΔʹSETDTWͳͲͷ ɹ1$্ͷΦϒδΣΫτͱͯ͠อଘ͓ͯ͘͜͠ͱ͕ඞཁ ΦϒδΣΫτͷอଘઌʹҙͷσΟϨΫτϦΛ ࡞ۀ༻σ ΟϨΫτϦ 8PSLJOH%JSFDUPSZ8%
ͱͯ͠ඥ͚ ˠ8%͕εΫϦϓτϑΝΠϧͷอଘσʔλͷ૬ରύεͷى ˠݱࡏͷ8%zHFUXE zͰ֬ೝ
3ڥͱ8%ͷؔͷΠϝʔδ 3ͷڥͱσ ΟϨΫτϦͷؔ 3ڥ 1$ڥ εΫϦϓτϑΝΠϧ σʔλͳͲͷΓऔΓ ҙͷσΟϨΫτϦʢ8%ʣͱ ؔ࿈͚ 8PSLJOH%JSFDUPSZ8%
ˠ૬ରύεͷى
ύεͱɿ తͷϑΥϧμϑΝΠϧͷอଘॴΛࣔ͢ॅॴͷΑ͏ͳͷ ઈରύεͱɿ ϧʔτσΟϨΫτϦ $% ͔Βهड़ͨ͠ύε ૬ରύεͱɿ 8PSLJOH%JSFDUPSZ 8% Λىʹهड़ͨ͠ύε
ˠ8%ΑΓઌͷύεΛॻ͖ɺͦͷલʹzzΛ͚ͭΔ ྫɿຊࠃɹ˘˘ݝɹʓʓࢢɹººொɹɾɾɾ ྫɿ$ !!!!ʝʝ3NE ྫɿʓʓࢢɹººொɹɾɾɾ ྫɿʝʝ3NE ઈରύεͱ૬ରύε
QSPKFDUͱ 34UVEJPͷQSPKFDUͱɿ σΟϨΫτϦͱͷඥ͚ʢ8%ʣɺ3ڥͳͲΛ·ͱΊΔΈ ˠQSPKFDUΛઃఆ͢Δ͜ͱͰղੳڥͷΓସ͕͑༰қʹ ˠෳͷղੳΛಉ࣌ʹ࣮ߦ͍ͯ͠Δͱඇৗʹศར ˠ(JUͱͷ࿈ܞ͕εϜʔζʹ 3ڥ 1$ڥ QSPKFDU QSPKFDU
QSPKFDUͷઃఆํ๏ ৽͍͠ϑΥϧμΛ࡞ͬͯ8%ʹ͢Δ ࠓ͋ΔϑΥϧμΛ8%ʹ͢Δ ӈ্ʹ͋Δ1SPKFDUΛΫϦοΫ ˠ/FX1SPKFDUΛબ (JUIVC͔ΒΫϩʔϯͯ͘͠Δ ˎࠓճͷର֎
QSPKFDUͷઃఆํ๏ ৽͍͠ϑΥϧμΛ࡞ͬͯ8%ʹ͢Δ ࠓ͋ΔϑΥϧμΛ8%ʹ͢Δ 8%ʹ͢ΔϑΥϧμΛબ 8%ͷ໊લ QSPKFDU໊ 8%Λஔ͘ϑΥϧμΛબ ✔ ✔ QSPKFDUͰࢦఆͨ͠8%ʹ
<QSPKFDU໊3QSPK>ͱ͍͏ ϑΝΠϧ͕Ͱ͖͍ͯΕ ઃఆྃ
σʔλίʔυͷཧͱ%JSFDUPSZͷߏ QSPKFDUͷσΟϨΫτϦͷதΛͲ͏ߏங͢Δ͔ ˠσʔλίʔυͷཧͷ͢͠͞ͱ ɹσΟϨΫτϦͷߏ΄΅Πίʔϧ ˠϓϩδΣΫτͷछྨ͝ͱʹɺܾ·ͬͨߏʹ͢Δ Կ͕Ͳ͜ʹ͋Δͷ͔ଞͷϝϯόʔকདྷͷࣗʹ͔Γ ͘͢͢Δ ܾ·ͬͨܗΛ४උ͓ͯ͘͠ͱ୳ͨ͠ΓΉ͜ͱ͕ݮΔ
ࢀরɿ IUUQTTXDBSQFOUSZKBHJUIVCJPSOPWJDFHBQNJOEFSKB@FQJTPEFTQSPKFDU JOUSPJOEFYIUNM IUUQTRJJUBDPN4IVOUBSP@4BUPJUFNTEEEG
σʔλίʔυͷཧͱ%JSFDUPSZͷߏ QSPKFDU SBXEBUBDTW NBTUFSDTW UFTU3 UFTU3 ຊ൪3 ຊ൪3 ຊ൪3 QSPKFDU
JOQVU EBUB NBTUFS NJEEMF PVUQVU GVODUJPO 3' HMN 3' HMN ݟ͔͘͢Γ͍͢ߏͱ໊લʹ IUUQTXXXPSFJMMZDPKQCPPLT
EJSFDUPSZ fi MFཧͷؔ ໊ؔ ಈ࡞ HFUXE ݱࡏͷσΟϨΫτϦͷύεΛऔಘ TFUXE lQBUIz σΟϨΫτϦͷҠಈ
EJSDSFBUF lQBUIOBNFz SFDVSTJWF σΟϨΫτϦͷ࡞ MJTU fi MFT lQBUIz SFDVSTJWF GVMMOBNF σΟϨΫτϦͷϑΝΠϧύεͷऔಘ fi MFSFNPWF lQBUIOBNFz ϑΝΠϧͷআ fi MFSFOBNF GSPN UP ϑΝΠϧ໊ͷมߋ SFDVSTJWF536&'"-4&ɺ֊ߏΛऔಘ͢Δ͔Ͳ͏͔ GVMMOBNF536&'"-4&ɺઈରύεͰऔಘ͢Δ͔Ͳ͏͔ ࢀরɿ IUUQTXXXLBSBEBHPPEOFUBOBMZUJDTSS IUUQTRJJUBDPNPLJZVLJJUFNTFCFFCGD
3ͷػೳ֦ு 3ͷػೳΛ֦ு͢ΔͨΊͷϓϩάϥϜɿQBDLBHF lQBDLBHFzΛՃ͢Δ͜ͱͰ؆୯ʹػೳ֦ு͕Ͱ͖Δ ੈքதͰ։ൃ͞Ε͍ͯͯศརͳख๏͕͙͑͢Δ σϞ࣮ߦͷͨΊͷαϯϓϧσʔλ͑Δ 3ެࣜͷQBDLBHFϨϙδτϦʢ౷ݚͷNJSSPS෮ؼ͠ͳ͍ΜͰ͔͢Ͷʜʣ $3"/ɿIUUQTGUQZ[ZBNBHBUBVBDKQQVCDSBO
όΠΦΠϯϑΥؔ࿈ͷϨϙδτϦ #JPDPOEVDUPSIUUQTXXXCJPDPOEVDUPSPSH HJUIVCʹެ։͞Ε͍ͯΔݸਓ࡞QBDLBHF ͪ͜ΒࣗݾͰ
QBDLBHFͷՃ QBDLBHFͷՃํ๏ 34UVEJPͷ1BDLBHFTλϒΛ͏ 3FQPTJUPSZ $3"/ ʹνΣοΫ Πϯετʔϧ͍ͨ͠QBDLBHF໊Λೖྗ
JOTUBMMΛԡ͢ νΣοΫΛ ֎͞ͳ͍͜ͱ
QBDLBHFͷՃ QBDLBHFͷՃํ๏ JOTUBMMQBDLBHFؔΛࣗͰॻ͘ ෳΠϯετʔϧ͢Δ࣌D ͰғΉ ґଘQBDLBHFͷ͏ͪ4VHHFTUT·ͰΠϯετʔϧ͢Δ࣌ lEFQFOEFODJTF536&zΛՃ
&YBNQMF JOTUBMMQBLDBHFT D lSFBESz lEBUBUBCMFz EFQFOEFODJFT536& ࢀর IUUQTTUBUTCJPQBQZSVTKQSCBTJDQBDLBHFIUNM
QBDLBHFͷݺͼग़͠ ͏࣌ʹlMJCSBSZ zPSlSFRVJSF zͰڥʹݺͼग़͔͢ QBDLBHFGVODJPOͰ͏ MJCSBSZ EQMZS PSSFRVJSF EQMZS
EQMZSTFMFDU ɾԿ͕ҧ͏͔ʁ MJCSBSZڥʹΞλον͍ͯ͠Δ͕ͰΞλον͍ͯ͠ͳ͍ ˠෳͷQBDLBHFΛΞλονͨ࣌͠ʹ໊͕͔ؔͿΔͱલʹ Ξλονͨ͠QBDLBHFͷؔΛϚεΫͯ͠͠·͏ ˠ໊લ͕͔ͿΔPSͲͷQBDLBHFͷ͔ؔ໌֬ʹ͢Δ߹ ͰؔΛݺͼग़͢ํ๏͕༗ޮ ࢀরIUUQXIBOMZ[OFXTDPN3FOWJSPONFOUTIUNM IUUQTOPUDIBJOFEIBUFOBCMPHDPNFOUSZɹ
QBMNFSQFOHVJOTύοέʔδ͔ΒlQFOHVJOTzσʔλΛݺͼग़͢ IUUQTBMMJTPOIPSTUHJUIVCJPQBMNFSQFOHVJOT ## packageͷΠϯετʔϧ install.packages(palmerpenguins, dependencies = TRUE)) ## packageͷݺͼग़͠
library(palmerpenguins) ύοέʔδʹ͋Δσʔλͷݺͼग़͠ "SUXPSLCZ!BMMJTPO@IPSTU
QSPKFDUQBDLBHFͳͲղੳڥΛշదʹ͢Δํ๏͕ ͍Ζ͍Ζ͋Γ·͢ɻ ࣗͳΓͷӡ༻ํ๏ͱڥઃఆΛ͏·͘Έ߹Θͤ ͯշదͳ3ੜ׆Λա͍ͯͩ͘͝͠͞ɻ 3ͷ͍ํʹࠔͬͨΒʜ IFMQ Λ͏ $3"/ͷެࣜQEGΛಡΉ
SXBLBMBOHʹ࣭͢Δ HPPHMFઌੜͷ͓ੈʹͳΔ ࠷ޙʹ &/+0: