swcarpentry / r-novice-inflammation

Programming with R
http://swcarpentry.github.io/r-novice-inflammation/
Other
161 stars 394 forks source link

Add shortcuts for RStudio to "all" Intro to R episodes/lessons #527

Open laureltree opened 2 years ago

laureltree commented 2 years ago

Kia ora,

I noticed that some of the "Intro to R" sessions provide (some) of the shortcuts that make working in RStudio so much faster, but not all of them do this.


Mentions some shortcuts:

E.g. in https://datacarpentry.org/R-ecology-lesson/01-intro-to-r.html it says:

In RStudio, typing Alt + - (push Alt at the same time as the - key) will write <- in a single keystroke in a PC, while typing Option + - (push Option at the same time as the - key) does the same in a Mac.

I suggest to add at least the "save script" (Ctrl + S) and "run code" shortcut (Ctrl + Enter).


Mentions no shortcuts:

E.g. other lessons such as http://swcarpentry.github.io/r-novice-inflammation/01-starting-with-data/index.html:

Here, no shortcuts are mentioned at all.


I have been asked for shortcuts in my R workshops regularly and repeatedly, so I believe adding these (maybe even as a noticeable box) to the beginning of each "Intro to R"-related episode would be useful.

What do others think?

Thanks, laureltree

HaoZeke commented 2 years ago

Hi @laureltree, that would definitely be a good idea, would you be able to open a PR for the same?