HRUG Lightning Talk - Atom and R
Click here to load reader
-
Upload
egoodwintx -
Category
Data & Analytics
-
view
249 -
download
0
Transcript of HRUG Lightning Talk - Atom and R
![Page 1: HRUG Lightning Talk - Atom and R](https://reader038.fdocuments.us/reader038/viewer/2022100802/5871f23f1a28ab5c348b5c43/html5/thumbnails/1.jpg)
Lightning Talks
![Page 2: HRUG Lightning Talk - Atom and R](https://reader038.fdocuments.us/reader038/viewer/2022100802/5871f23f1a28ab5c348b5c43/html5/thumbnails/2.jpg)
Stack Overflow Question
http://stackoverflow.com/questions/17499013/how-do-i-make-a-list-of-data-frames
How do I make a list of data frames and how do I access each of those data frames from the list? I can't find a simple example of this anywhere.
SO is telling me my post is too short, so I'll get the ball rolling by making a few data frames to be put in a list.
d1<-data.frame(y1<-c(1,2,3),y2<-c(4,5,6)) d2<-data.frame(y1<-c(3,2,1),y2<-c(6,5,4))
![Page 3: HRUG Lightning Talk - Atom and R](https://reader038.fdocuments.us/reader038/viewer/2022100802/5871f23f1a28ab5c348b5c43/html5/thumbnails/3.jpg)
A 10 Minute Intro to Atom
![Page 4: HRUG Lightning Talk - Atom and R](https://reader038.fdocuments.us/reader038/viewer/2022100802/5871f23f1a28ab5c348b5c43/html5/thumbnails/4.jpg)
What is Atom?• Modern, extensible editor…think emacs updated for the 21st century
• Modular package system built on Native UI web technologies (JSON, CSS, Node.js)
• Open Source, cross platform
• Runs on Chromium, so no issues with browser compatibility
• Started by GitHub, so has version control and workflow best practices built right in.
• Find out more at http://atom.io/
![Page 5: HRUG Lightning Talk - Atom and R](https://reader038.fdocuments.us/reader038/viewer/2022100802/5871f23f1a28ab5c348b5c43/html5/thumbnails/5.jpg)
Modular Package System
![Page 6: HRUG Lightning Talk - Atom and R](https://reader038.fdocuments.us/reader038/viewer/2022100802/5871f23f1a28ab5c348b5c43/html5/thumbnails/6.jpg)
Some useful R packages
• language-r syntax highlighting for R code
• r-exec send R code and commands to R shell
• terminal-plus embed a terminal as a pane on your editor
![Page 7: HRUG Lightning Talk - Atom and R](https://reader038.fdocuments.us/reader038/viewer/2022100802/5871f23f1a28ab5c348b5c43/html5/thumbnails/7.jpg)
Using Atom for R
Cmd+Enter used to send code to R.app
![Page 8: HRUG Lightning Talk - Atom and R](https://reader038.fdocuments.us/reader038/viewer/2022100802/5871f23f1a28ab5c348b5c43/html5/thumbnails/8.jpg)
Useful KeybindingsCODING • Cmd-T – quick file switch and search • Cmd-Shft-P – command palette toggle • Cmd-Shft-O – add project folder (Tree View) • Alt-Cmd-[ - fold in • Alt-Cmd-] fold out • [Tab] key for snippets (create your own snippets in snippets.cson)
VERSION CONTROL • Cmd-Alt-Z – checkout HEAD revision (undo any changes prior to commit)…goes on the
cmd-Z history stack so you can revert back • Cmd-Shft-B – all untracked and modified files in a project • Syntax highlighting in git commits • Status bar decorations for git • Alt-G O – open file on GitHub • Alt-G B – open blame file on GitHub