-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
178 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
.\" -*- nroff -*- | ||
.\" This is part of the JASSPA MicroEmacs documentation files. | ||
.\" Copyright (c) 1999-2009 JASSPA (www.jasspa.com) | ||
.\" See the file "me.nrs" for copying and conditions. | ||
.\" | ||
.\" Created By : Jon Green | ||
.\" Created : Thu Jun 24 22:02:47 1999 | ||
.\" | ||
.Id $Id: m9typ033.9,v 2.6 2024/12/04 09:59:20 jon Exp $ | ||
.Im MicroEmacs filetype | ||
.so me.tni | ||
.TH r 9 | ||
.XI r - "R Language File" | ||
.SH SYNOPSIS | ||
r \- R Language File. | ||
.SH FILES | ||
.na | ||
.B hkr.emf | ||
\- R Language file hook definition | ||
.br | ||
.B r.eaf | ||
\- R language abbreviation file | ||
.ad | ||
.SH EXTENSIONS | ||
.na | ||
\fB.r\fR \- R file | ||
.ad | ||
.SH "MAGIC STRINGS" | ||
.TP | ||
\fB^#![ \\t]*/.*env[ \\t]+Rscript\fR | ||
.\" | ||
\*(mE recognizes the magic string on the first line of the file used to locate | ||
the executable. The Rscript files may be extension-less and are still | ||
recognized. | ||
.SH DESCRIPTION | ||
The \fBR\fR file type template provides simple hilighting of Python | ||
files, the template provides minimal hilighting. | ||
.PP | ||
File recognition is performed using the standard file extension \fB.r\fR, | ||
\fB.R\fR or by the magic string. | ||
.PP | ||
It offers as well folding and support for displaying an outline of the | ||
functions of the R script for easy navigation using the | ||
.Ht item-list 3 | ||
command. Further is is possible to expand abbreviations either via short | ||
strings using the | ||
.Ht expand-abbrev-handle 3 | ||
command and visual inserting abbreviations using the mouse by the | ||
.Ht abbrev-list 3 | ||
macro. | ||
.IP "\fBFolding and Information Hiding\fR" | ||
Generic folding is enabled within the R files. The folds occur about | ||
the \fBfunction\fR keywords located on the left-hand margin at the beginning | ||
of the line if the smaller-minus assignment operator is used. | ||
The following commands are supported to show and hide the function bodies. | ||
.Ht collapse-all 3 | ||
(un)folds all regions in the file, | ||
.Ht collapse-current 3 | ||
(un)folds the current region. | ||
.IP "\fBList Items\fR" | ||
Item listing is available and the key constructs of the file may be listed in | ||
the \fIitem-list\fR. | ||
.IP "\fBAbbreviations\fR" | ||
The installation comes with a default abbreviation file for R code editing | ||
which can be used by writing short abbreviations like "\fBmain\fR" | ||
for a default Rscript application outline,"\fBfor\fR", | ||
"\fBif\fR" or "\fBfun\fR" - for a R function - and then pressing the | ||
key-binding for the | ||
.Ht expand-abbrev-handle 3 | ||
command. The list of abbreviations can be used interactively in the GUI | ||
version of \*(mE using the | ||
.Ht abbrev-list 3 | ||
command. | ||
.IP "\fBShort Cuts\fR" | ||
The short cut keys used within the buffer are:- | ||
.IP | ||
\fB\*cc \*cc\fR \- Comment out the current line. | ||
.br | ||
\fB\*cc \*cd\fR \- Uncomment the current line. | ||
.br | ||
\fB\*cc \*ce\fR \- Comment to the end of the line with stars (*). | ||
.br | ||
\fB\*a\*ci\fR \- Restyle the current region. | ||
.br | ||
\fBf2\fR \- (un)fold the current region | ||
.br | ||
\fBf3\fR \- (un)fold all regions | ||
.br | ||
\fBf6\fR \- list items | ||
.br | ||
\fB\*e f6\fR \- close list items | ||
.SH BUGS | ||
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. | ||
.SH "SEE ALSO" | ||
.na | ||
.Ht py 9 . | ||
.Ht sh 9 . | ||
.Hl "Supported File Types" FileTypes - | ||
.ad | ||
.FH | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters