https://github.com/chainsawriot/essaprimer
Emacs Speaks Statistics: A Primer
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.0%) to scientific vocabulary
Repository
Emacs Speaks Statistics: A Primer
Basic Info
- Host: GitHub
- Owner: chainsawriot
- Default Branch: master
- Size: 1.95 KB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
essaprimer
Emacs Speaks Statistics: A Primer
This is going to be a tl;dr version of the ESS Manual. As with all the knowledge about emacs, there are always not beginner-friendly and not discoverable. This blog-like primer is showing how one can quickly make use of ESS for R development. [^1] Also, I am going to cover only 20% of the features that you might use in 80% of the time. If you want to know more later, please consult the ESS manual.
I am going to assume you know how to use emacs in general. If you don't know, please go through the build-in emacs tutorial.
Basic
Inferior R session
You can invoke an inferior R session with either M-x R RET or evaluate your code. You can switch to the inferior R session with either M-x o or C-c C-z.
Sending code to the ESS process
There are different ways to evaluate your R code in an inferior R session. In the ESS manual, it is confusingly called "sending code to the ESS process".
Probably the three ways that you will use very often are:
C-c C-j(ess-eval-line): Evaluate the current lineC-c C-r(ess-eval-region): Evaluate the current region (a fancy way to say selected region)C-c C-f(ess-eval-function): Evaluate the current function
There are also the "and go" version. They have the same C-c starting but with a M ending, i.e. ess-eval-line-and-go is C-c M-j. The only difference is that the "and go" version evaluates your R code and then switches point to the inferior R session. It is like a shortcut of C-c C-j and then C-x o.
Navigation
There are a few navigation key strokes.
C-M h(ess-mark-function): Mark (select) the current function, other function-related key strokes areC-M a(move to the beginning) andC-M e(move to the end).
Debugging
In R, You can flag a function for debuggin with debug(yourownfunction) and then use undebug to unflag it. If you don't know how to use these debug facilities, please read this section of R Language Definition.
You can do that quickly with the key stroke C-c C-t d and C-c C-t u.
Setting a break point in a function with C-c C-t b and unset it with C-c C-t k.
Transcripting
[^1]: Actually, I write to learn.
Owner
- Login: chainsawriot
- Kind: user
- Location: Germany
- Company: @gesistsa
- Website: http://www.chainsawriot.com
- Repositories: 241
- Profile: https://github.com/chainsawriot
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0