This section provides a brief overview of the Tinn-R project.
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:
it a small document and easy to follow
it takes one mouse click
another mouse click
only takes one mouse click for each action
If you have any questions we suggest you consult this user guide.
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.
Do you:
If you answered YES to any of the questions above, then Tinn-R is a good option for you!
We are constantly on the move!
Absolutely NOT! It's free as in beer and licensed under GPL.
Tinn-R made my life easier ... thanks for creating it.
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.
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.
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.
This section provides the basics about the Tinn-R project.
This section provides information on Tinn-R configuration and associated applications.
Tinn-R requires R to run in SDI mode
. So, Tinn-R is not compatible neither with Rgui in MDI mode (only SDI) nor with S-PLUS. The latest compatible version was the historic 1.17.2.4.
Tinn-R requires R to run either Rterm or Rgui in SDI mode
. There are four alternatives you can choose from: Rterm, Rgui in SDI mode, SciViews GUI (which also requires R in SDI mode), or JGR.
Edit/GUI preferences...
, set SDI and click on Save
, then OK
without changing the name of the proposed file. Then, click OK
or Cancel
in the Rgui Configuration Editor
(ignore any eventual messages), and restart Rgui (changes will not be taken into account in the current session).
Rconsole
:
## Style # This can be `yes' (for MDI) or `no' (for SDI). MDI = no
--sdi
after the ...\Rgui.exe
in the Target
box. To do this, right click on your shortcut, select Properties
and navigate to the Shortcut
tab.
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='')
A example of the Rprofile.site
file can be obtained from SourceForge. Just download it and make changes to fit your needs.
rename (or delete) the folder where Tinn-R stores the ini files
. The unistall is necessary since Tinn-R does not downgrade automatically. If you encounter any problems while downgrading, check the ini folder and respective files.
SciViews
bundle, then type guiDDEInstall()
in R and that's all
!
> install.packages('SciViews', dep=T) > guiDDEInstall()
../etc/Rprofile.site
in the R install directory:
#=============================================================== # Tinn-R: necessary packages and functions #=============================================================== library(utils) necessary = c('svIDE', 'svIO', 'svSocket', 'R2HTML') installed = necessary %in% installed.packages()[, 'Package'] if (length(necessary[!installed]) >=1) install.packages(necessary[!installed], dep = T) library(svIDE) library(svIO) library(svSocket) library(R2HTML) guiDDEInstall()
.../etc/Rprofile.site
, a nice additional functionality is provided by adding the two lines below BEFORE
the library(svIDE)
command:
options(IDE = 'C:/Tinn-R/bin/Tinn-R.exe') options(use.DDE = T)The first line tells R that you want to use Tinn-R as your IDE (Integrated Development Environment). To make this happen, you should change the path that leads to where
Tinn-R.exe
is installed if it happens to be different from the default configuration. The second line indicates that you want to start the DDE server automatically.
By doing this, Tinn-R will start automatically once you invoke R.
Options: return focus to editor after send/control Rgui
which enables the user to configure the focus control. When checked
:
go back
to the editor after any send to or R control action;
go back
to the editor after any send to or R control action;
maintened
in this interface (IO);
options(debug.catfile = 'stdout')
UserDicEditor
which enables the editing of dictionaries.
inverse DVI search
. To get this function to work, include in your DVI previewer the path of the binary executable file for Tinn-R along with the parameters for file and line. For example, using YAP under Miktex, the configuration would be (assuming a default path for Tinn-R):
C:\Tinn-R\bin\Tinn-R.exe "%f;%l"
--src-specials
;
latex -c-style-errors --src-specials and bibtex --src-specials
minimal and human readable markup
to: HTML, XHTML, SGML, LaTeX, Lout, UNIX man page, Wikipedia, Google Code Wiki, DokuWiki, MoinMoin, MagicPoint (mgp), and PageMaker. It is simple and fast, featuring automatic TOC, macros, filters, include, tools, GUI, CLI, Web interfaces, translations, and extensive documentation.
Options/Application/Processing/Txt2tags
and add information on parameters (-t
is the default), interpreter path (python.exe
) and the conversor (txt2tags python script
);
Options/Application/Processing/Deplate
and add information on parameters (-f
is the default), the interpreter path (ruby.exe
), and the conversor (deplate.rb ruby script
);
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.
This section provides information about keyboard shortcuts.
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)
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)
CTRL + END : End of a doc CTRL + HOME : Beginning of a doc END : End of a line HOME : Beginning of a line
CTRL + F : Find F3 : Find again SHIFT + CTRL + F : Search in files CTRL + R : Replace CTRL + G : Go to line
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)
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
CTRL + NUMBER[0..9] : Go to mark (no numeric keypad) SHIFT + CTRL + NUMBER[0..9] : Mark (no numeric keypad)
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
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
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
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)
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
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
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
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
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
SHIFT + CTRL + I: Insert dimensional element (LaTeX)
CTRL + F : Search text CTRL + G : Go to CTRL + R : Replace text F3 : Search again
SHIFT + CTRL + C : Selection: set to column mode SHIFT + CTRL + L : Selection: set to line mode SHIFT + CTRL + N : Selection: set to normal mode
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
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)
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)
CTRL + D : Possible option CTRL + Q : Possible option
SHIFT + CTRL + D : Possible option SHIFT + CTRL + Q : Possible option
CTRL + E : Refresh R environment SHIFT + CTRL + E : Refresh R explorer or filter
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 + - : 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 (Project) : Delete selected group or file
END : End line
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 : Beginning line
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
This section provides information on Frequently Asked Questions (FAQ).
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.exe
and select Create shortcut
;
Tools/Backup or Restore system configuration
or Database
. Just backup your config file on one computer, copy it to the computer where you intend to use the same preference then it restore them there
Help/Main/Ini files (path information)
.
Open with/Choose program...
in the context menu;
Browse
in the Open with
dialog box and then select Tinn-R.exe
;
Always use the selected program to open this kind of file
is selected;
OK
.
Options/Application/R/Path
.
Rgui.exe
from, for instance, C:\Program Files\R\R-X.X.X\bin\Rgui.exe
).
Note: to use R from within Tinn-R, you must first install it from http://cran.r-project.org
Edit/GUI preferences
, switch between (MDI/SDI), click on Save
, and OK
without changing the name of the file. Then click OK
or Cancel
in the Rgui Configuration Editor
ignoring any possible messages, and restart Rgui. Notice that changes will not be taken into account in your current session and so you do have to restart.
Remember that starting from version 1.18.X.X, Tinn-R is no longer compatible with Rgui in MDI mode (only SDI), nor with S-PLUS. The latest compatible version is 1.17.2.4.
Options/Colors (preference)
. To change color scheme on other computers, just use the Options/Backup/Restore system options
configuration functions (See details ...).
sd(
in a R code document, then Tinn-R recognizes that you call the sd
R function and reminds you of its syntax by showing the following tip: x, na.rm=FALSE
, that is, sd
accepts two arguments: x
, and na.rm
with the latter having FALSE
as the default value.
CTRL + *
.
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)
.
> options(IDE = "C:/Tinn-R/bin/Tinn-R.exe")Replace the path by the present location of Tinn-R.exe on your computer if different from the location above. Then you will indicate that you want to start the DDE server automatically by setting:
> options(use.DDE = TRUE)At this point, Tinn-R will be automatically started when you load svIDE, at the same time as the R call-tip server is installed (see FAQ 3.7):
> library(TinnR)If those steps work well in manual mode, but you now want them to run whenever you start R, edit the
Rprofile.site
file (located in the \etc\ subdirectory of R. File location varies, but it should be under something like C:\Program Files\R\R-X.X.X\etc\Rprofile.site). Add the above-mentioned three lines of code at the end of the Rprofile file. From now on, Tinn-R will start every time you open a R session:
options(IDE = "C:/Tinn-R/bin/Tinn-R.exe") options(use.DDE = TRUE) library(TinnR)A copy of
Rprofile.site
file created by José Cláudio Faria can be obtained from SourceForge, which you adapt according to your needs. To make sure that everything works well and smoothly, close both R and Tinn-R and restart R. Tinn-R should start concomitantly. Now, create a very simple function in R such as:
> cube <- function(x) x^3Switch to Tinn-R and type:
cube(
. You should get a call-tip displaying x
if the R call-tip server was correctly installed.
R/Hotkeys of R
. There, define your favorite hotkeys for the various R tools and make sure to activate them (Option -> Active).
Ctrl+Tab
to go to next file, and Ctrl+Shift+Tab
to go to previous ones when several files are loaded simultaneously in Tinn-R.
->
is Ctrl+Add
key (numeric keypad). Similarly, Ctrl+Subtract
(numeric keypad) is a shortcut for <-
. ->
and <-
, both being assignment symbols in the S/R languages.
Options/Editor/Advanced options
tab and check (x) Alt sets column modes
. Once this is done, by pressing Alt
key while selecting your text with the mouse in Tinn-R, the selection will be done in column mode.
Options/Selection mode
or by clicking on the selection mode place at the status bar. The available options are: smNormal
, smLine
and smColumn
.
Ctrl+Shift+[0-9]
(a key from 0 to 9). Then, to go to the corresponding bookmark just use Ctrl+[0-9]
. A visual indicator appears in the right margin at the location of your bookmarks to remind you where they are.
Ctrl+Shift+[0-9]
to set bookmarks and then use Ctrl+[0-9]
to navigate to them). It also displays the respective line numbers. You must set gutter Visible
in Options/Main/Editor/Display tab
(and also Show line numbers
) to activate this feature.
topmost
window on top of R using Options/On top
. The downside is that Tinn-R will permanently hides the R console and there is a chance that you won't see a part of the output generated in R during your step-by-step code execution.
debug
package from CRAN and use the mtrace
function available from there.
Computer
tab allows you to explore your computer disks and open one or several files without using File/Open
, or switching to the Windows file explorer. The Project
tab is a convenient manager for all files collected in a given project.
Edit/Copy formatted
. Three options are available: RTF, HTML and TeX.
checked
Tinn-R will display the following behavior:
go back
to the editor after any send to or R control action, otherwise it will remain on Rgui. This is also true when working with a dual-monitor display.
maintened
in this interface (IO), disregarding
the Options: return focus to editor after send/control Rgui.
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).
Application options/R/Rterm
is split in two tabs: Error
and Options
. The tab Error has a option: Trying to find code errors (at the editor)*
. It enables the user to set Tinn-R in order to find code errors at the editor when sending instructions to Rterm. It may happen that the error will not be found at the right place, for example the error might be the same word appearing in a comment which comes before the actual along the code. In that case the user should use the shortcut F3 (Find again)
. The word will appear selected, than just press OK until finding the right error. The first search done internally by Tinn-R has Case sensitive and Whole word only as default, but, this is not passed to the search interface, therefore the user should just select them if convenient. If the error has number among letters Whole word only is not a good option.
This section provides information on how to work using Tinn-R.
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.
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 |
As you can see, these options allows a high level of customization with R environment.
There are resources related with conversion (Txt2tags and Deplate) and compilation (Miktex).
Tinn-R project makes it easy to work with these nice conversion tools: Txt2tags and Deplate.
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.
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.
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 |
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 |
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 |
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 |
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.
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.
This is the standard mode of selection found in many Windows applications.
This selection mode allows only for complete lines to be selected.
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.
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).
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.
Shortcuts.xml
from the origin (InstallPath/data/data.zip). Any prior changes in the the file Shortcuts.xml
in use will be lost.
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.
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:
ALT + drag the mouse
, if this option is checked, see editor options), etc.
When more than one recognized instance of R is running the priority order is:
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:
CTRL+TAB
changes the active page (IO-Log).
CTRL+ENTER
;
ALT+DOW
and ALT+UP
are the shortcut (prior/later) for command history. The history is continuous, cyclic and have 100 lines of limit.
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.
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.
Tool | Description |
---|---|
Windows expl. | See details ... |
Work expl. | See details ... |
Project | See details ... |
Tool | Description |
---|---|
Txt2tags | Sets marks, macros and settings of Txt2tags conversor |
Latex | Sets LaTeX symbols settings in a customizable manner |
Sets marks, macros, and settings for the Txt2tags conversor. A single click over any graphical will add it to the current editor.
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.
Tool | Description |
---|---|
Ini log | Displays useful results when starting Tinn-R |
Search | Interface for Search results associated with Search in files |
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.
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.
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 ....
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.
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.
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.
The R tip was generated using resources of the SciViews bundle by Philippe Grosjean.
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.
Tool | Description |
---|---|
Explorer | Simple and functional graphical interface of objects of the R environment |
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).
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.
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).
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.
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).
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.
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.
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.
Ab
, AB
and ab
are all treated as different words whereas they are not if the option is not set.
ab
is the search string the system will not match occurrences of words like abc
or cab
.
The direction to search. This option is ignored if searching in selected text.
The Search in files dialog allows you to match a criteria in all opened files and/or in files on disk:
Ab
, AB
and ab
are all treated as different words.
ab
is the search string the system will not match occurrences of words such as abc
or cab
.
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.
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.
Read below for a brief description of available buttons.
Shortcuts.xml
from the origin (InstallPath/data/data.zip). Any prior changes in the the file Shortcuts.xml
currently being used will be lost.
help('selected function')
.
example('selected function')
.
Double click
or Enter
performs the same function.
Rcard.xml
from the origin at (InstallPath/data/data.zip
). Any prior changes in the file Rcard.xml
currently being used will be lost.
help('selected function')
.
example('selected function')
.
Double click
or Enter
performs the same function.
Rtip.xml
from the origin at (InstallPath/data/data.zip
). Any prior change in the file Rtip.xml
while being used will be lost.
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('selected function')
.
example('selected function')
.
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:
c
for more complex structures (for example: foc, fuc);
|
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.
Completion.xml
from the origin at (InstallPath/data/data.zip
). Any prior change in the file Completion.xml
being used will be lost.
This session is an adaptation. It is based on the help of the freewere PSPad editor.
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.
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.
ER | Matches |
---|---|
foobar |
foobar |
\^FooBarPtr |
^FooBarPtr |
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 |
ER | Matches |
---|---|
foo\x20bar |
foo bar (note space in the middle) |
\tfoobar |
foobar predefined by tab |
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.
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.
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 are special characters which are the essence of regular expressions. There are different types of metacharacters, described below.
ER | Description |
---|---|
^ |
Start of line |
$ |
End of line |
\A |
Start of text |
\Z |
End of text |
. |
Any character in line |
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.
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.
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.
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
.
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.
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
.
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|]
.
ER | Matches |
---|---|
foo(bar|foo) |
foobar or foofoo |
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 $&
).
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) |
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 \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>
.
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), ... |
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.
The following is a list of a few sites that contain tutorials on both regular expressions in general and their use in specific languages:
This section provides information about the main menu for Tinn-R.
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 |
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 |
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 ..\.. |
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 |
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 |
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 |
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 |
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 |
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| |
Option | Description |
---|---|
Selection | See options ... |
Word | See options ... |
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 |
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 |
Option | Description |
---|---|
Block | See options ... |
Unmark all | Unmarks all marks of the current file |
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 |
Option | Description |
---|---|
LaTeX | See options ... |
Completion | Insert the completion |
Date / Time stamp | Inserts the current system time and date |
Option | Description |
---|---|
Math | See options ... |
Header | See options ... |
Format | See options ... |
Font | See options ... |
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 } |
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 } |
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 |
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 }} |
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 |
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 ... |
Option | Description |
---|---|
Set | See options ... |
Default (to new files) | See options ... |
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.
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 |
Option | Description |
---|---|
Normal | See selection type normal ... |
Line | See selection type line ... |
Column | See selection type column ... |
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 |
Option | Description |
---|---|
Conversion | See options ... |
Compilation (LaTeX to) | See options ... |
Viewer | See options ... |
Option | Description |
---|---|
Txt2tags to | See options ... |
Deplate to | See options ... |
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 ...
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 ...
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) |
Option | Description |
---|---|
DVI | See options ... |
See options ... | |
HTML | See options ... |
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 |
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 |
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 |
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 |
Option | Description |
---|---|
System configuration | Backups Tinn-R configuration (ini files) |
Database | Backups database (card.xml and tips.xml) |
Option | Description |
---|---|
System configuration | Restores a prior Tinn-R backup (ini files) |
Database | Restores a prior database backup (card.xml and tips.xml) |
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
Option | Description |
---|---|
Strings | Sorts strings |
Numbers | Sorts numbers |
Dates | Sorts dates |
Sort works on the entire document unless some text is selected
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) ... |
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.**
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 ... |
Option | Description |
---|---|
IO | See options ... |
Log | See options ... |
Option | Description |
---|---|
Save | Saves the content of the IO interface |
Save as | Saves the content of the IO interface as a new file |
Opens the Tinn-R print dialog with the content from the IO interface |
Option | Description |
---|---|
Save | Saves the content of the Log interface |
Save as | Saves as the content of the Log interface |
Opens the Tinn-R print dialog with content from Log interface |
Option | Description |
---|---|
IO | Clear IO |
Log | Clear Log |
IO and Log | Clear IO and Log |
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 |
Option | Description |
---|---|
Rterm (maximize) | Maximizes the Rterm interface |
Rterm (divide) | Divides the Rterm interface |
Rterm (minimize) | Minimizes the Rterm interface |
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 |
Option | Description |
---|---|
IO | See options ... |
Log | See options ... |
Option | Description |
---|---|
Text | Sets the IO highlighter to Text |
R | Sets the IO highlighter to R |
Option | Description |
---|---|
Text | Sets the Log highlighter to Text |
R | Sets the Log highlighter to R |
Option | Description |
---|---|
IO | Sets Word wrap to IO |
Log | Sets Word wrap to Log |
Option | Description |
---|---|
Save | Saves the history |
Load | Loads the history |
Prior | Prior section of the history |
Next | Next section of the history |
Option | Description |
---|---|
Save | Saves the workspace |
Load | Loads the workspace |
Option | Description |
---|---|
Increase | Increase the font size |
Decrease | Decrease the font size |
Option | Description |
---|---|
Rconfigure.r | Opens the file Rconfigure.r for edition |
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) |
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 |
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 |
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 |
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 ... |
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 ... |
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 ... |
Option | Description |
---|---|
Rterm (maximize) | Maximizes the Rterm interface |
Rterm (divide) | Splits the Rterm interface |
Rterm (minimize) | Minimizes the Rterm interface |
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 |
Option | Description |
---|---|
IO | See options ... |
Log | See options ... |
Option | Description |
---|---|
Text | Sets the IO highlighter to Text |
R | Sets the IO highlighter to R |
Option | Description |
---|---|
Text | Sets the Log highlighter to Text |
R | Sets the Log highlighter to R |
Option | Description |
---|---|
IO | Sets Word wrap to IO |
Log | Sets Word wrap to Log |
Option | Description |
---|---|
Increase | Increase font size |
Decrease | Decrease font size |
Option | Description |
---|---|
Tools (show/hide) | Toggles (show/hide) Tools interface |
Size | See options ... |
Resources | See options ... |
Option | Description |
---|---|
Tools (maximize) | Maximizes the Tools interface |
Tools (divide) | Divides the Tools interface |
Tools (minimize) | Minimizes the Tools interface |
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 ... |
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 |
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 |
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 |
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 |
Option | Description |
---|---|
R (show/hide) | Toggles (show/hide) R tab of Tools interface |
Explorer (show/hide) | Toggles (show/hide) Explorer tab of R |
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 |
Option | Description |
---|---|
Files | See options ... |
Tools | See options ... |
Rterm | See options ... |
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 |
Option | Description |
---|---|
Horizontal | Horizontally splits the editor |
Vertical | Vertically splits the editor |
Remove | Removes split |
Option | Description |
---|---|
Increase | Increase font size |
Decrease | Decrease font size |
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 |
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 ... |
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 |
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 |
Opens URI Google and lists the results associated with the word under the cursor or selected text |
Option | Description |
---|---|
Selected text | See options ... |
Mailing list archives | Opens URI S-News Mailing List Archives |
Option | Description |
---|---|
Archives search | Opens URI S-news archive search and lists the results associated with the word under the cursor or selected text |
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 |
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 |
Option | Description |
---|---|
SourceForge (main) | Opens URI Sourceforge.net Tinn-R |
SciViews | Opens URI SciViews Tinn-R |
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 |
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 |
Option | Description |
---|---|
MikTeX | Opens URI MiKTeX project page |
Txt2tags | Opens URI Txt2tags ONE source, MULTI targets |
Deplate | Opens URI Sourceforge.net Deplate |
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 |
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 ... |
Option | Description |
---|---|
HTML | Opens the HTML user guide |
t2t | Opens the main source file user_guide.t2t of the t2t user guide |
Option | Description |
---|---|
Txt2tags (*.t2t) | Opens the file txt2tags_intro.t2t |
Deplate (*.dplt) | Opens the file deplate_intro.t2t |
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 |
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 |
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 |
Option | Description |
---|---|
Palabras reconocidas (R) | Opens the file Tinn-R_palabras reconocidas.r |
This topic provides information about what is new in Tinn-R.
Total of versions released: 170
Enter or Double click
, a recognized Tinn-R file from Windows environment, was fixed.
Application options
interface was a bit changed:
Application options/R/Rterm
was split in two tabs: Error
and Options
. The tab Error has a new option: Trying to find code errors (at the editor)*
. It enables the user to set Tinn-R in order to find code errors at the editor when sending instructions to Rterm. It may happen that the error will not be found at the right place, for example the error might be the same word appearing in a comment which comes before the actual along the code. In that case the user should use the shortcut F3 (Find again)
. The word will appear selected, than just press OK until finding the right error. The first search done internally by Tinn-R has Case sensitive and Whole word only as default, but, this is not passed to the search interface, therefore the user should just select them if convenient. If the error has number among letters Whole word only is not a good option.
fully compatible with Windows 7 and R 2.12.0
.
R/Configure/Permanent (Rprofile.site)
.
Application options/R/Path
has a new option: Architecture (bit)
. It enables the user to set R in order to run Rterm.exe or Rgui.exe in either 32 or 64 bit. They run independently one form the other. If the above dialog option Use latest version (always)
is set to No, the dialog box Architecture (bit)
becomes disabled. In other words, the path must be manually set. In this case, the user preference (if valid) will not be changed when Tinn-R is starting. If the dialog Use latest version (always)
is set to Yes, the path of the latest R version (32 or 64) bit will found automatically. In case the user computer is 64 bit and it has latest R version installed with both options 32 or 64 bit the latest has preference.
TAB
in the prompt. The general behavior is not as friendly as in Rgui or in Linux console, but it is working.
User guide
was revised by Ricardo Pietrobon
in an attempt to improve its flow and style. This is a work in progress, and so we should be improving it over time!
User guide
was revised by Ricardo Pietrobon
to improve its style and readability. So far, we have partial revisions implemented to chapters Overview, Basics, Working with, Menu description and parts of What is new
.
Application options/R/Basic
has a new option: Smart (all send)
. When this option is set to Yes
, all single line commands will not be send through source(...)
but as instead as Send line
.
User guide
is being revised by Ricardo Pietrobon
and soon will be more readable and intelligible. Up to now only chapters Overview and Basics
have been worked out. Many thanks for his hard work!
debug (package base)
in the Rterm interface was fixed. It was generating a exception Access violation at address NUMBER in module 'Tinn-R.exe'. Read of address FFFFFFFF
. This bug started in version 2.3.4.0 (Dec/06/2009).
Search in Files
and its links in the Tools panel was fixed. It was not going to the correct line in the file. This bug was related to the implementation of the resource Remember file state in version 2.3.2.5 (Nov/03/2009).
Editor: current line to top
in the R toolbar.
sem
by Jonh Fox (functions: read.moments
and specify.model
) which generated an error when submitting line by line within Rterm interface was fixed. Many thanks to Frank
for pointing it out!
dep=TRUE
was removed from the line install.packages(necessary[!installed], dep=TRUE)
, since the Hmisc package, which enables Tinn-R to export R objects to TeX format, has several dependencies. This change will speed up the basic R configuration.
## Check necessary packages necessary <- c('TinnR', 'svSocket') installed <- necessary %in% installed.packages()[, 'Package'] if (length(necessary[!installed]) >=1) install.packages(necessary[!installed])
Auto hide
option was fixed.
TAB
as the following: > ba (followed by TAB)
. This procedure will send to R interpreter the instruction apropos('^bla', case.insensitive=FALSE)
and it will not be visible. R will returns a character vector giving the names of all objects in the search list matching ba
. For example:
> ba (followed by TAB) [1] "backsolve" "backSpline" "bacteria" [4] "balanceMethodsList" "ballocation" "bandwidth.kernel" [7] "bandwidth.nrd" "barplot" "barplot.default" [10] "bartlett.test" "base.-.POSIXt" "base.+.POSIXt" [13] "base.difftime" "base.help" "base.library" [16] "base.loadhistory" "base.lockEnvironment" "base.rbind.data.frame" [19] "base.save.image" "base.savehistory" "baseenv" [22] "basehaz" "basename" > ba
CTRL+TAB
inside the Rterm interface whenever it was not split.
show/hide
option in the toolbars.
my.function(
and my.data$
.
Rprofile.site
, before to insert the necessary script. If the user receive a message error, it necessary to change manually the security properties enabling Full control
of the folder etc
where the R is installed.
Rgui
. Now it is possible to avoid any windows caption with the word Console
to be recognized as a R instance.
Clipboard
. It enables the user to send the content of the clipboard easily to Rterm.
TinnR package version 1.0.1 or 1.0.2
Tinn-R did starts when R starts with the instructions below in the Rprofile.site:
# uncoment the line below if you want Tinn-R starts always R starts options(IDE='C:/Tinn-R/bin/Tinn-R.exe')The origin of this bug was the change of the packages
svIDE
(and others no more necessaries) to TinnR package. One function that should do the job was not present (TinnR package version 1.0.1 or 1.0.2
). In the new version of the TinnR package (1.0.3)
, this function trStartIDE
was added. The option R/Configure/Permanent (Rpfile.site)
will generates a new script:
##=============================================================== ## Tinn-R: necessary packages and functions ## Tinn-R: >= 2.2.0.2 with TinnR package >= 1.0.3 ##=============================================================== library(utils) ## Check necessary packages necessary = c('TinnR', 'svSocket') installed = necessary %in% installed.packages()[, 'Package'] if (length(necessary[!installed]) >=1) install.packages(necessary[!installed], dep=T) ## Load packages library(TinnR) library(svSocket) ## Uncoment the two lines below if you want Tinn-R starts always R starts ## (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='')If you uncomment this part:
## Uncoment the two lines below if you want Tinn-R starts always R starts ## (Observation: check the path of Tinn-R.exe) options(IDE='C:/Tinn-R/bin/Tinn-R.exe') trStartIDE()The new TinnR package will do the job!
doc/english/user_guide
where Tinn-R is installed. In this way, we hope that the user will be able to help us in making it better, day by day, by sending us any useful contribution.
CTRL+B
) was added also to the Rterm interface (IO and Log).
python.exe
) and the conversor (txt2tags python script
);
ENTER
(prompt line), or CTRL+ENTER
(any prior line).
Dock
page. It enables the user to fix any possible problem related with visualization (dock/hide) and disposition of the Tools and Rterm
interface.
To all options enabling the control of R, THE FOCUS WILL BE MAINTENED IN THE CURENT WORK INTERFACE Editor or IO, DISREGARDING the Options: return focus to editor after send/control R (toogle)
.
options(debug.catfile = 'stdout')
qqq()
to quits the debugger.
inverse DVI search
. It is only necessary to set in your DVI previewer the path of the binary of Tinn-R and the parameter for file and line. For example, using the YAP of Miktex, the necessary configuration will be (assuming the path default of Tinn-R):
C:\Tinn-R\bin\Tinn-R.exe "%f;%l"be sure that there is not space between the parameters %f(related to file) and %l(related to line). Inside Tinn-R (Options/Application/Processing/Latex/DVI) it is necessary to add the compilation Miktex parameter: latex -c-style-errors
--src-specials
.
Tinn-R can do it automatically with the option Restore default. Now, it is:
latex -c-style-errors --src-specials and bibtex --src-specials
.trPaths
was changed. Now, it is automatic. It was posted on Tinn-R forum by KeithJ (keith_jewell) - 2008-09-15 16:00. It is very useful in laboratories where most of users have their own account but use the same computer. Now, it is no more necessary to adapt the file Rprofile.site
for each user and R session. Many thanks to keith Jewell
for the nice suggestion.
.trPaths <- paste(paste(Sys.getenv('APPDATA'), '\\Tinn-R\\tmp\\', sep=''), c('', 'search.txt', 'objects.txt', 'file.r', 'selection.r', 'block.r', 'lines.r'), sep='')
Maria Conceição
for the suggestion.
Thomas Petzoldt
for the suggestion.
max.deparse.length (echo=TRUE)
. It is used if echo is TRUE
and gives the maximal number of characters output for the deparse of a single expression.
Frank
for point it out!
Steven
for point it out!
Steven
.
Delphi 7
of Borland.
Code Gear 2007
, the latest of Borland.
John
, Steven
and Frank
for the tests and suggestions.
plot(rnorm(1e2), main: 'It will cause error!')
will not be compatible anymore with this one and future versions
;
bkp
, was added to the ini files structure. It contains all backups of all prior user preferences not (or partially compatible) with the news version. The control of all default resources are now individual, i.e: custom, data, latex, shortcuts and syntax.
trObjSearch
and trObjList
) were reworked. These functions are distributed with the package svMisc (>= 0.9.40) of Philippe Grosjean;
.trPath
is used as additional parameter to the two functions above. It will avoid a long string like path="C:/Documents and settings/User/Application Data/Tinn-R/Tmp/..." to Windows XP or "C:/Users/jcfaria/AppData/Roaming/Tinn-R/tmp/..." on Windows Vista;
.trPath
is a list described below:
.trPath=list( Tmp ='C:/Users/jcfaria/AppData/Roaming/Tinn-R/tmp/', Search ='C:/Users/jcfaria/AppData/Roaming/Tinn-R/tmp/search.txt', Objects ='C:/Users/jcfaria/AppData/Roaming/Tinn-R/tmp/objects.txt', File ='C:/Users/jcfaria/AppData/Roaming/Tinn-R/tmp/file.r', Selection='C:/Users/jcfaria/AppData/Roaming/Tinn-R/tmp/selection.r', Block ='C:/Users/jcfaria/AppData/Roaming/Tinn-R/tmp/block.r', Lines ='C:/Users/jcfaria/AppData/Roaming/Tinn-R/tmp/lines.r' )
.trPath
inside of R is using the options: R/Configure/Temporary
or R/Configure/Permanent
, both can be found in the main menu of Tinn-R R/Configure
;
.trPath
;
.trPath
inside R is using the options: R/Configure/Temporary
or R/Configure/Permanent
, both can be found in the main menu of Tinn-R R/Configure
Rterm
interface. The IO and Log interfaces are instances of the class synEdit:
IO
: the aim was to add flexibility and power, i.e, joining the power of synEdit (editor) and the functionality of a common console. All prior user knowledge of the resources associated with the editor were preserved: marks, shortcuts, syntax, match brackets, tips, code completion, data completion, etc;
Log
: has two basic objectives:
CTRL+TAB
changes the active page (IO-Log).
CTRL+ENTER
;
ALT+DOW
and ALT+UP
are the shortcut (prior/later) for command history. Both are continuous, cyclic and have 50 lines of limit (we think it is sufficient, but if necessary, it can be augmented to 100 or more).
Open Office
suit.
Rterm
is more specific and efficient than with Rgui
. Therefore, it will receive more attention from the developers from now on. The interface with Rterm is not finished yet, but it is running nice...
Local
: to make the Rterm and Rgui console cleaner;
Remote
: for all: send, control and output.
Rterm
) the default shortcuts to view Line numbers and Special characters were changed to CTRL+ALT+L
and CTRL+ALT+K
respectivally. CTRL+L
now clear the IO and Log interface, likes Rgui
.
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 |
I can't write the file ...
in the DOS prompt. Note that any instance of the viewer (if opend)
with the caption 'FileBeeingCompiled'.pdf
will be closed.
matched brackets
are now user configurable. Set it at Options/Syntax and colors/Preferences/Brackets(FG).
will not be compatible anymore with that one and future versions
. This version will recognize the basic old system configurations, but not all preferences. Sorry for the inconvenience.
Functional LaTeX Symbols Classification Criteria (according with the KISS principle): 1. Empty 2. Natural order (ex: Greek: alpha, beta...; Solar system: Sun, Mercury...) 3. Usability 4. Structural simplicity 5. Number of straight lines 6. Number of curved lines 7. Number of sloped lines 8. Clock wise rotation Authors: José Cláudio Faria and Jorge Alexandre Wiendl Date : 11/27/2007 00:55:20 KISS : Keep it simple, stupid
Ini files
;
001_mysymbol1.gif
, 002_mysymbol2.gif
);
png
, a lot of image format can be used;
Please, don't remove or rename any of the folders or their names
;
Array, Matrix, Table and Tabbling
.
Sweave script
, was enhanced. Now, Tinn-R will search automatically only inside of the chunks
and will disregard all LaTeX texts. You must start this resource inside of any chunk
.
will not be compatible anymore with that one and future versions
. This version will recognize the basic old system configurations, but not all preferences. Sorry for the inconvenience.
any old preferences will be lost
. It will be needed to define all the personal preferences again. Sorry for the inconvenience.
LaTeX
files with bibtex
option:
Tinn-R card
was updated.
SynEdit team
.
a = round(rnorm(1000), 2) b = round(rnorm(1000), 2) c = round(rnorm(1000), 2) d = data.frame(a, b, c) write.table(d, file="clipboard")Tinn-R is frozen until R releases the clipboard. Thanks to
Igor Kojanov
for pointing out the problem and the direction of the solution.
Rcompletion.r
and Rconfigure.r
. Before that, it was necessary administrator privileges to personalize these very useful files.
Rcompletion.r
and Rconfigure.r
. It will be also included in backups of the system configuration.
CTRL + (
: Insert (or replace) (|)
CTRL + )
: Insert (or replace) ()
Rcompletion.r
and Rconfigure.r
:
Rcompletion.r
: allows the user to customize the new auto completion resource (described below);
Rconfigure.r
: allows the user to customize the R configuration.
CTRL+J
, but the user can customize it in the Editor options: Options/Main/Editor/Keystrokes. Use it, after any valid word, by pressing the keystroke. For example:
if<CTRL+J> to obtain: if ( < .. ) ifc: if ( < .. ) { } fo: for (i in 1:= ) foc: for (i in 1:= ) { } sw: switch(, a = ' ', b = ' ', ) wh: i = 0 while (i < ) { i = i + 1 }Observations:
c
to the complete or more complex structures (for example: foc, fuc);
|
symbol is used to define where the cursor will first stop after the auto completion;
Rcompletion.r
within the folder custom where the program was installed and do your own tests.
<SHIFT+CTRL++> (plus (+) on the numeric keypad): INCREASE (upper limit is 50) <SHIFT+CTRL+-> (minus (-) on the numeric keypad): DECREASE (lower limit is 1)
Tinn-R with R console
, it is no more necessary to set it in the Application options.
CTRL+
to insert content of the tip with 'R complex' and another was fixed.
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 '>>>' the tags enable the user to insert a block of URI syntax. Sweave : The main syntax is TeX, '>>=' and '@' the tags enable the user to insert a block of R syntax.
The SynHighlighterURI unit implements an URI syntax highlighter for SynEdit. Recognition of URIs is based on the information provided in the document "Uniform Resource Identifiers (URI): Generic Syntax" of "The Internet Society", that can be found at http://www.ietf.org/rfc/rfc2396.txt. Also interesting is http://www.freesoft.org/CIE/RFC/1738/33.htm which describes general URL syntax and major protocols. These protocols are recognized: ------------------------------- http:// https:// ftp:// mailto: news: or news:// nntp:// telnet:// gopher:// prospero:// wais:// As well as commonly used shorthands: ------------------------------------ someone@somewhere.org www.host.orgExample of R complex:
# <<< http://www.r-project.org/ >>> # <<< joseclaudio.faria@terra.com.br >>> # <<< phgrosjean@sciviews.org >>> mean(rnorm(100))or
# <<< http://www.r-project.org/ # joseclaudio.faria@terra.com.br # phgrosjean@sciviews.org >>> mean(rnorm(100))Therefore, by pressing
CTRL
and right button of the mouse on any valid link, it is possible to follow the link (browser, client of email, etc).
Automatically configure R (Rprofile.site)
was enhanced. The user can now decide whether the changes will be temporary
(on the current session only) or permanent
(editing automatically the Rprofile.site file). For both, if necessary, the user can edit (customize) the file Rconfigure.r in the folder doc/English where Tinn-R is installed. So we think this new resource is now more powerful and flexible.
Automatically configure R (Rprofile.site)
was added in the R main menu. It will enable the user to automatically configure the Rprofile.site file with all packages which are necessary to work efficiently. If any of those are not found, R will download and install them when starting.
SHIFT+ESPACE
was fixed.
R
inside Tinn-R
, it will open automatically in the SDI mode
, otherwise, in the default mode defined in the Rconsole configuration file. Also, if any file happens to be open, and active, the R Working Directory
will be set to its path. Otherwise, it will be set to the default path (../bin) where R was installed.
f = function(x) { x/10 + 1 }or, i.e,
any instruction with more than one single line
,
a = 0 for (i in 1:20) { a = i if(a <= 5 ) { cat('a = ', a, '(<= 5)'); cat('\n') next } if(a == 18) { cat('a = ', a, '(= 18)'); cat('\n') break } }will always to generate errors. We've been working hard in order to solve it, but it is not easy! Moreover, consider that the main aim of this protocol is to be used with R explorer interface and any other use is still experimental.
R
inside Tinn-R
, it will open automatically in the SDI mode
, otherwise, in the default mode defined in the Rconsole configuration file. Also, if there is any opened file, the R Working Directory
will be set to its path. Otherwise, it will be set to the default path (../bin) where R was installed.
right
or left
from the active tab.
CTRL+W
shortcut, it was closing two files instead of just one, was fixed.
R Console on the top
of the screen and the Tinn-R on the bottom
.
<
or <-
symbol, was fixed. The origin of this bug was a component conflict (hard coded) among the HTML brackets, declared as below:
const OpenBracket: array[THTMLBracket] of PChar=('<', '<!--', '<%'); CloseBracket: array[THTMLBracket] of PChar=('>', '-->', '%>');and the R assign symbols:
<- <<- -> ->>Therefore, if any file has HTML syntax (with any of those tags above) all text among the declared brackets is free of speller. We think it now will work nicely.
strongly recommended
that, before using this new version, the user should remove manually
that file. In order to help the user in finding out where Tinn-R stores all the ini files
, a new option was added to the main menu Tools named Ini files. The default.bin file is located in the sub-folder shortcuts. Therefore, go to the folder and delete it. Sorry for the inconvenience.
Myfile
- it will be saved as Myfile.r
(the first extension is the default);
Myfile.R
- it will be saved as Myfile.R
(R
is a valid extension and Tinn-R is now case insensitive for that purpose);
Myfile.Rhistory
- it will be saved as Myfile.Rhistory
(Rhistory is a valid extension);
Myfile.help
- it will be saved as Myfile.help.r
(help
it is not a valid extension and *.r is the default);
DELETE
to delete either groups or files, INSERT
in adding files to selected groups and <CTRL+INSERT> to add the current to the selected group.
John
for the good suggestion.
Left
- corresponds to the menu Format/Selection mode bottom to top order
;
Right
- correspond to top to bottom order
.
Michael Prager
for pointing this out to us.
Philippe
for the hard work of its selection and organization. We hope you like this new look.
Classic style of Windows
(not for XP style) is now DEPRECATED
. In another words, the old conflict among the XPMenu component that Tinn-R uses and Windows the XP skins, was fixed.
HTML
files are created by using the tool conversor txt2tags
and, the most important, it now enables the users to help us with the constructions and corrections of these files. So, sorry for any language mistake, but my native language (José Cláudio Faria) is not English and I don't want to annoy anyone, anymore, with English corrections. Please, if possible, help us, because these documents could be useful to many other users.
is marked
, Tinn-R will freeze while waiting for the MikTeX compilation to open the compiled file, in the other way it will not. In another words, whenever the Open always after compilation (option) isn't checked
Tinn-R will not freeze and the user can continue normally his job.
//Yap (Yet Another Previewer)// as DVI viewer
, because it is the default released with MikTeX distribution, and it is a very nice and fast DVI viewer. Tinn-R will open only a single instance of the Yap, but allowing as many files as the user whishes.
..\Tinn-R : ReadMe.txt file; ..\Tinn-R\data : dbRcard.dbf, dbRcard.dbt, dbRCard.ndx, dbRtip.dbf, dbRtip.dbt, dbRTip.ndx and ReadMe.txt files; ..\Tinn-R\ini : Shortcuts.tinn, Tinn.ini and ReadMe.txt ..\Tinn-R\ini\colors : customColors.ini and ReadMe.txt ..\Tinn-R\ini\syntax : C#.ini, C++.ini, ... , XML.ini and ReadMe.txt; ..\Tinn-R\ini\syntax bkp: temporary syntax file and ReadMe.txt; ..\Tinn-R\syntax : deplate.xml, txt2tags.xml and ReadMe.txt. ..\Tinn-R\temp : temporary files.
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.
.dlpt
and for txt2tags Tinn-R recognizes .t2t
. The basic highlighters, based in XML, were proposed for both, we hope the users help us in the development. Also, the interface for syntax colors preferences for both are different of the already known Tinn-R interface. So, consider that it is working nice but will be temporary.
LaTeX
files with MikTeX and view the DVI
and PDF
results (Yap and Acrobat) and also to see HTML
files in your preferred browser starting from Tinn-R.
..\Tinn-R : ReadMe.txt file; ..\Tinn-R\data : dbRcard.dbf, dbRcard.dbt, dbRCard.ndx, dbRtip.dbf, dbRtip.dbt, dbRTip.ndx and ReadMe.txt files; ..\Tinn-R\ini : Shortcuts.tinn, Tinn.ini and ReadMe.txt ..\Tinn-R\ini\colors : customColors.ini and ReadMe.txt ..\Tinn-R\ini\syntax : C#.ini, C++.ini, ... , XML.ini and ReadMe.txt; ..\Tinn-R\ini\syntax bkp: temporary syntax file and ReadMe.txt; ..\Tinn-R\temp : temporary files.
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).
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!
>>= start a R block @ close it.
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.
Suresh Krishna
.
A tip: my preferred shortcuts are: ``CTRL+D`` for tip after //(// and ``CTRL+SHIFT+D`` after '$' for code completion.
Mihai Nica
for pointing us.
CTRL+ALT+B
to CTRL+ALT+S
.
Sheldon Kelly
for suggest it.
"Severe problem! The program cannot be initiated. Please, contact the developers." "Access violation at address 'hexa number' in module 'Tinn-R'. Read address 'hexa number'." It was now fixed. This bug was related to more than one file were selected from the explorer to be opened and Tinn-R was not running. So, if Tinn-R is not running (if and only if), avoid to make it because it will open one instance of Tinn-R and one file (the first in alphabetic order) only. BTW, if Tinn-R is running, you can select simultaneously any desired number of files.
John
!
SO, IF YOU GET INCORRECT ICON DISPLAYED ON WINDOWS, AFTER INSTALLING THE NEW VERSION OF TINN-R, PLEASE, READ THE INSTRUCTIONS BELOW: For acceleration of the show of the icons Windows stores images in the ICON CACHE (ShellIconCache) a hidden icon cache file in your windows directory. Sometimes the icon of the object changes, but Windows shows the old icon instead of the former one. To solve this problem we suggest to use the program IconChanger (shareware available at http://www.shelllabs.com/). If you have just installed Tinn-R with new icon but Windows has not changed the image, the program manual advises you to choose REBUILD ICON CACHE and if it will not help then choose REMOVE ICON CACHE. If you have chosen REBUILD – the icon cache will start reconstructing at once. If you have chosen REMOVE, you will see the warning message. Choose YES, and then you should restart your computer.
CTRL+ENTER
was added. When pressed, Tinn-R sends the current line (entire) to R interpreter and adds a line break at cursor position.
Huashan
.
Uwe
.
main user
or normal user
(with restricted access) and run Tinn-R without problems in those restricted environments. This feature is very useful to educational purposes in statistical laboratories.
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. Bookmark0
is used to mark the beggining of a marked block and bookmark1
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 byJairo Cugliari
: thanksJairo
, very much!
Angus Johnson
was added to the program. It is a very useful Generic Diff Format (GDIFF) named TextDiff. The GDIFF format can be used to efficiently describe the differences between two arbitrary files or folders. The format does not make any assumptions about the type or contents of the files, and thus can be used to describe the differences between text files as well as binary files. The work was made adapting the sources code of the demo project of the component to the Tinn-R project: Thanks Angus
, very much!
Zoltan Butt
.
<ALT+LEFT> : Tools align left; <ALT+RIGHT> : Tools align Right.
Posta Giovanni
.
The caption of R can be: RGui - [R Graphics: Device 1..11 (ACTIVE)] or RGui - [R Graphics: Device 1..10 (inactive)]
Marco
!
<CTRL+Alt+Left> : Tools align left; <CTRL+Alt+Right> : Tools align Right.
Carolina
(my daughter) for basic art creation.
That is, AA : major version BB : minor version CC : release DD : build more : beta or pre-release version
CTRL+/
(divide on the numeric keypad) show/hide the Tools panel.
CTRL+Y
(delete entire line), CTRL+T
(delete word right from cursor) and CTRL+SHIFT+Y
(delete words from cursor to the end of line) that did not enable the save options, was corrected.
CTRL+*
(multiply on the numeric keypad) to insert/replace text with parameters of the current R function.
CTRL+*
(multiply on the numeric keypad) inserts/replaces text with parameters of the active function (a call-tip must be visible).
Steven
!
Serhiy Perevoznyk
. Thanks Serhiy
! So, the Dialogs are now more pretty.
Note: Tinn-R 0.0.9.0 r1.13 is now frozen and goes through a wider beta test Tinn-R 0.0.9.0 r1.14 and over are considered development versions and it is possible they show some instabilities during its development
<CTRL+ADD> key (numeric keypad) will insert/replace text with the attribution symbol '->'; <CTRL+SUBTRACT> key (numeric keypad) will insert/replace text with the attribution symbol '<-'.
Temporarily, until better solution, to work properly, if the window is horizontally split the Search/Replace must be made in the bottom (main) window, because if it's on the top window (secondary), it doesn't question the confirmation to each substitution of the text occurrence. If window is verticaly split the Search/Replace must be made in the left window (the right window do not question the confirmation to each substitution of the occurrence). For both, any key will make the synchronization of the split windows.
Why and when? if you create a new file and type: }<ENTER> and press <UP> -> bug! This was corrected: thank you Marco Groot!
Comment block : Format/Comment block <ALT+C>. Uncomment block: Format/Uncomment block <ALT+Z>.
CTRL+P
:
F7: new shortcut to Record Macro F8: new shortcut to Play Macro.