Overview

This section provides a brief overview of the Tinn-R project.

Quick start

Let's say you don't have time to read the full user guide just yet. That's OK, we know it is huge, and so let's just give you a few tips on how to get started:

If you have any questions we suggest you consult this user guide.

What is Tinn-R?

Tinn is a small ASCII file editor primarily intended as a better replacement for the default Notepad running under the Windows OS. The name is the recursive acronym: Tinn is not Notepad.

Tinn-R is an extension of the original Tinn editor, providing additional functionality to control R running as Rgui (in SDI mode), Rterm and JGR and a whole lot of additional resources.

Tinn-R can also be thought of as feature-rich replacement of the basic script editor provided with Rgui. It provides syntax-highlighting, code submission as a whole or line-by-line, in addition to many other useful tools to ease the writing and debugging of R code.

Both Tinn and Tinn-R are distributed under the GPL 2 license or above.

Why Tinn-R?

Do you:

If you answered YES to any of the questions above, then Tinn-R is a good option for you!

What do you get by using Tinn-R?

We are constantly on the move!

Do I have to pay for Tinn-R?

Absolutely NOT! It's free as in beer and licensed under GPL.

What was the motivation to start and maintain the Tinn-R project?

Motivation to start Tinn-R:
We could not find a GUI/Editor for R running in the Windows OS that would give us all the ease of use and flexibility we wanted. So, we started this project using an open source editor called Tinn as our initial platform.

Motivation to maintain Tinn-R:
The most difficult stage of the project was getting started: Choosing the editor, all the preliminary performance and stability tests, understanding source structure, among many other struggles. Making it to run more and more smoothly and according to our daily needs was then a natural consequence. This is all to say that the open source movement has substantially changed our lives for better. We strongly believe in making software more widely available so that more people can benefit from it. We consider Tinn-R to be our small contribution to this fantastic open source initiative.

What is the sentence we from the development team most like to hear?

Tinn-R made my life easier ... thanks for creating it.

Which tools were used to create this user guide?

That was all!

This user guide can be easily converted to the following formats: HTML, XHTML, SGML, LaTeX, Lout, UNIX man page, Wikipedia, Google Code Wiki, DokuWiki, MoinMoin, MagicPoint (mgp), and PageMaker. Just use the Tinn-R GUI/Editor to do that.

Acknowledgment

We would like to thank those who have assisted us with the Tinn-R project, either by sending suggestions or by contributing to its development.

Feedback, suggestions and bug reports

Please submit feedback to José Cláudio Faria. If you submit a bug report, please provide as much detail as possible. This includes indicating the Tinn-R version, your operating system (Windows XP, Windows 7, etc) and language (English, French, Portuguese). If the bug is related to an interface with R, please also indicate which version of R you are using, as well as whether you are running Rterm or Rgui. Ideally, please also add the content of the Tools/Results/Ini log interface since this will help us address the issue more promptly.


Basics

This section provides the basics about the Tinn-R project.

Configuration

This section provides information on Tinn-R configuration and associated applications.

Uninstall Tinn-R

Install and configure Tinn-R and R

R: basic configuration

If you have any version of Tinn-R (<= 2.2.0.2) installed:
  1. Uninstall previous versions of Tinn-R
  2. Edit the file Rprofile.site (folder etc where you R is installed) and comment (or remove) all prior configuration scripts RELATED TO TINN-R
  3. Start R
  4. install the following packages:
    1. TinnR (>= 1.0.3). TinnR package depends of Hmisc and R2HTML;
    2. install.packages("svSocket", repos="http://R-Forge.R-project.org").
  5. Close R
  6. Install the new version of Tinn-R
  7. Start Tinn-R
  8. From the Tinn-R main menu, choose the option R/Configure/Permanent (Rprofile.site). It will write the following text to the file Rprofile.site:
    ##===============================================================
    ## Tinn-R: necessary packages and functions
    ## Tinn-R: >= 2.2.0.2 with TinnR package >= 1.0.3
    ##===============================================================
    ## Set the URL of the preferred repository, below some examples:
    options(repos='http://software.rc.fas.harvard.edu/mirrors/R/') # USA
    #options(repos='http://cran.ma.imperial.ac.uk/') # UK
    #options(repos='http://brieger.esalq.usp.br/CRAN/') # Brazil
    
    library(utils)
    
    ## Check necessary packages
    necessary <- c('TinnR', 'svSocket')
    installed <- necessary %in% installed.packages()[, 'Package']
    if (length(necessary[!installed]) >=1)
      install.packages(necessary[!installed])
    
    ## Load packages
    library(TinnR)
    library(svSocket)
    
    ## Uncoment the two lines below if you want Tinn-R to always start R at start-up
    ## (Observation: check the path of Tinn-R.exe)
    #options(IDE='C:/Tinn-R/bin/Tinn-R.exe')
    #trStartIDE()
    
    ## Set options
    options(use.DDE=T)
    
    ## Start DDE
    trDDEInstall()
    
    .trPaths <- paste(paste(Sys.getenv('APPDATA'), '\\Tinn-R\\tmp\\', sep=''),
                c('', 'search.txt', 'objects.txt', 'file.r', 'selection.r', 'block.r', 'lines.r'), sep='')
    
  9. Start Rgui or Rterm from within Tinn-R,
  10. Read the content from the links below:
    • Card: to know the shortcuts related with Rterm and all others
    • What is new: to know the news.

A example of the Rprofile.site file can be obtained from SourceForge. Just download it and make changes to fit your needs.

If you have any version of Tinn-R (>= 2.2.0.2) installed and configured:
  1. Uninstall the prior version of Tinn-R 2.X.X.X
  2. Install the new version of Tinn-R
  3. Run it.
If you want to install any old version of Tinn-R (<= 2.0.0.0):

Focus control

Working with Rgui
Working with Rterm

Rterm interface and debug package

Speller installation

Inverse DVI search

Python and Txt2tags

Ruby and Deplate

We recently observed a problem when converting files with file names with an underscore. For example deplate_intro.dplt. In these cases the file conversion is completed, but Tinn-R won't open the file since it can't find it. This pattern is cause by Deplate (a ruby script) generating a file named deplate__intro.html. Observe that this file name contains a double underscore. In sum, for the time being avoid using underscores in file names when you intend to later converting through Deplate.

Keyboard shortcuts (default)

This section provides information about keyboard shortcuts.

The most commonly used shortcuts

R interface

ALT   + DOWN        : R history: down (IO)
ALT   + L           : Clear (Log)
ALT   + UP          : R history: up (IO)
CTRL  + ALT + DOWN  : IO: set focus
CTRL  + ALT + RIGHT : Log: set focus
CTRL  + ALT + UP    : Editor: set focus
CTRL  + ENTER       : Send any prior line (IO)
CTRL  + L           : Clear (IO)
SHIFT + CTRL + B    : Clear (IO and Log)

Visualization

ALT   + LEFT        : Tools: align left
ALT   + RIGHT       : Tools: align right
ALT   + V           : R resourses: visible (show/hide)
CTRL  + F8          : Tools: visible (show/hide)
CTRL  + F9          : R interface: visible (show/hide)
CTRL  + F10         : R interface: minimize
CTRL  + F11         : R interface: optimize
CTRL  + F12         : R interface: maximize
CTRL  + ALT  + V    : Tool bars: all (show/hide)
CTRL  + ALT  + K    : Special characters (show/hide)
CTRL  + ALT  + L    : Line number (show/hide)
CTRL  + TAB         : Change sequentially the active page (requires more than one)
SHIFT + CTRL + UP   : Increase font size (text within the main interface)
SHIFT + CTRL + DOWN : Decrease font size (text within the main interface)

Navigation

CTRL  + END  : End of a doc
CTRL  + HOME : Beginning of a doc
END          : End of a line
HOME         : Beginning of a line

Search/Replace and Go

CTRL  + F        : Find
F3               : Find again
SHIFT + CTRL + F : Search in files
CTRL  + R        : Replace
CTRL  + G        : Go to line

Function keys

F1  : Help on selected word (requires a running R session)
F2  : List the structure of selected objetc (requires a running R session)
F3  : Find again
F7  : Macro record
F8  : Macro play
F9  : Clear the R console (requires a running R session)
F10 : Close all graphic devices (requires a running R session)
F11 : Remove all objects (requires a running R session)
F12 : Clear all (requires a running R session)

Edition

ALT   + C        : Block comment
ALT   + N        : Block uncomment (first ocurrence)
ALT   + Z        : Block uncomment (all ocurrence)
CTRL  + ALT + C  : Block comment (LaTeX)
CTRL  + ALT + N  : Block uncomment (first ocurrence, LaTeX)
CTRL  + ALT + Z  : Block uncomment (all ocurrence, LaTeX)
CTRL  + (        : Insert (or replace) (|)
CTRL  + )        : Insert (or replace) ()
CTRL  + A        : Select all
CTRL  + C        : Copy
CTRL  + END      : End doc
CTRL  + HOME     : Beginning of a doc
CTRL  + I        : Block ident
CTRL  + T        : Delete word
CTRL  + U        : Block unident
CTRL  + V        : Paste
CTRL  + X        : Cut
CTRL  + Y        : Delete line
CTRL  + Z        : Undo
END              : End of a line
HOME             : Beginning of a line
SHIFT + CTRL + Z : Redo

Marks and go to marks

CTRL  + NUMBER[0..9]        : Go to mark (no numeric keypad)
SHIFT + CTRL + NUMBER[0..9] : Mark (no numeric keypad)

Project

CTRL  + INS        : Add current file to selected group
SHIFT + CTRL + INS : Add file(s) to selected group (with dialog)
DEL                : Delete selected group or file

R script edition

CTRL + +     : Insert ->  (numeric keypad)
CTRL + -     : Insert <-  (numeric keypad)
CTRL + *     : Insert tip (numeric keypad)
CTRL + ENTER : Send current line to R and insert a line break

Selection

CTRL  + ALT  + S : Mark block
CTRL  + ALT  + Z : Unmark block
CTRL  + ALT  + X : Unmark all
SHIFT + CTRL + C : Selection: set to column mode
SHIFT + CTRL + L : Selection: set to line mode
SHIFT + CTRL + N : Selection: set to normal mode

Compilation

CTRL  + ALT  + D       : Compilation: LaTeX to DVI (single)
CTRL  + ALT  + P       : Compilation: LaTeX to DVI (single)
SHIFT + CTRL + ALT + D : Compilation: LaTeX to DVI (bibtex)
SHIFT + CTRL + ALT + P : Compilation: LaTeX to PDF (bibtex)

Conversion and Visualization

SHIFT + CTRL + H       : Conversion: txt2tags to HTML
SHIFT + CTRL + S       : Conversion: txt2tags to Sweave
SHIFT + CTRL + T       : Conversion: txt2tags to LaTeX
SHIFT + CTRL + O       : Open current HTML files with system setup browser
SHIFT + CTRL + ALT + H : Conversion: deplate to HTML
SHIFT + CTRL + ALT + S : Conversion: deplate to Sweave
SHIFT + CTRL + ALT + T : Conversion: deplate to LaTeX

Main menu (systematically)

ALT + F : File
ALT + P : Project
ALT + E : Edit
ALT + A : Format
ALT + M : Marks
ALT + I : Insert
ALT + S : Search
ALT + O : Options
ALT + T : Tools
ALT + R : R
ALT + W : View
ALT + D : Window
ALT + B : Web
ALT + H : Help

File

CTRL  + N        : New file
CTRL  + O        : Open file
CTRL  + P        : Print
CTRL  + S        : Save file
CTRL  + W        : Close file
SHIFT + CTRL + R : Reload file
SHIFT + CTRL + W : Close all files

Format

ALT  + C        : Block comment
ALT  + N        : Block uncomment first ocurrence
ALT  + Z        : Block uncomment all ocurrence
CTRL + ALT + C  : Block comment (LaTeX)
CTRL + ALT + N  : Block uncomment first ocurrence (LaTeX)
CTRL + ALT + Z  : Block uncomment all ocurrence (LaTeX)
CTRL + ALT + H  : Word invert case
CTRL + ALT + J  : Word upper case
CTRL + ALT + K  : Word lower case
CTRL + B        : Match bracket
CTRL + I        : Block ident
CTRL + U        : Block unident

Marks

CTRL  + NUMBER[0..9]        : Go to mark (no numeric keypad)
SHIFT + CTRL + NUMBER[0..9] : Mark (no numeric keypad)
CTRL  + ALT  + S            : Mark block
CTRL  + ALT  + Z            : Unmark block
CTRL  + ALT  + X            : Unmark all

Insert

SHIFT + CTRL + I: Insert dimensional element (LaTeX)

Search

CTRL + F : Search text
CTRL + G : Go to
CTRL + R : Replace text
F3       : Search again

Options

SHIFT + CTRL + C : Selection: set to column mode
SHIFT + CTRL + L : Selection: set to line mode
SHIFT + CTRL + N : Selection: set to normal mode

Tools

SHIFT + CTRL + H       : Conversion: txt2tags to HTML
SHIFT + CTRL + S       : Conversion: txt2tags to Sweave
SHIFT + CTRL + T       : Conversion: txt2tags to LaTeX
SHIFT + CTRL + O       : Open current HTML files with system setup browser
SHIFT + CTRL + ALT + H : Conversion: deplate to HTML
SHIFT + CTRL + ALT + S : Conversion: deplate to Sweave
SHIFT + CTRL + ALT + T : Conversion: deplate to LaTeX
CTRL  + ALT  + D       : Compilation: LaTeX to DVI (single)
CTRL  + ALT  + P       : Compilation: LaTeX to DVI (single)
SHIFT + CTRL + ALT + D : Compilation: LaTeX to DVI (bibtex)
SHIFT + CTRL + ALT + P : Compilation: LaTeX to PDF (bibtex)
CTRL  + B              : Match bracket
F7                     : Macro/Record
F8                     : Macro/Play

R

ALT   + L            : Clear (Log)
CTRL  + ALT  + DOWN  : IO: set focus
CTRL  + ALT  + RIGHT : Log: set focus
CTRL  + ALT  + UP    : Editor: set focus
CTRL  + F10          : R interface: minimize
CTRL  + F11          : R interface: optimize
CTRL  + F12          : R interface: maximize
CTRL  + F9           : R interface: visible (show/hide)
CTRL  + L            : Clear (IO)
SHIFT + CTRL + B     : Clear (IO and Log)

View

ALT  + V           : R resourses: visible (show/hide)
CTRL + F9          : R interface: visible (show/hide)
CTRL + F10         : R interface: minimize
CTRL + F11         : R interface: optimize
CTRL + F12         : R interface: maximize
CTRL + ALT + UP    : Editor: set focus
CTRL + ALT + DOWN  : IO: set focus
CTRL + ALT + RIGHT : Log: set focus
CTRL + F8          : Tools: visible (show/hide)
ALT  + LEFT        : Tools: align left
ALT  + RIGHT       : Tools: align right
CTRL + ALT + V     : Tool bars: all (show/hide) 
CTRL + ALT + L     : Line number (show/hide)
CTRL + ALT + K     : Special characters (show/hide)

Call tip

CTRL + D : Possible option
CTRL + Q : Possible option

Code completion

SHIFT + CTRL + D : Possible option
SHIFT + CTRL + Q : Possible option

R explorer

CTRL  + E        : Refresh R environment
SHIFT + CTRL + E : Refresh R explorer or filter

Alphabetically

ALT + : A-Z

ALT + A     : Format
ALT + B     : Web
ALT + C     : Block comment
ALT + D     : Window
ALT + DOWN  : R history: down (IO)
ALT + E     : Edit
ALT + F     : File
ALT + H     : Help
ALT + I     : Insert
ALT + L     : Clear (Log)
ALT + LEFT  : Tools: align left
ALT + M     : Marks
ALT + N     : Block uncomment (first ocurrence)
ALT + O     : Options
ALT + P     : Project
ALT + R     : R
ALT + RIGHT : Tools: align right
ALT + S     : Search
ALT + T     : Tools
ALT + UP    : R history: up (IO)
ALT + V     : R resourses: visible (show/hide)
ALT + W     : View
ALT + Z     : Block uncomment (all ocurrence)

CTRL + : A-Z, 0-9, /, ( and )

CTRL + -            : Insert <-  (numeric keypad)
CTRL + (            : Insert (or replace) (|)
CTRL + )            : Insert (or replace) ()
CTRL + *            : Insert tip (numeric keypad)
CTRL + +            : Insert ->  (numeric keypad)
CTRL + A            : Select all
CTRL + ALT + C      : Block comment (LaTeX)
CTRL + ALT + D      : Compilation: LaTeX to DVI (single)
CTRL + ALT + DOWN   : IO: set focus
CTRL + ALT + H      : Word invert case
CTRL + ALT + J      : Word upper case
CTRL + ALT + K      : Special characters (show/hide)
CTRL + ALT + K      : Word lower case
CTRL + ALT + L      : Line number (show/hide)
CTRL + ALT + N      : Block uncomment first ocurrence (LaTeX)
CTRL + ALT + P      : Compilation: LaTeX to DVI (single)
CTRL + ALT + RIGHT  : Log: set focus
CTRL + ALT + S      : Mark block
CTRL + ALT + UP     : Editor: set focus
CTRL + ALT + V      : Tool bars: all (show/hide) 
CTRL + ALT + X      : Unmark all
CTRL + ALT + Z      : Block uncomment all ocurrence (LaTeX)
CTRL + ALT + Z      : Unmark block
CTRL + B            : Match bracket
CTRL + C            : Copy
CTRL + D            : Possible option
CTRL + E            : Refresh R environment
CTRL + END          : End doc
CTRL + ENTER        : Send any prior line (IO)
CTRL + ENTER        : Send current line to R and insert a line break
CTRL + F            : Find
CTRL + F10          : R interface: minimize
CTRL + F11          : R interface: optimize
CTRL + F12          : R interface: maximize
CTRL + F8           : Tools: visible (show/hide)
CTRL + F9           : R interface: visible (show/hide)
CTRL + G            : Go to line
CTRL + HOME         : Beginning doc
CTRL + I            : Block ident
CTRL + INS          : Add current file to selected group
CTRL + L            : Clear (IO)
CTRL + N            : New file
CTRL + NUMBER[0..9] : Go to mark (no numeric keypad)
CTRL + O            : Open file
CTRL + P            : Print
CTRL + Q            : Possible option
CTRL + R            : Replace text
CTRL + S            : Save file
CTRL + T            : Delete word
CTRL + TAB          : Change sequentially the active page (require most of one)
CTRL + U            : Block unident
CTRL + V            : Paste
CTRL + W            : Close file
CTRL + X            : Cut
CTRL + Y            : Delete line
CTRL + Z            : Undo

DEL

DEL (Project) : Delete selected group or file

END

END : End line

Function + : 3-8

F1  : Help on selected word (requires a running R session)
F2  : List the structure of selected objetc (requires a running R session)
F3  : Find again
F7  : Macro record
F8  : Macro play
F9  : Clear the R console (requires a running R session)
F10 : Close all graphic devices (requires a running R session)
F11 : Remove all objects (requires a running R session)
F12 : Clear all (requires a running R session)

HOME

HOME : Beginning line

SHIFT + : A-Z, 0-9 and /

SHIFT + CTRL + ALT + D      : Compilation: LaTeX to DVI (bibtex)
SHIFT + CTRL + ALT + H      : Conversion: deplate to HTML
SHIFT + CTRL + ALT + P      : Compilation: LaTeX to PDF (bibtex)
SHIFT + CTRL + ALT + S      : Conversion: deplate to Sweave
SHIFT + CTRL + ALT + T      : Conversion: deplate to LaTeX
SHIFT + CTRL + B            : Clear (IO and Log)
SHIFT + CTRL + C            : Selection: set to column mode
SHIFT + CTRL + D            : Possible option
SHIFT + CTRL + DOWN         : Decrease font size (extensive texts of the main interface)
SHIFT + CTRL + E            : Refresh R explorer or filter
SHIFT + CTRL + F            : Search in files
SHIFT + CTRL + H            : Conversion: txt2tags to HTML
SHIFT + CTRL + I            : Insert dimensional element (LaTeX)
SHIFT + CTRL + INS          : Add file(s) to selected group (with dialog)
SHIFT + CTRL + L            : Selection: set to line mode
SHIFT + CTRL + N            : Selection: set to normal mode
SHIFT + CTRL + NUMBER[0..9] : Mark (no numeric keypad)
SHIFT + CTRL + O            : Open current HTML files with system setup browser
SHIFT + CTRL + Q            : Possible option
SHIFT + CTRL + R            : Reload file
SHIFT + CTRL + S            : Conversion: txt2tags to Sweave
SHIFT + CTRL + T            : Conversion: txt2tags to LaTeX
SHIFT + CTRL + UP           : Increase font size (extensive texts of the main interface)
SHIFT + CTRL + W            : Close all files
SHIFT + CTRL + Z            : Redo

FAQ

This section provides information on Frequently Asked Questions (FAQ).

What is Tinn-R?

Feedback, suggestions and bug report

Please send your feedback to José Cláudio Faria. If you submit a bug report, please provide as much detail as possible. This includes indicating the Tinn-R version, your operating system (Windows XP, Windows 7, etc) , and language (English, French, Portuguese). If the bug is related to an interface with R, please also indicate which version of R you are using, as well as whether you are running Rterm or Rgui. Ideally, please also add the content of the Tools/Results/Ini log interface since this will help us address the issue more promptly.

Tinn-R installation

See details ...

Where can I get the latest version of Tinn-R?

How do I install Tinn-R?

Can I get the source code?

How can I add a shortcut to Tinn-R in the start menu or in the desktop?

Can I save or reuse my preferences on another computer?

How can I open a file in Tinn-R by double-clicking it under Windows Explorer?

How to define the starting Rgui from within Tinn-R?

Can I define Tinn-R as the default editor for R objects?

Can I use Emacs or WinEdt style for syntax highlighting color?

What does "Triggers" mean in Options/Application/R/General/Basic

On some computers, the delay for synchronization might need to be adjusted. If Tinn-R seems to freeze while querying R for tips and you get no results, increase the value a bit by setting Options/Application/R/Server/Computational synchronization (delay).

Can I start R and Tinn-R all at once?

Hotkeys (operational system)

What is the difference between hotkeys (operational system) and shortcuts (Tinn-R)

How do I define hotkeys for R tools in Tinn-R?

Is there a shortcut for cycling through opened files?

Is there a shortcut for '<-' and '->' for the S/R languages?

Miscellaneous

I am editing a table. Can I select text in column mode?

Can I define bookmarks to facilitate the navigation through my documents?

What is the left gutter used for?

Can I run my code step-by-step?

Is there a graphical debugger for my R functions?

What is the Tools panel?

Can I copy and paste syntax highlighted R code in Word/Web/LaTeX?

How can I fix incorrect icon displays on Windows after I have installed a new version of Tinn-R?

Basic instructions about focus control

Why Tinn-R doesn't remember my syntax color preferences?

Tinn-R has four multi-highlighters: HTML complex, PHP complex, R complex and Sweave, with each one behaving as follows:

 1. HTML complex = HTML & JavaScript
 2. PHP complex  = HTML & JavaScript & PHP
 3. R complex    = R & URI ('<<<' begin URI
                            '>>>'   end URI)
 4. Sweave       = TeX & R ('>>=' begin R
                            '@'     end R)

 URI      : Uniform Resource Identifiers.
 R complex: The main syntax is R, '<<<' and '>>>' are the tags enabling the user to insert a block of URI syntax.
 Sweave   : The main syntax is TeX, '>>=' and '@' are the tags enabling the user to insert a block of R syntax.

These highlighters do not establish priorities when you set the syntax color preferences. Thus, if you change the color preferences for any of these multi-highlighters (HTML complex, PHP complex, R complex and Sweave) these settings will be valid only in the current Tinn-R session and will not be saved when Tinn-R is closed. If you would like to make these changes permanent, just set the preferences from all simple highlighters (R, TeX, HTML, JavaScript, PHP and URI).

How do I set a block as marked?

How do I can find errors in my script using Rterm interface?


Working with

This section provides information on how to work using Tinn-R.

Application options

Tinn-R interface is very flexible and user configurable. It is necessary time to know all available resources and to configure this out (according with your preferences) in a nice way. The default set of options might not be suitable for every user.

The window Application options allows the user to set the major piece of user preferences related to the application. It must be clear from now on that the Tinn-R project is the sum of three main resources: the application per si, the editor and an additional tools, the latest projected to allows the expansion of resources.

The options visible in all pictures reflect a set of the project coordinator preferences.

Main

Since the options are auto-explicative, the table below gives some details only about the most difficult options to understand:

Option Description
Remove extension for Save as All file extensions will be removed in the Save as Windows interface
Application colors (extensive text only) For people who work extensive periods of time with computer/monitor, it is recommended dark colors (low level of radiation) for background and pale light (high level of radiation) to characters. The pictures of this user guide is like this

R

As you can see, these options allows a high level of customization with R environment.

Processing

There are resources related with conversion (Txt2tags and Deplate) and compilation (Miktex).

Conversion

Tinn-R project makes it easy to work with these nice conversion tools: Txt2tags and Deplate.

Latex

Tinn-R is not a specific editor to LaTeX, but has the basic resources allowing the user to use the main resources of this environment.

Editor options

The Editor options window was adapted from the sources of the SynEdit component, mainly related to the general appearance and standard options. The set of options available complement the Application options and allows high level of customization.

Display

General

Option Description
Edge column Will be showed as a vertical line in the editor and the default is 80 characters. Set it to 0 or a negative value (-1) to make the edge column not visible
Edge color Choice of the edge color
Tab width Set the number of characters that will be inserted when typing the Tab key
Extra lines Set the width which each single line will be displayed
Font Will open the Windows interface for choosing installed fonts

Gutter

Option Description
Gutter color Will open the Windows interface to choice a color
Visible Visibility option
Autosize Autosize option
Show line number Show line number option
Start at zero Start at zero option
Show leading zeros Show leading zeros option
Use gutter font Use gutter font option

Advanced options

Options

The description of the SynEdit editor options are:

Option Description
Auto indent Will indent the caret on new lines with the same amount of leading white space as the preceding line
Auto size scroll width Automatically resizes the MaxScrollWidth property when inserting text
Drag and drop editing Allows you to select a block of text and drag it within the document to another location
Alt sets column mode Holding down the <ALT> key will put the selection mode into columnar format
Maintain caret column When moving through lines w/o cursor past EOL, keeps the X position of the cursor
Want tabs When active <TAB> and <SHIFT><TAB> act as block indent, unindent when text is selected
Smart tabs When tabbing, the cursor will go to the next non-white space character of the previous line
Smart tab delete Similar to Smart Tabs, but when you delete characters
Enhance home key Enhances HOME key positioning, similar to visual studio
Enhance end Key Enhances END key positioning, similar to JDeveloper
Hide scrollbars as necessary If enabled, then the scrollbars will only show when necessary. If you have ScrollPastEOL, then the horizontal bar will always be there (it uses MaxLength instead)
Disable scroll arrows Disables the scroll bar arrow buttons when you can't scroll in that direction any more
Half page scroll When scrolling with page-up and page-down commands, only scroll a half page at a time
Scroll by one less Forces scrolling to be one less
Scroll past end of file Allows the cursor to go past the end of file marker
Scroll past end of line Allows the cursor to go past the last character into the white space at the end of a line
Show scroll hint Shows a hint of the visible line numbers when scrolling vertically
Scroll hint follows mouse The scroll hint follows the mouse when scrolling vertically
Tabs to spaces Converts a tab character to a specified number of space characters
Trim trailing spaces Spaces at the end of lines will be trimmed and not saved
Group undo When undoing/redoing actions, handle all continuous changes of the same kind in one call instead undoing/redoing each command separately
Right mouse moves cursor When clicking with the right mouse for a pop-up menu, move the cursor to that location
Show special chars Shows the special characters

Caret

The description of the SynEdit editor options are:

Option Description
Insert caret A list with four options: Vertical line, Horizontal line, Half block and block
Overwrite caret A list with options: Vertical line, Horizontal line, Half block and block

Keystrokes

This interface allows to change the default SynEdit keystrokes. It is possible to make new, edit or remove any ecAction (execute command action). A set of user friendly keystrokes gives high productivity leading with all instances of the main class SynEdit: Editor, IO and Log.

Selection Mode

Allows the setting of the current selection mode.

Select text by clicking and dragging with the left mouse button held down or moving the cursor with the shift key held down. The status bar will display an icon indicating the current selection mode.

Normal

This is the standard mode of selection found in many Windows applications.

Line

This selection mode allows only for complete lines to be selected.

Column

This selection mode allows vertical blocks of text to be selected. The option ALT sets column mode allowing the selection mode to be switched to Column Mode when selecting with the mouse by simply holding down the ALT key. See editor/advanced options.

Colors preference

This interface allows you to customize the appearance and colors of the instances of the class SynEdit (Editor, IO and Log).

The interface is simple and auto-explicative.

Basically, make a choice between the set of highlighters available from the Highlighters list. The identifier of selected highlighter will be updated. It is possible to set only one foreground attribute each time. But, it is possible to set the background for all attributes of the selected highlighter and also the background of all attributes of all highlighters.

It is possible also to set the color brackets and the active line background.

Observation:

Tinn-R has four multi-highlighters: HTML complex, PHP complex, R complex and Sweave, described below:

 1. HTML complex = HTML & JavaScript
 2. PHP complex  = HTML & JavaScript & PHP
 3. R complex    = R & URI ('<<<' begin URI
                            '>>>'   end URI)
 4. Sweave       = TeX & R ('>>=' begin R
                            '@'     end R)

 URI      : Uniform Resource Identifiers.
 R complex: The main syntax is R, '<<<' and '>>>' are the tags which enable the user to insert a block of URI syntax.
 Sweave   : The main syntax is TeX, '>>=' and '@' are the tags which enable the user to insert a block of R syntax.

These highlighters haven't priorities when you set the syntax color preferences. Thus, if you change the colors' preferences of any of these multi-highlighters (HTML complex, PHP complex, R complex and Sweave) these settings will be valid only in the current Tinn-R session and will not be saved when Tinn-R is closed. So, if you want to make permanent changes, set the preferences from all simple highlighters (R, TeX, HTML, JavaScript, PHP and URI).

Shortcuts customization

The Shortcuts customization allows the user to set the shortcuts related to the application, it works together with the Editor keystrokes and allows high level of customization.

The difference between Shortcuts and Hotkeys (operational system) is that the former works only with the focus on Tinn-R, whereas the hotkeys works with the focus anywhere.

Read below a brief description of available buttons.

Restore default:
It restores the file Shortcuts.xml from the origin (InstallPath/data/data.zip). Any prior changes in the the file Shortcuts.xml in use will be lost.

Save as default:
It opens the save dialog allowing to save the file. From this point, this file will be the new default shortcuts.

Load:
It opens the open dialog allowing to load a shortcut file. From this point, this file will be the new default shortcuts.

Edit:
It puts the table in edition mode.

Cancel current:
It cancels any changes made in the current edition.

Cancel all:
It cancels all changes made in the database prior to Save or Save as default.

Save:
It saves to text file (XML) all changes made in the current table.

Close:
It closes the dialog. All changes not saved will be lost.

Hotkeys (operational system)

The Hotkeys (operational system) allows the setting of the hotkeys related to the operational system. The difference between those hotkeys and Shortcuts customization is that the latter works only with the focus in Tinn-R, whereas the hotkeys works with the focus anywhere.

The interface is auto-explicative. Basically you first make a choice from the R/Hotkeys (operational system) and set the desired Hotkey.

The set of hotkeys will perform actions only if the option Active is checked. The objective of these options (Inactive and Active) is to avoid conflict with others applications allowing to enable/disable the set of hotkeys fast and easily.

Rterm interface

The implementation of a Rterm interface in Tinn-R has the following aims:

The IO and Log interfaces are instances of the class SynEdit. In other words, all prior user knowledge of the resources associated with the editor were preserved:

When more than one recognized instance of R is running the priority order is:

  1. Rterm;
  2. Rgui;
  3. Rserver (remote);

IO

The IO interface is used to receive output (SDTOUT) from the R environment.

It is necessary to adjust some R options (for example: options(width=70) to obtain a suitable number of character in each single line, according to hardware and user preferences (side of IO, place of IO, length of IO, width of IO, type and size of font). Once you get a suitable result, it is a good practice to add this option to the Rprofile.site (located inside of the folder etc where the R was installed) file. In this way, your option will always be set when starting R.

The IO is an instance of SynEdit. Therefore, it can be edited and used like the editor, allowing:

Resource Description
Edition All resources available to the editor (copy, paste, cut, etc) can be used
Free navigation Using keyboard keys : Home, Page Up, Page Down, End, Left, Top, Right and Bottom
Marks Can be used CTRL+[0..9] to mark and SHIFT+CTRL+[0..9] to go
Shortcuts All shortcuts available to the editor are also to the IO
Syntax Two options: Text and R
Match brackets It make easy to build more complex instructions like plot(sqrt(rnorm(1e3)), pch='.', cex=3)
Tips Are invoked using the same trigger as the editor
Data completion Are invoked using the same trigger as the editor

If the IO has the focus, all actions of the R toolbar and main menu associated with control R can be used in the IO interface.

The IO interface has a special pop-up menu allowing the most common tasks. It is auto-explicative. So, make a small tour (right mouse bottom inside of Rterm/IO) to find out about its options.

Some details:

Log

The Log interface is used to receive warnings and error messages (SDTERR) from the R environment.

It has a special pop-up menu that allows the most common tasks. It is auto-explicative. So, make a small tour (right mouse bottom inside of Rterm/Log) to know all options.

The most resources available to the IO are also available to this interface.

Tools interface

This graphical interface was projected for allow access to Tinn-R resources and also to accommodate future growth of related news resources.

Position: starting from version 2.1.1.1 (Oct/15/2008) this interface is dockable. It can be float or docked on the left, top, right, or bottom sides of the main interface.

Misc

Tool Description
Windows expl. See details ...
Work expl. See details ...
Project See details ...

Windows expl.

Work expl.

Project

Markup

Tool Description
Txt2tags Sets marks, macros and settings of Txt2tags conversor
Latex Sets LaTeX symbols settings in a customizable manner

Txt2tags

Sets marks, macros, and settings for the Txt2tags conversor. A single click over any graphical will add it to the current editor.

LaTeX

Set of LaTeX symbols. A single click over any graphical object will add it to the current editor;

The symbols, place and order of all symbols are customizable. To customize them, open the folder latex and edit ini path. At the end of the edition, update the interface using the button //Latex: reload symbols (from ini). Be careful when editing the symbols to maintain the name structure. For example: Number_SymbolName.FileExtension, 001_alpha.gif, 002_beta.gif. The number will be used to order symbols in the graphical interface, while the name will be used (if recognized) as a LaTeX symbol.

Results

Tool Description
Ini log Displays useful results when starting Tinn-R
Search Interface for Search results associated with Search in files

Ini log

Displays useful results when starting Tinn-R.

Topic Description
Path of executable and sources (origin) Lists executable files and resources
Path of ini files Lists the path of all folders of the ini
Verification of necessary folder and files Lists the status of folders and files of ini
Tinn-R, bkp, colors, ini, syntax and syntax bkp Lists the status of these folders
Custom (version) Lists the status of this folder and files
Data (version) Lists the status of this folder and files
Latex (version) Lists the status of this folder and files
Shortcuts (version) Lists the status of this folder and files
Unihighlighter (version) Lists the status of this folder and files
Tmp Lists the status of this folder

If you submit a bug report, please also send the results for the respective page by copying & pasting.

Search

Interface for Search results associated with Search in files.

The results for Search in files action are displayed as a tree with all files. Double click the file to open it in the editor interface.

Spell

Tool Description
Spell Interface to speller

To enable spellchecking with Tinn-R it is necessary to install at least one dictionary of the list of available at. It is also a good idea to install the dictionary manager. See instructions ....

Database

Tool Description
Shortcuts A digital shortcuts interface based in a XML database
R card A digital and simple R card based in a XML database
R tip A digital and simple R tip based in a XML database
Completion A digital completion interface based in a XML database

The database uses the native XML engine provided by Borland. Each tab (Shortcuts, R card, R tip and Completion) has its own pop-up menus and toolbars.

Shortcuts

The Shortcuts interface allows the user to find out about the internal organization of Tinn-R and also to customize all shortcuts related to the applicative. It is our intention, in the near future, to add aditional keystrokes related to the editor and to the R hotkeys.

R card

The R card was based on two R cards published already: R/Rpad Reference Card by Tom Short and R reference card by Jonathan Baron.

R tip

The R tip was generated using resources of the SciViews bundle by Philippe Grosjean.

Completion

The Completion resource is very simple and allows high level of user customization related to edition. The old implementation of completion resource showed instability and was replaced. We hope that the users will like this new one.

R

Tool Description
Explorer Simple and functional graphical interface of objects of the R environment

R explorer

A simple and functional graphical interface of objects of the R environment.

This interface has its own pop-up menu, toolbar and three combo box. The pop-up menu and toolbar contain the most common actions related to an object explorer.

The button R explorer: refresh environment send a instruction to R environment requesting the list of all loaded packages in the current session. The result is shown inside a graphical classified list. When one of these is selected, the graphical list (and structure) of the objects are shown.

There are two options of filter: type of objects and any sequence of characters associated with the names of the objects.

It is possible to remove visible objects of the user workspace (.GlobalEnv) using the key Delete. To do this, select a object and type Delete.

A double click in any selected object will add this name to the editor. If the object is dragged to the editor interface, the textual description of the object is shown always in a new file. It is useful to know the sources of functions and to see data objects (vectors, frames, list, etc).

File tabs

The position of the file tabs can be changed by drag and drop. It allows to put the file tab in a desirable order making it suitable for the user interface.

The file tabs has its own pop-up menu allowing fast control of the most common tasks.

Tools bar

Unlike most applications of this category, this interface was projected to be as small and simple as possible. In other words, the full access to all resources of Tinn-R are available at the main menu and associated shortcuts (it takes time to learn all and most are user configurable).

Two groups are available: main and R tool bar.

The main toolbar interface is categorized and contain the most common tasks:

Category Description
File New, open, save, save all, reload and print
Edit Undo and redo
Filter Create a new file with all occurrences of typed sequence of characters
Macro Record and play
Misc On top, focus control and block marks
Processing Conversion, compilation and viewer
R Lots of options to send and control R
Search Current file, in files, replace and go to line
Syntax Drop down list of all syntaxes available
Spell Drop down list of installed dictionaries and a bottom to start the speller
View Organize screen, Tools (show/hide), Tools (size), Rterm (show/hide, Rterm (size), options to IO and Log and word wrap

The R toolbar has two basic division: Send (left side, finishing in the Set work directory bottom) and Control (right side, starting in the List all objects bottom).

Show/Hide

The Tools bar has its own pop-up menu enabling the user to choose what resources will be visible (show/hide). To see the pop-up menu, press the right mouse bottom inside any place of the main tools bar.

Disposition

The interface allows also drag and drop. In other words, you can organize the order of the individual tool bar inside of the main container.

It is better to do that with the main interface not maximized to avoid screen flicker (a small nuance related to some version of the Windows and Borland engine).

Find and replace

The dialogs for Find:

and for Replace:

are very similar, so this session will just discuss the Replace dialog and will point out the changes when necessary.

Find

When you call up the Find dialog the Find for box will be prefilled with the word under the cursor. You can type over the entry if you are looking for another word. There is also a dropdown list of phrases previously searched.

Replace (Replace dialog only)

When you call up the Replace dialog, the Replace with box will be filled with the last string you entered in it. If this is the first time you have called the Replace dialog since starting Tinn-R then the Replace box will be empty. You can type over any text in box. There is also a dropdown list of strings previously used.

Options

Case sensitive:
When this option is set the search is done case sensitively. For instance, Ab, AB and ab are all treated as different words whereas they are not if the option is not set.

Whole words only:
When this option is set the system will only find complete words matching the search criteria. So, for example, if ab is the search string the system will not match occurrences of words like abc or cab.

Regular expressions:
See regular expressions ...

Direction

The direction to search. This option is ignored if searching in selected text.

Forward:
Search from the cursor position to the end of the file.

Backward:
Search from the cursor position to the beginning of the file.

Scope

Global:
Search the entire file.

Selected Text:
Search just the selected text.

Origin

Global:
Search from the beginning of the file.

From cursor:
Search just from the position of the cursor.

Search in files

The Search in files dialog allows you to match a criteria in all opened files and/or in files on disk:

Options

Case sensitive:
When this option is set the search is case sensitive. For example, Ab, AB and ab are all treated as different words.

Whole words only:
When this option is set the system will only find complete words matching the search criteria. For example, if ab is the search string the system will not match occurrences of words such as abc or cab.

Regular expressions:
See regular expressions ...

Where

Opened files:
When this option is set the search is performed on all opened files.

Directories:
When this option is set the search is performed in disk files.

Directory options

Directory:
A dropdown list of previously searched directories.

File mask:
A dropdown list of the previously searched file mask.

Search in sub directories:
When this option is set the search is performed on all sub directories of the main directory.

Results interface

The associated results interface shows the following results:

A double click in a single occurrence (or dragging and dropping it into the editor interface) will open the file and results will be placed in the first line of the editor window.

Database

This interface contains resources related to the internal Tinn-R database.

Each tab (Shortcuts, R card, R tip and Completion) has its own tools bar and pop-up menu allowing for a fast control of the most common tasks.

Shortcuts

Help:
It opens the User Guide on the section about the selected topic.

Edit:
It opens the dialog R card database (xml based) below.

Read below for a brief description of available buttons.

Restore default:
It restores the file Shortcuts.xml from the origin (InstallPath/data/data.zip). Any prior changes in the the file Shortcuts.xml currently being used will be lost.

Save as default:
It opens the save dialog allowing you to save the file. From this point on, this file will be the new default shortcut.

Load:
It opens the open dialog allowing you to load a shortcut file. From this point on, this file will be the new default shortcut.

Edit:
Places the table in edition mode.

Cancel current:
Cancels any change made in the current edition.

Cancel all:
Cancels all changes made in the database prior to Save or Save as default.

Save:
Overwrites the text file (XML) saving all changes made to the current table.

Close:
Closes the dialog. All non-saved changes will be lost.

R card

Help:
Sends the following instruction to R: help('selected function').

Example:
Sends the following instruction to R: example('selected function').

Copy function:
Places the selected function in the clipboard.

Copy descrition:
Places the descrition of the selected function on the clipboard.

Edit:
Opens the dialog R card database (xml based) below.

Insert:
Inserts the selected function in the active editor. A Double click or Enter performs the same function.

Restore default:
Restores the file Rcard.xml from the origin at (InstallPath/data/data.zip). Any prior changes in the file Rcard.xml currently being used will be lost.

New:
Places the table in insertion mode.

Delete:
Delete the current registry from the table.

Edit:
Places the table in edition mode.

Cancel current:
Cancels any change made in the current edition.

Cancel all:
Cancels all changes made to the database prior to Save.

Save:
Overwrites the text file (XML) saving all changes made to the current table.

Close:
Closes the dialog. All non-saved changes will be lost.

R tip

Help:
Sends the following instruction to R: help('selected function').

Example:
Sends the following instruction to R: example('selected function').

Copy function:
Places the selected function in the clipboard.

Copy descrition:
Places the descrition of the selected function in the clipboard.

Edit:
Opens the dialog R tip database (xml based) below.

Insert:
Inserts the selected funtion in the active editor. A Double click or Enter performs the same function.

Restore default:
Restores the file Rtip.xml from the origin at (InstallPath/data/data.zip). Any prior change in the file Rtip.xml while being used will be lost.

New:
Places the table in insertion mode.

Delete:
Deletes the current registry from the table.

Edit:
Places the table in edition mode.

Cancel current:
Cancels any change made during the current editing session.

Cancel all:
Cancels all changes made to the database prior to Save.

Save:
Overwrites the text file (XML) while saving all changes made in the current table.

Close:
Closes the dialog. All changes not previously saved will be lost.

Completion

This resource adds a granular level of user customization for editing functions within Tinn-R.

The completion (database based) allows the user to add functions based on several programming languages such as R, TeX, among others.

Help:
It sends the following instruction to R: help('selected function').

Example:
Sends the following instruction to R: example('selected function').

Copy function:
Places the selected function in the clipboard.

Copy descrition:
Places the descrition of the selected function in the clipboard.

Edit:
Opens the dialog Completion database (xml based) below.

Insert:
Inserts the selected funtion in the active editor. A Double click or Enter performs the same function.

The default shortcut is CTRL+J, but this can be customized under Options/Shortcuts or Tools/Database/Shortcuts. To use it just push the keystrokes after any valid word:
  if<CTRL+J> to obtain:
  if (| < )

  ifc<CTRL+J> to obtain:
  if (|< ) {

  }

  fo<CTRL+J> to obtain:
  for (i in 1:|)

  foc<CTRL+J> to obtain:
  for (i in 1:|) {

  }

  sw<CTRL+J> to obtain:
  switch(|,
    a = ' ',
    b = ' ',
  )

  wh<CTRL+J> to obtain:
  i = 0
  while (i < |) {

    i = i + 1
  }
  
  eq<CTRL+J> to obtain:
  \begin{equation}\label{eq_01}
    |  
  \end{equation}
Observations:
  1. Only two letters were used to define the functions (for example: fo = for, fu = function);
  2. Therefore, we added the letter c for more complex structures (for example: foc, fuc);
  3. The | symbol is used to define where the cursor will first stop after auto-completion. The | symbol will be selected and marks the point where the user can start typing.

Restore default:
It restores the file Completion.xml from the origin at (InstallPath/data/data.zip). Any prior change in the file Completion.xml being used will be lost.

New:
Places the table in insertion mode.

Delete:
Deletes the current registry from the table.

Edit:
Places the table in edition mode.

Cancel current:
Cancels any change made to the current edition.

Cancel all:
Cancels all changes made to the database prior to Save.

Save:
Overwrites the text file (XML), saving all changes made to the current table.

Close:
Closes the dialog. All non-saved changes will be lost.

Regular expressions

This session is an adaptation. It is based on the help of the freewere PSPad editor.

What are regular expressions?

Regular expressions are a widely-used method of specifying patterns of text to search for. Special metacharacters allow you to specify, for instance, that a particular string you are looking for occurs at the beginning or end of a line, or contains n recurrences of a certain character.

Regular expressions may look ugly to novices, but are actually a very simple, handy and powerful tool.

Simple Matches

Any single character matches itself, unless it is a metacharacter with a special meaning described below.

A series of characters matches that series of characters in the target string, so the pattern bluh would match bluh in the target string.

You can cause characters that normally function as metacharacters or escape sequences to be interpreted literally by escaping them. Do this by preceding them with a backslash \. For instance: metacharacter ^ match beginning of string, but \^ match character ^, \\ match \ and so on.

Examples:
ER Matches
foobar foobar
\^FooBarPtr ^FooBarPtr

Escape Sequences

Characters may be specified using a escape sequences syntax much like that used in C and Perl: \n matches a newline, \t a tab, etc. More generally, \xnn, where nn is a string of hexadecimal digits, matches the character whose ASCII value is nn. If You need wide (Unicode) character code, you can use \x{nnnn}, where nnnn is one or more hexadecimal (base 16) digits (1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F). Hex digit letters may be in upper or lower case.

ER Description
\xnn Char with hex code nn
\x{nnnn} Char with hex code nnnn (one byte for plain text and two bytes for Unicode)
\t Tab (HT/TAB), same as \x09
\n Newline (NL), same as \x0a
\r Carriage return (CR), same as \x0d
\f Form feed (FF), same as \x0c
\a Alarm (bell) (BEL), same as \x07
\e Escape (ESC), same as \x1b
Examples:
ER Matches
foo\x20bar foo bar (note space in the middle)
\tfoobar foobar predefined by tab

Character Classes

You can specify a character class, by enclosing a list of characters in [], which will match any one character from the list. If the first character after the [ is ^, the class matches any character not in the list.

Examples:

ER Matches
foob[aeiou]r foobar, foober, etc. But not foobbr, foobcr, etc
foob[^aeiou]r foobbr, foobcr, etc. But not foobar, foober, etc

Within a list, the - character is used to specify a range, so that a-z represents all characters between a and z, inclusive.

If you want - itself to be a member of a class, put it at the start or end of the list, or escape it with a backslash. If You want ] you may place it at the start of list or escape it with a backslash.

Examples:

ER Matches
[-az] a, z and -
[az-] a, z and -
[a\-z] a, z and -
[a-z] All twenty six small characters from a to z
[\n-\x0D] Any of ASCII #10(Lf), #11, #12(Ff), #13(Cr)
[\d-t] Any digit, - or t
[]-a] Any char from ]..a

Metacharacters

Metacharacters are special characters which are the essence of regular expressions. There are different types of metacharacters, described below.

Metacharacters - Line Separators

ER Description
^ Start of line
$ End of line
\A Start of text
\Z End of text
. Any character in line
Examples:
ER Matches
^foobar foobar only if it's at the beginning of line
foobar$ foobar only if it's at the end of line
^foobar$ foobar only if it's the only string in line
foob.r foobar, foobbr, foob1r and so on

The ^ metacharacter by default is only guaranteed to match at the beginning of the input string/text, the $ metacharacter only at the end. Embedded line separators will not be matched by ^ or $. You may, however, wish to treat a string as a multi-line buffer, such that the ^ will match after any line separator within the string, and $ will match before any line separator. You can do this by switching On the modifier /m.

The \A and \Z are just like ^ and $, except that they won't match multiple times when the modifier /m is used, while ^ and $ will match at every internal line separator.

Metacharacters - Predefined Classes

ER Description
\w An alphanumeric character (including _)
\W A non alphanumeric
\d A numeric character
\D A non-numeric
\s Any space (same as [ \t\n\r\f])
\S A non space

You may use \w, \d and \s within custom character classes.

Examples:
ER Matches
foob\dr foob1r, foob6r and so on but not foobar, foobbr and so on
foob[\w\s]r foobar, foob r, foobbr and so on but not foob1r, foob=r and so on

TRegExpr uses properties SpaceChars and WordChars to define character classes \w, \W, \s, \S, so You can easily redefine it.

Metacharacters - Word Boundaries

ER Matches
\b A word boundary
\B A non-(word boundary)

A word boundary \b is a spot between two characters that has a \w on one side of it and a \W on the other side of it (in either order), counting the imaginary characters off the beginning and end of the string as matching a \W.

Metacharacters - Iterators

Any item of a regular expression may be followed by another type of metacharacters - iterators. Using this metacharacters You can specify number of occurrences of previous character, metacharacter or subexpression.

ER Matches
* Zero or more ("greedy"), similar to {0,}
+ One or more ("greedy"), similar to {1,}
? Zero or one ("greedy"), similar to {0,1}
{n} Exactly n times ("greedy")
{n,} At least n times ("greedy")
{n,m} At least n but not more than m times ("greedy")
*? At least n but not more than m times ("greedy")
+? At least n but not more than m times ("greedy")
?? Zero or one ("non-greedy"), similar to {0,1}?
{n}? Exactly n times ("non-greedy")
{n,}? At least n times ("non-greedy")
{n,m}? At least n but not more than m times ("non-greedy")

So, digits in curly brackets of the form {n,m}, specify the minimum number of times to match the item n and the maximum m. The form {n} is equivalent to {n,n} and matches exactly n times. The form {n,} matches n or more times. There is no limit to the size of n or m, but large numbers will chew up more memory and slow down r.e. execution.

If a curly bracket occurs in any other context, it is treated as a regular character.

Examples:
ER Matches
foob.*r foobar, foobalkjdflkj9r and foobr
foob.+r foobar, foobalkjdflkj9r but not foobr
foob.?r foobar, foobbr and foobr but not foobalkj9r
fooba{2}r foobaar
fooba{2,}r foobaar, foobaaar, foobaaaar, ...
fooba{2,3}r foobaar, or foobaaar but not foobaaaar

A little explanation about greediness. Greedy takes as many as possible, non-greedy takes as few as possible. For example, b+ and b* applied to string abbbbc return bbbb, b+? returns b, b*? returns empty string, b{2,3}? returns bb, b{2,3} returns bbb.

Metacharacters - Alternatives

You can specify a series of alternatives for a pattern using | to separate them, so that fee|fie|foe will match any of fee, fie, or foe in the target string (as would f(e|i|o)e). The first alternative includes everything from the last pattern delimiter ((, [, or the beginning of the pattern) up to the first |, and the last alternative contains everything from the last | to the next pattern delimiter. For this reason, it's common practice to include alternatives in parentheses, to minimize confusion about where they start and end.

Alternatives are tried from left to right, so the first alternative found for which the entire expression matches, is the one that is chosen. This means that alternatives are not necessarily greedy. For example: when matching foo|foot against barefoot, only the foo part will match, as that is the first alternative tried, and it successfully matches the target string. (This might not seem important, but it is important when you are capturing matched text using parentheses).

Also remember that | is interpreted as a literal within square brackets, so if You write [fee|fie|foe]. You're really only matching [feio|].

Examples:
ER Matches
foo(bar|foo) foobar or foofoo

Metacharacters - Subexpressions

The bracketing construct ( ... ) may also be used to define r.e. subexpressions (after parsing, you can find subexpression positions, lengths and actual values in MatchPos, MatchLen and Match properties of TRegExpr, and substitute it in clip strings by TRegExpr.Substitute).

Subexpressions are numbered based on the left to right order of their opening parenthesis. First subexpression has number 1 (whole r.e. match has number 0 - You can substitute it in TRegExpr.Substitute as $0 or $&).

Examples:
ER Matches
(foobar){8,10} Strings which contain 8, 9 or 10 instances of the foobar
foob([0-9]|a+)r foob0r, foob1r , foobar, foobaar, foobaar, ...
(abc(def)ghi(123))xzy abcdefghi123xyz (the only match)
Then backreferences:
ER Description
\1 = abcdefghi123
\2 =def
\3 =123
\0 =abcdefghi123xyz (the whole match)

We could find the same string using metacharacter Iterators with: (\w{3}([d-f]{3})...(\d*))xyz and the backreferences would have the same values. And yet the pattern would also match: 123fdd@#$4444xyz, bbbeeeabc1234567xyz, ddddddaaaxyz.

Metacharacters - Backreferences

Metacharacters \1 through \9 are interpreted as backreferences in the Search text box. When used outside of the regular expression, such as in the Replace text field, metacharacters $1 through $9 are interpreted as backreferences to the last find.

\<n> matches previously matched subexpression #<n>.

Find Examples:
ER Matches
(.)\1+ aaaa and cc
(.+)\1+ abab and 123123
(['"]?)(\d+)\1 "13"(in double quotes), or '4' (in single quotes) or 77 (without quotes), ...
Replace Examples:
Date format change from dd.mm.yyyy to yyyy-mm-dd. This will turn the European date style 26.8.1994 or 26/8/1994 into 1994-8-26.

Search: ([0-9]{1,2}).([0-9]{1,2}).([0-9]{4})

Replace: $3-$2-$1

Make sure you check the box for Regular Expression.

Regular Expression Tutorials

The following is a list of a few sites that contain tutorials on both regular expressions in general and their use in specific languages:


Menu description

This section provides information about the main menu for Tinn-R.

File

Option Description
New Creates a new file
Open all recent files Opens all files from the Most Recently Used (MRU) file list
Open Opens selected file as text
Recent files Displays a Most Recently Used (MRU) file list. Selecting one of the displayed files will open that file
Reload Reloads the current files to the last saved status
Save Saves the current file. If the file has not been previously saved then the 'File Save As' dialog will open first
Save as Saves the current file with a new name
Save all Saves all changed files. If a file has not been previously saved the 'File Save As' dialog will open first
Close Closes the current file. If the file has not been saved you will be prompted to save it
Close all Closes all files including projects
Print Will open a Tinn-R dialog allowing settings and actions associated with the current file
Copy full path to clipboard See options ...
Exit Exits the application

Copy full path to clipboard

Option Description
Unix mode ../.. Copy full path of current file to clipboard in Unix mode ../..
Windows mode ..\.. Copy full path of current file to clipboard Windows mode ..\..

Project

Option Description
Project See options ...
Group(s) See options ...
File(s) See options ...
Recent The option will display a Most Recently Used (MRU) project file list. Selecting one of the displayed files will open that file
Edit (as text file) Opens the textual description of the project for editing
Reload (from text file) Reloads the graphical project interface from the textual description of the project

Project

Option Description
New Creates new project. If you have an open unsaved project you will be prompted to save the project file
Open Opens existing project and restores the project's state
Save Saves the project file
Save as Saves the current file with a new name
Close project This option will close any files that are in a virtual folder
Delete current This option will delete the virtual folder of the current project

Group(s)

Option Description
New Creates a new group of current project
Rename Renames a selected group of current project
Delete current Removes the selected group of the current project
Delete all Removes all groups of the current project
Expand all Expands all groups of the current project in the graphical interface
Collapse all Collapses all groups of the current project in the graphical interface

File(s)

Option Description
Open all (project) Opens all files from a project
Close all (project) Closes all files from a project
Open all (selected group) Opens all files from selected group
Close all (selected group) Closes all files from selected group
Add Opens the windows interface to select file(s) and add the selected(s) files to a selected group
Add current Add the current file to the selected group
Remove all (project) Removes all files of the project
Remove all (selected group) Removes all files of the selected group
Remove Removes selected file
Copy full path to clipboard Copies the full path of selected files to the clipboard

Edit

Option Description
Undo Undoes the last action
Redo Re-applies any actions undone using the Undo option
Copy Copies the selected text and places it in the Windows clipboard
Cut Cuts the selected text and places it in the Windows clipboard
Paste Places any text in the Windows clipboard at position indicated by the cursor within the file
Copy formatted (to export) See options ...
Select all Selects all text contained within the file

Copy formatted (to export)

Option Description
Rtf Copies the selected text and places it in the Windows clipboard in Rtf format
Html Copies the selected text and places it in the Windows clipboard in Html format|
TeX Copies the selected text and places it in the Windows clipboard in TeX format|

Format

Option Description
Selection See options ...
Word See options ...

Selection

Option Description
Indent Indents selected line(s)
Unindent Unindents selected line(s)
Comment Adds comments to selected line(s)
Uncomment firsts occurrence Removes the first occurrence of a comment in the selected line(s)
Uncomment all occurrence Removes all occurrences of a comment in the selected line(s)
Comment (LaTeX) Adds a comment (LaTeX) to the selected line(s)
Uncomment firsts occurrence (LaTeX) Removes a comment (LaTeX) from the selected line(s)
Uncomment all occurrence (LaTeX) Removes all occurrences of a comment (LaTeX) from the selected line(s)
Uppercase selection Converts selected text to upper case
Lowercase selection Converts selected text to lower case
Invert selection Inverts the case of all selected text

Word

Option Description
Uppercase word Converts the word under the cursor to upper case
Lowercase word Converts the word under the cursor to lower case
Invert case Inverts the case of the word under the cursor

Marks

Option Description
Block See options ...
Unmark all Unmarks all marks of the current file

Block

Option Description
Mark Marks selected block: 0 to begin and 1 to end
Unmark Unmarks any previous marked block. It is not necessary to select the marked block

Insert

Option Description
LaTeX See options ...
Completion Insert the completion
Date / Time stamp Inserts the current system time and date

Latex

Option Description
Math See options ...
Header See options ...
Format See options ...
Font See options ...

Math

Option Description
Dimensional Opens a dialog to insert a dimensional element: Array, Matrix, Tabular or Tabbing
frac{}{} Inserts frac{}{}. If there are two selected elements , for example 1 2, it will place both elements in the correct position, i.e, frac{1}{2}
sqrt{} Inserts sqrt{}. If an element is selected, say 9, it will place this element in the correct position, i.e, sqrt{9}
sqrt[]{} Inserts sqrt[]{}. If there are two selected elements, for example 3 27, it will place both in the correct position, i.e, sqrt[3]{27}

Header

Option Description
Part Inserts \part{} if no selection or \part{selected}
Chapter Inserts \chapter{} if no selection or \chapter{selected}
Section Inserts \section{} if no selection or \section{selected}
Sub-section Inserts \subsection{} if no selection or \subsection{selected}
Sub-sub-section Inserts \subsubsection{} if no selection or \subsubsection{selected}
Paragraph Inserts \paragraph{} if no selection or \paragraph{selected}
Sub-paragraph Inserts \subparagraph{} if no selection or \subparagraph{selected}

Format

Option Description
Itemization Inserts itemization or itemizes a selection
Enumeration Inserts enumeration or enumerates a selection
Left Inserts tag to align text left or make left the selection
Center Inserts tag to align text center or make center the selection
Right Inserts tag to align text right or make right the selection

Font

Option Description
Enphase Inserts \emph{} if no selection or \emph{selected}
Bold Inserts \textbf{} if no selection or \textbf{selected}
Italic Inserts \textit{} if no selection or \textit{selected}
Slatend Inserts \textsl{} if no selection or \textsl{selected}
Typewriter Inserts \texttt{} if no selection or \texttt{selected}
Small caps Inserts \textsc{} if no selection or \textsc{selected}
Tiny Inserts {\tiny {}} if no selection or {\tiny {selected}}
Script size Inserts {\scriptsize {}} if no selection or {\scriptsize {selected}}
Footnote size Inserts {\footnotesize {}} if no selection or {\footnotesize {selected}}
Small Inserts {\small {}} if no selection or {\small {selected}}
Normal Inserts {\normalsize {}} if no selection or {\normalsize {selected}}
Large Inserts {\large {}} if no selection or {\large {selected}}
Larger Inserts {\Large {}} if no selection or {\Large {selected}}
Largest Inserts {\LARGE {}} if no selection or {\LARGE {selected}}
Huge Inserts {\huge {}} if no selection or {\huge {selected}}
Huger Inserts {\Huge {}} if no selection or {\Huge {selected}}

Search

Option Description
Find Opens the Find dialog
Find again Uses the previously entered search criteria to find the next occurrence, ie. one closer to the end of the file. This option is not available if a search has not been carried out.
Search in files Opens the Search in files dialog
Replace Opens the Replace dialog
Go to This option produces the dialog below and allows you to move the cursor to the specified position

Options

Option Description
Application Opens the Application options dialog
Editor Opens the Editor options dialog
Shortcuts Opens the Shortcuts customization dialog
Colors (preference) Opens the Colors (preference) dialog
Syntax (highlighters) See options ...
File (open maximized) When this option is set all files will be opened maximized
Return focus to editor (after send/control Rgui) When this option is set the focus will go back to the active editor after any Send or Control action
On top Toggles Tinn-R's ability to be the topmost window on the desktop
Read only Toggles file read-only status. When set as read-only the file name on the file tab is among <...>
Selection mode See options ...

Syntax (highlighter)

Option Description
Set See options ...
Default (to new files) See options ...

Set

Option Description
All File without extension or not recognized extension
C# C# files
C/C++ C/C++ files
Cascading SS Cascading SS files
Deplate Deplate files
Fortran Fortran files
HTML Hypertext Markup Language (HTML) files
HTML complex Hypertext Markup Language (HTML) complex (HTML & JavaScript) files
INI INI files
Java Java files
JScript JScript files
MS VBScript MS VBScript files
MS_DOS Bath MS_DOS Bath files
Pascal Pascal files
Perl Perl files
PHP PHP files
PHP complex PHP (HTML & JavaScript & PHP) complex files
Python Python files
R R files
R complex R complex (R & URI) files
Rd Rd files
Ruby Ruby files
SQL SQL files
Sweave Sweave (TeX & R) files
TclTk TclTk files
TeX TeX files
Text Text files
Txt2tags Txt2tags files
URI Uniform Resource Identifiers (URI) files
Visual Basic Visual Basic files
x86 Assembly x86 Assembly files
XML XML files

If necessary Select manually one of the list. Tinn-R recognizes automatically the syntax based on the file extensions.

Default (to new files)

Option Description
R When this option is set the highlighter of all new files will be set as R
R complex When this option is set the highlighter of all new files will be set as R complex
Text When this option is set the highlighter of all new files will be set as Text

Selection mode

Option Description
Normal See selection type normal ...
Line See selection type line ...
Column See selection type column ...

Tools

Option Description
Processing See options ...
Database See options ...
Backup See options ...
Restore See options ...
Macro See options ...
ASCII chart Allows you insert an active char to the active document
Differences Opens the nice TextDiff command by Angus Johnson integrated within Tinn-R
Spell Starts the speller (see instructions ...)
Sort See options ...
Count Shows the result of the count action (words, characters + spaces, character - spaces and spaces) for files or a text selection
Match bracket Search for matching bracket. See details below
How to match:
The cursor must be placed immediately before any of the bracket characters. When this option is called the cursor will move to the point immediately before the matching bracket.

Recognized brackets:
The bracket characters are (), [] and {}.

Processing

Option Description
Conversion See options ...
Compilation (LaTeX to) See options ...
Viewer See options ...

Conversion

Option Description
Txt2tags to See options ...
Deplate to See options ...
Txt2tags to

Option Description
LaTeX Converts a Txt2tags file to LaTeX
Sweave Converts a Txt2tags file to Sweave
Txt Converts a Txt2tags file to txt
HTML Converts a Txt2tags file to HTML
XHTML Converts a Txt2tags file to XHTML
SGML Converts a Txt2tags file to SGML
Lout Converts a Txt2tags file to Lout
Man page Converts a Txt2tags file to Man page
Wikipedia Converts a Txt2tags file to Wikipedia
Google code wiki Converts a Txt2tags file to Google code wiki
Doku wiki Converts a Txt2tags file to Doku wiki
Moinmoin Converts a Txt2tags file to Moinmoin
Magic point Converts a Txt2tags file to Magic point
Page maker Converts a Txt2tags file to Page maker

Tip: See details ...

Deplate to

Option Description
LaTeX Converts a Deplate file to LaTeX
LaYeX-dramatist Converts a Deplate file to LaTeX-dramatist
Sweave Converts a Deplate file to Sweave
Plain Converts a Deplate file to Plain
HTML Converts a Deplate file to HTML
HTML site Converts a Deplate file to HTML site
HTML slides Converts a Deplate file to HTML slides
XHTML 1.0 transitional (xhtml10t) Converts a Deplate file to XHTML 1.0 transitional
XHTML 1.1 with MathML (xhtml11m) Converts a Deplate file to XHTML 1.1 with MathML
PHP Converts a Deplate file to PHP
Dbk-article Converts a Deplate file to Dbk-article
Dbk-book Converts a Deplate file to Dbk-book
Dbk-ref Converts a Deplate file to Dbk-ref

Tip: See details ...

Compilation (latex to)

Option Description
Always shows console minimized when compiling When this option is set the DOS console will be minimized when compiling
DVI (single) Compiles a LaTeX file to DVI in single way
DVI (bibtex) Compiles a LaTeX file to DVI in bibtex way (three compilation)
Pdf (single) Compiles a LaTeX file to PDF in single way
Pdf (bibtex) Compiles a LaTeX file to PDF in bibtex way (three compilation)

Viewer

Option Description
DVI See options ...
PDF See options ...
HTML See options ...
DVI

Option Description
Open always after compilation (option) When this option is set the DVI file will be opened by the viewer after the compilation
Open file Shows the Windows Open dialog to select a DVI file to be opened by the viewer
Pdf

Option Description
Open always after compilation (option) When this option is set the Pdf file will be opened by the viewer after the compilation
Open file Shows the Windows Open dialog to select a DVI file to be opened by the viewer
Html

Option Description
Open always after conversion (option) When this option is set the Html file will be opened by the viewer after the compilation
Open current file Opens the current DVI file with the viewer
Open file Shows the Windows Open dialog to select a DVI file to be opened by the viewer

Database

Option Description
R card Shows Rcard database (XML based) dialog
R tip Shows Rtip database (SML based) dialog
Completion Shows Completion database (XML based) dialog

Backup

Option Description
System configuration Backups Tinn-R configuration (ini files)
Database Backups database (card.xml and tips.xml)

Restore

Option Description
System configuration Restores a prior Tinn-R backup (ini files)
Database Restores a prior database backup (card.xml and tips.xml)

Macro

Option Description
Record Toggles macro recording on and off. Note that when recording a macro the button changes
Play Plays a previous recorded macro

It is not possible to save/edit macros, they are temporary

Sort

Option Description
Strings Sorts strings
Numbers Sorts numbers
Dates Sorts dates

Sort works on the entire document unless some text is selected

R

Option Description
Start/close and connections See options ...
Rterm See options ...
Customize See options ...
Configure See options ...
Send See options ...
Editor: current line to top Brings the current line to the top of the editor interface
Control See options ...
Hotkeys (operational system) Shows Tinn-R hotkeys (related with the operational system) dialog. See Hotkeys (operational system) ...

Start/close and connections

Option Description
Rterm (start/close) Starts and Closes Rterm interface
Rgui (start/close) Starts and Closes Rgui application
Server (connections and tests) Opens the dialog R server: connections and tests

Tip: The Server (connections and tests) dialog allows you to test the DDE and TCP/IP communication protocols used to establish a communication between R and Tinn-R.**

Rterm

Option Description
Interface (show/hide) Toggles (show/hide) Rterm interface
File See options ...
Clear See options ...
Focus See options ...
Size See options ...
Split See options ...
Syntax See options ...
Word wrap See options ...
History See options ...
Workspace See options ...
Font of active control (not permanent) See options ...

File

Option Description
IO See options ...
Log See options ...
File IO

Option Description
Save Saves the content of the IO interface
Save as Saves the content of the IO interface as a new file
Print Opens the Tinn-R print dialog with the content from the IO interface
File Log

Option Description
Save Saves the content of the Log interface
Save as Saves as the content of the Log interface
Print Opens the Tinn-R print dialog with content from Log interface

Clear

Option Description
IO Clear IO
Log Clear Log
IO and Log Clear IO and Log

Focus

Option Description
Editor Places the focus inside of the editor
IO Places the focus inside of the IO
Log Places the focus inside of the Log

Size

Option Description
Rterm (maximize) Maximizes the Rterm interface
Rterm (divide) Divides the Rterm interface
Rterm (minimize) Minimizes the Rterm interface

Split

Option Description
Horizontal split (IO and Log in the same view) Splits horizontally the Rterm interface placing IO and Log on the same view
Vertical split (IO and Log in the same view) Splits vertically the Rterm interface placing IO and Log on the same view
Remove split (IO and Log in distinct view) Removes split placing IO and Log in distinct view

Syntax

Option Description
IO See options ...
Log See options ...
Syntax IO

Option Description
Text Sets the IO highlighter to Text
R Sets the IO highlighter to R
Syntax Log

Option Description
Text Sets the Log highlighter to Text
R Sets the Log highlighter to R

Word wrap

Option Description
IO Sets Word wrap to IO
Log Sets Word wrap to Log

History

Option Description
Save Saves the history
Load Loads the history
Prior Prior section of the history
Next Next section of the history

Workspace

Option Description
Save Saves the workspace
Load Loads the workspace

Font of active control (not permanent)

Option Description
Increase Increase the font size
Decrease Decrease the font size

Customize

Option Description
Rconfigure.r Opens the file Rconfigure.r for edition

Configure

Option Description
Temporarily (current session) Temporarily sets Rterm or Rgui to runs with Tinn-R (current session)
Permanent (Rprofile.site) Permanently sets Rterm or Rgui to runs with Tinn-R (Rprofile.site)

Send

Option Description
File Sends current file to R interpreter
File (echo=TRUE) Sends current file to R interpreter echoing the content
Selection Sends current selection to R interpreter
Selection (echo=TRUE) Sends current selection to R interpreter echoing the content
Clipboard Sends the clipboard content to R interpreter
Clipboard (echo=TRUE) Sends the clipboard content to R interpreter echoing the content
Marked block Sends current marked block to R interpreter
Marked block (echo=TRUE) Sends current marked block to R interpreter echoing the content
Line Sends current line to R interpreter echoing it
Lines to end page (echo=TRUE) Sends all visible lines to end page echoing it
Cursor to beginning line Sends cursor position to beginning line
Cursor to end line Sends cursor position to end line
Sweave Sends to R interpreter Sweave('Active file') instruction

Control

Option Description
Set work directory (current file path) Sets the work directory of the R interpreter to the current file path
List all objects Sends to R interpreter a ls() instruction
Print content (selected) Sends to R interpreter a selected word
List names (selected) Sends to R interpreter a names(selected) instruction
List structure (selected) Sends to R interpreter a str(selected) instruction
Edit (selected) Sends to R interpreter a edit(selected) instruction
Fix (selected) Sends to R interpreter a fix(selected) instruction
Plot (selected) Sends to R interpreter a plot(selected) instruction
Clear console Sends and executes the virtual CTRL+L (clear screen) instruction
Close all graphic devices Sends to R interpreter a graphics.off() instruction
Remove all objects Sends to R interpreter a rm(list=ls()) instruction
Clear all Sends to R interpreter a graphics.off(); rm(list=ls()) CTRL+L instructions
Escape Stops all computations in Rgui
Help (selected) Sends to R interpreter a help(selected) instruction
Example (selected) Sends to R interpreter a example(selected) instruction
Help Sends to R interpreter a help.start(update=FALSE) instruction
Packages See options ...
TCP/IP connection Sends to R interpreter an instruction to start: startSocketServer(port=portnumber) or stop: startSocketServer(port=portnumber) the TCP/IP connection

Packages

Option Description
Available Sends to R interpreter a available.packages() instruction
Install Sends to R interpreter a utils:::menuInstallPkgs() instruction
Install (from local zip) Sends to R interpreter a utils:::menuInstallLocal() instruction
Installed Sends to R interpreter a installed.packages() instruction
Load Sends to R interpreter a local({pkg <- select.list(sort(.packages(all.available = TRUE))); if(nchar(pkg)) library(pkg, character.only=TRUE)}) instruction
New Sends to R interpreter a new.packages() instruction
Remove Sends to R interpreter a local({pkg <- select.list(sort(.packages(all.available = TRUE))); if(nchar(pkg)) remove.packages(pkg)}) instruction
Update Sends to R interpreter a update.packages(ask='graphics') instruction
Status Sends to R interpreter a packageStatus() instruction

View

Option Description
R See options ...
Tools See options ...
Toolsbar See options ...
Tabs See options ...
Word wrap (show/hide) See options ...
Line numbers (show/hide) Toggles (show/hide) line numbers
Special characters (show/hide) Toggles (show/hide) special characters
Shortcuts (show) Shows shortcuts interface (not implemented yet)
Status bar (show/hide) Toggles (show/hide) status bar
Split See options ...
Font of active control (not permanent) See options ...

R

Option Description
R resources (show/hide) Toggles (show/hide) all R resources
Organize screen (Tinn-R/Rgui) Organizes the screen (Tinn-R and Rgui) according with the user set. See options ...
Rterm See options ...

Rterm

Option Description
Interface (show/hide) Toggles (show/hide) Rterm interface
Size See options ...
Split See options ...
Syntax See options ...
Word wrap See options ...
Font of active control (not permanent) See options ...
Size

Option Description
Rterm (maximize) Maximizes the Rterm interface
Rterm (divide) Splits the Rterm interface
Rterm (minimize) Minimizes the Rterm interface
Split

Option Description
Horizontal split (IO and Log in the same view) Horizontally splits the Rterm interface placing IO and Log in the same view
Vertical split (IO and Log in the same view) Vertically splits the Rterm interface placing IO and Log in the same view
Remove split (IO and Log in distinct view) Removes split placing IO and Log in distinct view
Syntax

Option Description
IO See options ...
Log See options ...
Syntax IO

Option Description
Text Sets the IO highlighter to Text
R Sets the IO highlighter to R
Syntax Log

Option Description
Text Sets the Log highlighter to Text
R Sets the Log highlighter to R
Word wrap

Option Description
IO Sets Word wrap to IO
Log Sets Word wrap to Log
Font of active control (not permanent)

Option Description
Increase Increase font size
Decrease Decrease font size

Tools

Option Description
Tools (show/hide) Toggles (show/hide) Tools interface
Size See options ...
Resources See options ...

Size

Option Description
Tools (maximize) Maximizes the Tools interface
Tools (divide) Divides the Tools interface
Tools (minimize) Minimizes the Tools interface

Resources

Option Description
Misc See options ...
Markup See options ...
Results See options ...
Shortcuts (show/hide) Toggles (show/hide) Shortcuts tab of Tools interface
Spell (show/hide) Toggles (show/hide) Spell tab of Tools interface
Database See options ...
R See options ...
Misc

Option Description
Misc (show/hide) Toggles (show/hide) Misc tab of Tools interface
Windows expl. (show/hide) Toggles (show/hide) Windows expl. tab of Misc
Work expl. (show/hide) Toggles (show/hide) Work expl. tab of Misc
Project (show/hide) Toggles (show/hide) Project tab of Misc
Markup

Option Description
Markup (show/hide) Toggles (show/hide) Markup tab of Tools interface
Txt2tags (show/hide) Toggles (show/hide) Txt2tags tab of Markup
LaTeX (show/hide) Toggles (show/hide) LaTeX tab of Markup
Results

Option Description
Results (show/hide) Toggles (show/hide) Results tab of Tools interface
Ini log (show/hide) Toggles (show/hide) Ini log tab of Results
Search (show/hide) Toggles (show/hide) Search tab of Results
Database

Option Description
Database (show/hide) Toggles (show/hide) Database tab of Tools interface
R card (show/hide) Toggles (show/hide) Rcard tab of Database
R tip (show/hide) Toggles (show/hide) Card tab of Database
Completion (show/hide) Toggles (show/hide) Card tab of Database
R

Option Description
R (show/hide) Toggles (show/hide) R tab of Tools interface
Explorer (show/hide) Toggles (show/hide) Explorer tab of R

Toolbars

Option Description
All bars (show/hide) Toggles (show/hide) All bars tab of Tools bar interface
File (show/hide) Toggles (show/hide) File tab of Tools bar interface
Edit (show/hide) Toggles (show/hide) Edit tab of Tools bar interface
Filter (show/hide) Toggles (show/hide) Filter tab of Tools bar interface
Macro (show/hide) Toggles (show/hide) Macro tab of Tools bar interface
Misc (show/hide) Toggles (show/hide) Misc tab of Tools bar interface
Processing (show/hide) Toggles (show/hide) Processing tab of Tools bar interface
R (show/hide) Toggles (show/hide) R tab of Tools bar interface
Search (show/hide) Toggles (show/hide) Search tab of Tools bar interface
Syntax (show/hide) Toggles (show/hide) Syntax tab of Tools bar interface
Spell (show/hide) Toggles (show/hide) Spell tab of Tools bar interface
View (show/hide) Toggles (show/hide) View tab of Tools bar interface

Tabs

Option Description
Files See options ...
Tools See options ...
Rterm See options ...

Word wrap

Option Description
Editor (show/hide) Toggles (show/hide) Editor word wrap
Rterm/IO (show/hide) Toggles (show/hide) Rterm/IO word wrap
Rterm/Log (show/hide) Toggles (show/hide) Rterm/Log word wrap

Split

Option Description
Horizontal Horizontally splits the editor
Vertical Vertically splits the editor
Remove Removes split

Font of active control (not permanent)

Option Description
Increase Increase font size
Decrease Decrease font size

Window

Option Description
Tile vertically Shows two views of the same file tiled vertically, to the left and right. Each can be scrolled independently
Tile horizontally Shows two views of the same file tiled horizontally, one above the other. Each can be scrolled independently
Minimize all Minimizes all windows (editor)
Cascade The windows cascade from the upper left to the lower right of the workspace
Arrange icons Windows are tiled horizontally, but the active document comes on top. You may also drag your document tabs to the order you prefer and then tile them horizontally
Files opened If many files are opened, a dialog will be open to select a file

Web

Option Description
R search See options ...
S search See options ...
R information See options ...
R Gui's See options ...
Tinn-R See options ...
Statistics See options ...
Processing See options ...

R search

Option Description
Selected text See options ...
Site search Opens URI R Site Search
Mailing list archives Opens URI R mailing lists archive
Help center Opens URI R Help Center
Help for R (Jonathan Baron) Opens URI Help for R
r-help mailing list information Opens URI r-help
Nabble - R forum Opens URI R forum

Selected text

Option Description
Site search Opens URI R Site Search and lists the results associated with the word under the cursor or selected text
Archives Opens URI R mailing lists archive and lists the results associated with the word under the cursor or selected text
Google Opens URI Google and lists the results associated with the word under the cursor or selected text

S search

Option Description
Selected text See options ...
Mailing list archives Opens URI S-News Mailing List Archives

Selected text

Option Description
Archives search Opens URI S-news archive search and lists the results associated with the word under the cursor or selected text

R information

Option Description
CRAN Opens URI The Comprehensive R Archive Network
Web site Opens URI The R Project for Statistical Computing
News Opens URI R News
R Wiki Opens URI R Wiki
Bioconductor Opens URI Bioconductor project

R Gui's

Option Description
Projects (CRAN) Opens URI R GUI Projects
R Comander Opens URI The R Commander: A Basic-Statistics GUI for R
Rpad Opens URI Rpad home page
SciViews Opens URI SciViews-R
JGR Opens URI JGR - Java GUI for R

Tinn-R

Option Description
SourceForge (main) Opens URI Sourceforge.net Tinn-R
SciViews Opens URI SciViews Tinn-R

Statistics

Option Description
Virtual laboratories See options ...
Journal of Statistical Software Opens URI Journal of Statistical Software
HyperStat Text Book Opens URI HyperStat Text Book
Electronic Textbook StatSoft Opens URI Electronic Textbook StatSoft

Virtual laboratories

Option Description
Rice Opens URI Rice Virtual Lab in Statistics
Statistical Java Opens URI Statistical Java
VESTAC Opens URI Java Applets for Visualization of Statistical Concepts
Virtual Laboratories in Probability and Statistics Opens URI Virtual Laboratories in Probability and Statistics

Processing

Option Description
MikTeX Opens URI MiKTeX project page
Txt2tags Opens URI Txt2tags ONE source, MULTI targets
Deplate Opens URI Sourceforge.net Deplate

Help

Option Description
Main See options ...
English See options ...
French See options ...
Portuguese (Brazil) See options ...
Spanish See options ...
About Opens the About interface with information about Tinn-R

Main

Option Description
User guide See options ...
Ini files (path information) Displays a single dialog with the path information of ini files for Tinn-R
Citation (put on clipboard) Places a text containing the Tinn-R citation in the clipboard
File conversion (introduction) See options ...

User guide

Option Description
HTML Opens the HTML user guide
t2t Opens the main source file user_guide.t2t of the t2t user guide

File conversion (introduction)

Option Description
Txt2tags (*.t2t) Opens the file txt2tags_intro.t2t
Deplate (*.dplt) Opens the file deplate_intro.t2t

English

Option Description
Recognized words (R) Opens the file Tinn-R_recognized words.r
Example of script (R) Opens the file Tinn-r_example of script.r

French

Option Description
Mots reconnus (R) Opens the file Tinn-R_mots reconnus.r
Exemple de script (R) Opens the file Tinn-r_exemple de script.r

Portuguese (Brazil)

Option Description
Palavras reconhecidas (R) Opens the file Tinn-R_palavras reconhecidas.r
Exemplo de script (R) Opens the file Tinn-R_exemplo de script.r

Spanish

Option Description
Palabras reconocidas (R) Opens the file Tinn-R_palabras reconocidas.r

What is new?

This topic provides information about what is new in Tinn-R.

Total of versions released: 170

2010 (10 versions)

2.3.7.1 (Nov/24/2010)

2.3.7.0 (Nov/22/2010)

2.3.6.3 (Nov/14/2010)

2.3.6.2 (Nov/13/2010)

2.3.6.1 (Nov/12/2010)

2.3.6.0 (Nov/10/2010)

2.3.5.2 (Apr/11/2010)

2.3.5.1 (Mar/28/2010)

2.3.5.0 (Mar/04/2010)

2.3.4.4 (Jan/10/2010)

2009 (16 versions)

2.3.4.3 (Dec/21/2009)

2.3.4.2 (Dec/18/2009)

2.3.4.1 (Dec/13/2009)

2.3.4.0 (Dec/06/2009)

2.3.3.1 (Nov/10/2009)

2.3.3.0 (Nov/09/2009)

2.3.2.6 (Nov/07/2009)

2.3.2.5 (Nov/03/2009)

2.3.2.3 (Ago/06/2009)

2.3.2.2 (Jul/20/2009)

2.3.2.1 (Jul/19/2009)

2.3.2.0 (Jul/18/2009)

2.3.1.0 (Jul/15/2009)

2.3.0.0 (Jul/10/2009)

2.2.0.2 (Feb/09/2009)

2.2.0.1 (Feb/05/2009)

2008 (14 versions)

2.1.1.6 (Nov/17/2008)

2.1.1.5 (Nov/12/2008)

2.1.1.4 (Nov/10/2008)

2.1.1.3 (Nov/04/2008)

2.1.1.2 (Oct/20/2008)

2.1.1.1 (Oct/15/2008)

2.0.0.7 (Sep/04/2008)

2.0.0.6 (Aug/21/2008)

2.0.0.5 (Aug/17/2008) - pre-release

2.0.0.4 (Aug/12/2008) - pre-release

2.0.0.3 (Aug/05/2008) - pre-release

2.0.0.2 (Jul/23/2008) - pre-release

2.0.0.1 (Jul/22/2008) - pre-release

Option Description
Auto indent Will indent the caret on new lines with the same amount of leading white space as the preceding line
Auto size scroll width Automatically resizes the MaxScrollWidth property when inserting text
Drag and drop editing Allows you to select a block of text and drag it within the document to another location
Alt sets column mode Holding down the <ALT> key will put the selection mode into columnar format
Maintain caret column When moving through lines w/o cursor past EOL, keeps the X position of the cursor
Want tabs When active <TAB> and <SHIFT><TAB> act as block indent, unindent when text is selected
Smart tabs When tabbing, the cursor will go to the next non-white space character of the previous line
Smart tab delete Similar to Smart Tabs, but when you delete characters
Enhance home key Enhances HOME key positioning, similar to visual studio
Enhance end Key Enhances END key positioning, similar to JDeveloper
Hide scrollbars as necessary If enabled, then the scrollbars will only show when necessary. If you have ScrollPastEOL, then it the horizontal bar will always be there (it uses MaxLength instead)
Disable scroll arrows Disables the scroll bar arrow buttons when you can't scroll in that direction any more
Half page scroll When scrolling with page-up and page-down commands, only scroll a half page at a time
Scroll by one less Forces scrolling to be one less
Scroll past end of file Allows the cursor to go past the end of file marker
Scroll past end of line Allows the cursor to go past the last character into the white space at the end of a line
Show scroll hint Shows a hint of the visible line numbers when scrolling vertically
Scroll hint follows mouse The scroll hint follows the mouse when scrolling vertically
Tabs to spaces Converts a tab character to a specified number of space characters
Trim trailing spaces Spaces at the end of lines will be trimmed and not saved
Group undo When undoing/redoing actions, handle all continuous changes of the same kind in one call instead undoing/redoing each command separately
Right mouse moves cursor When clicking with the right mouse for a pop-up menu, move the cursor to that location
Show special chars Shows the special characters

2007 (26 versions)

1.19.4.7 (Dec/23/2007)

1.19.4.6 (Dec/17/2007)

1.19.4.5 (Dec/14/2007)

1.19.4.4 (Dec/13/2007)

1.19.4.3 (Dec/12/2007)

1.19.4.2 (Dec/11/2007)

1.19.4.1 (Dec/01/2007)

1.19.4.0 (Nov/29/2007)

1.19.3.1 (Nov/15/2007)

1.19.3.0 (Nov/12/2007)

1.19.2.3 (Mar/05/2007)

1.19.2.2 (Feb/22/2007)

1.19.2.1 (Feb/19/2007)

1.19.2.0 (Feb/16/2007)

1.19.1.13 (Feb/13/2007)

1.19.1.12 (Feb/11/2007)

1.19.1.11 (Feb/07/2007)

1.19.1.10 (Feb/04/2007)

1.19.1.9 (Jan/25/2007)

1.19.1.8 (Jan/24/2007)

1.19.1.7 (Jan/23/2007)

1.19.1.6 (Jan/21/2007)

1.19.1.5 (Jan/09/2007)

1.19.1.4 (Jan/05/2007)

1.19.1.3 (Jan/04/2007)

1.19.1.2 (Jan/01/2007)

2006 (64 versions)

1.19.1.1 (Dec/27/2006)

1.19.1.0 (Dec/26/2006)

1.19.0.18 (Dec/13/2006)

1.19.0.17 (Dec/10/2006)

1.19.0.16 (Dec/08/2006)

1.19.0.15 (Dec/07/2006)

1.19.0.14 (Dec/06/2006)

1.19.0.13 (Dec/04/2006)

1.19.0.12 (Dec/04/2006)

1.19.0.11 (Nov/30/2006)

1.19.0.10 (Nov/30/2006)

1.19.0.9 (Nov/29/2006)

1.19.0.8 (Nov/28/2006)

1.19.0.7 (Nov/27/2006)

1.19.0.6 (Nov/23/2006)

1.19.0.5 (Nov/21/2006)

1.19.0.4 (Nov/18/2006)

1.19.0.3 (Nov/17/2006)

1.19.0.2 (Nov/09/2006)

1.19.0.1 (Nov/07/2006)

1.19.0.0 (Nov/06/2006)

1.18.7.3 (Oct/30/2006)

1.18.7.2 (Oct/30/2006)

1.18.7.1 (Oct/26/2006)

1.18.7.0 (Oct/25/2006)

1.18.6.13 (Oct/24/2006)

1.18.6.12 (Oct/22/2006)

1.18.6.11 (Oct/20/2006)

1.18.6.10 (Oct/20/2006)

1.18.6.9 (Oct/17/2006)

1.18.6.8 (Oct/10/2006)

1.18.6.7 (Oct/08/2006)

1.18.6.6 (Oct/06/2006)

1.18.6.5 (Oct/03/2006)

1.18.6.4 (Oct/01/2006)

1.18.6.3 (Sep/29/2006)

1.18.6.2 (Sep/28/2006)

1.18.6.1 (Sep/28/2006)

1.18.6.0 (Sep/26/2006)

1.18.5.12 (Sep/15/2006)

1.18.5.12 (Sep/13/2006)

1.18.5.11 (Sep/12/2006)

1.18.5.10 (Sep/11/2006)

1.18.5.9 (Sep/10/2006)

1.18.5.8 (Ago/03/2006)

1.18.5.7 (Ago/01/2006)

1.18.5.6 (Jun/24/2006)

1.18.5.5 (May/29/2006)

1.18.5.4 (May/28/2006)

1.18.5.3 (May/27/2006)

1.18.5.2 (May/22/2006)

1.18.5.1 (May/20/2006)

1.18.4.5 (Apr/07/2006)

1.18.4.4 (Apr/02/2006)

1.18.4.3 (Mar/28/2006)

So, the old backups will not be compatible anymore with this and future versions. This version will recognize the basic old system configurations, but not all syntax preferences. Sorry for the inconvenience, but, it was necessary. From now on, Tinn-R will make real system (all ini files) backup of your settings and preferences.

1.18.3.0 (Mar/16/2006)

So, old backups will not be compatible anymore with this and next versions. This version will recognizes the basic old system configurations, but not the syntax preferences. Sorry for the inconvenience, but, it was necessary. From now, Tinn-R will make real system (all ini files) backup of your settings and preferences.
These highlighters haven't priorities when you set the syntax color preferences. Thus, if you change the colors' preferences of any of these multi-highlighters (Sweave, HTML complex and PHP complex) these settings will be valid only in the current Tinn-R session and will not be saved when Tinn-R is closed. So, if you want to make permanent changes, set the preferences from all simple highlighters (R, TeX, HTML, JavaScript and PHP).

1.18.2.1 (Mar/08/2006)

1.18.2.0 (Mar/06/2006)

DEPRECATED! These highlighters have priorities when you set the syntax color preferences. Thus, if you change the colors' preferences of any of these simple highlighters (TeX, R, HTML, JavaScript or PHP) these settings will be valid only in the current Tinn-R session and will not be saved when Tinn-R is closed. So, if you want to make permanent changes, set the preferences of all these simple highlighters (R, TeX, HTML, JavaScript and PHP) from the multi-highlighters (Sweave, HTMLcomplex and PHPcomplex) respectively. DEPRECATED!

1.18.1.10 (Feb/18/2006)

1.18.1.9 (Feb/18/2006)

Hence, the full power of LaTeX (for high-quality typesetting) and S (for data analysis) can be used simultaneously. For more information see ?Sweave from R.

1.18.1.8 (Feb/12/2006)

1.18.1.7 (Jan/14/2006)

1.18.1.6 (Jan/10/2006)

1.18.1.5 (Jan/01/2006)

2005 (25 versions)

1.18.1.4 (Dec/24/2005)

1.18.1.3 (Dec/17/2005)

1.18.1.2 beta (Dec/11/2005)

1.18.1.1 beta (Dec/03/2005)

1.17.2.6 (Oct/27/2005)

1.17.2.5 (Oct/25/2005)

1.17.2.4 (Oct/08/2005)

1.17.2.3 (Oct/03/2005)

1.17.2.2 (Oct/02/2005)

1.17.1.1 (Aug/28/2005)

1.16.1.8 (Aug/07/2005)

1.16.1.7 (Aug/05/2005)

1.16.1.5 (Jul/15/2005)

1.16.1.4 (May/29/2005)

1.16.1.3 beta (May/22/2005)

The first menu allows you to select a given block of code (line start and line end) to send it at once to the R interpreter and the last menu entry allows you to clear an existing marked block. Bookmark 0 is used to mark the beggining of a marked block and bookmark 1 is used to mark its end. Unmark remove them only if they were marked with the Block/Mark tool. Otherwise, they are treated as simple bookmarks. Note that, whatever the way you defined them, you can always change their position as usual. There is a distinct marked block defined for each open file, and the tools are enabled only if a block is marked for the current active document.
The translation was made by Jairo Cugliari: thanks Jairo, very much!

1.15.1.7 (Apr/07/2005)

1.15.1.6 beta (Mar/19/2005)

1.15.1.5 beta (Mar/17/2005)

1.15.1.4 beta pre-release (Mar/12/2005)

1.15.1.3 beta pre-release (Mar/06/2005)

1.15.1.2 beta pre-release (Mar/05/2005)

1.15.1.1 beta pre-release (Mar/01/2005)

0.0.9.4 r1.15 beta 2 (Feb/11/2005)

0.0.9.3 r1.15 beta 1 (Feb/11/2005)

0.0.9.3 r1.14 (Feb/11/2005)

2004 (16 versions)

0.0.9.3 r1.14 beta 9 (Dec/04/2004)

0.0.9.2 r1.14 beta 8 (Oct/2004)

0.0.9.1 r1.14 beta 7 (Oct/2004)

0.0.9.1 r1.14 beta 6 (Sep/2004)

0.0.9.0 r1.14 beta 5 (Sep/2004)

0.0.9.0 r1.14 beta 4 (Aug/2004)

0.0.9.0 r1.14 (Aug/2004)

0.0.9.0 r1.13 (Jul/2004)

0.0.9.0 r1.12 (Jun/2004)

0.0.9.0 r1.11 (Jun/2004)

0.0.9.0 r1.10 (May/2004)

0.0.9.0 r1.09 (Mar/2004)

0.0.8.9 r1.08 (Mar/2004)

0.0.8.9 r1.07 (Feb/2004)

0.0.8.8 r1.06 (Feb/2004)

0.0.8.8 r1.05 (Feb/2004)