r(9)r - R Language File.
r-doc
r-doc function
r-doc package::packagename
r-doc package::function
hkr.emf - R Language file hook and r-doc definition
r.eaf - R language abbreviation file
r.etf - R language template file
.r - R file
^#![ \t]*/.*env[ \t]+Rscript
The R macro file hook provides simple hilighting of R files, inserting abbreviations and browsing the structure of the file using item-list and folding..
File recognition is performed using the standard file extension .r, .R or by the magic string.
Abbreviations
Folding and Information Hiding
List Items
Short Cuts
C-c C-c - Comment out the current line.
C-c C-d - Uncomment the current line.
C-c C-e - Comment to the end of the line with stars (*).
A-C-i - Restyle the current region.
f2 - (un)fold the current region
f3 - (un)fold all regions
f6 - list items
esc f6 - close list items
Executing, Formatting and Linting R Code
$ R
> install.packages(c("formatR","lintr"))
r-doc macro
R help on ?
The command invokes the R help function, Rscript(1), for the R manual page entered in the message line.
Another R documentation page can be selected in the generated help page by either moving the cursor to the link and pressing return or double clicking on it with the left mouse button. MicroEmacs will then attempt to load and display the selected R manual page.
The hilighting or the item-list matches are typically extended using a file myr.emf
Functions with using the equal operator for assignments are not shown in the function outline, this should be seen as a feature which allow you to write hidden internal functions within other functions.
abbrev-list(3), c(9), collapse-all(3), collapse-current(3), compile(3), expand-abbrev-handle(3), file-exec(3), file-format(3), file-lint(3), item-list(3), restyle-buffer(3), restyle-region(3), py(9), sh(9).
(c) Copyright JASSPA 2025
Last Modified: 2025/08/28
Generated On: 2025/09/29