R
R-packages
Català-Valencià – Catalan
中文 – Chinese (Simplified)
中文 – Chinese (Traditional)
Česky – Czech
Dansk – Danish
Nederlands – Dutch
English – English
Suomi – Finnish
Français – French
Deutsch – German
עברית – Hebrew
हिंदी – Hindi
Magyar – Hungarian
Bahasa Indonesia – Indonesian
Italiano – Italian
日本語 – Japanese
한국어 – Korean
Македонски – Macedonian
मराठी – Marathi
Norsk – Norwegian
Polski – Polish
Português – Portuguese
Português – Portuguese (Brazil)
Русский – Russian
Slovenčina – Slovak
Slovenščina – Slovenian
Español – Spanish
Svenska – Swedish
Türkçe – Turkish
Українська – Ukrainian
Oëzbekcha – Uzbek
The R Project SVN
R-packages
(root)
/
trunk
/
Mac-GUI
/
RDocumentWinCtrl.h
@ 4635
– Rev 6245
Rev
Show changed files
|
Details
|
Compare with Previous
|
Blame
|
RSS feed
Filtering Options
From rev
To rev
Max revs
Search history for
Show All
Rev
Age
Author
Path
Log message
Diff
6245
5081 d 10 h
bibiko
/trunk/Mac-GUI/
• Improved handling of larger documents
• Fixed a crash if the R script editor has to handle _very_ long lines
6059
5289 d 5 h
bibiko
/trunk/Mac-GUI/
• further improvements for Format R Code
- keep users empty lines since (but clean them)
- sped it up a bit
- fixed mixing indentation of 4 and 2 spaces coming from deparse()
• avoid re-entering Rd tools or R code formatting methods
• made deparse's width.cutoff customizable via Pref key RScriptEditorFormatWidthCutoff; if set to 0 the window's width will be taken otherwise the user's setting
6051
5292 d 4 h
bibiko
/trunk/Mac-GUI/
• In R Script editor pressing ENTER after a simple if(), for(), while(), or function() clause or if current line has more opened parenthesis than closed will only indent the next line. This behavior is active for preference setting "Indent new lines". In addition it can be explicitly disabled if you execute the following command in the Terminal:
defaults write org.R-project.R RScriptEditorIndentNewLineAfterSimpleClause -string NO
• started to implement a "Tidy R Code" function to tidy up and format selected R code or the entire document. The idea is to wrap the selected R code by "dummy<-function(){" and "}" which will be sourced and dumped by a separate R session. Instances of "}\nelse" will be replaced by "} else" to be able to source the tidied R code. The main problem by using the R function "dump()" with "options(keep.source = FALSE)" is that any comments will be removed. To avoid this each comment will be replaced by "if(@_@_@_@the_comment){}" before the code will be sourced. This allows us to keep and indent comments even for simple if() clauses to come e.g. with
if(a==2)
#comment
print(a)
foo(..)
The only remained problem which has to be solved is the comment after a R expression like:
print(2) # print two
which will be fixed soon.
6026
5302 d 7 h
bibiko
/trunk/Mac-GUI/
• further work on Rd support:
- added to main menu: New Rd Document ⌥⌘N
- added to Rd toolbox:
-- Insert Function Rd Template ^⌥⌘F (done via prompt())
-- Insert Data Rd Template ^⌥⌘D (done via prompt())
-- Check Rd Document ^⌥⌘C
-- assigned key equivalents to PDF/HTML Preview ^⌥⌘P/^⌥⌘H
- improved output of possible warnings or errors while Rd check
-- re-format output for better reading
-- tries to figure out where the first error/warning appears and jump to it after dismissing the alert
• minor code improvements and removing of forgotten debug outputs
6010
5305 d 2 h
bibiko
/trunk/Mac-GUI/
• Improved function name parsing for toolbar list:
- 3 times faster and much more flexible and precise
by using a flex grammar
- invalid function names were displayed in red
- trial to avoid listing of function declarations
inside argument lists
- hierarchic indentations for function declarations
inside other functions
- added two pragma marker for structuring the
function list (known from C and others):
"#pragma mark -" will insert a separator line
"#pragma mark foo" will insert "foo" in blue
[note: both pragma marker have to be typed at
the beginning of a line]
6005
5306 d 3 h
bibiko
/trunk/Mac-GUI/
• added "Rd Toolbox" pull down menu to Rd Toolbar
5995
5311 d 21 h
bibiko
/trunk/Mac-GUI/
• further work for Rd support
- initial work on syntax highlighting
- applied (un)comment functionality
- implemented first stage of completion mode for \foo macros
- improved section parsing
- improved HTML preview
• fixed issue for R code completion if a '\' occurs i.e. it has to be escaped
5993
5313 d 2 h
bibiko
/trunk/Mac-GUI/
• initial commit to support "Rd Documention File" editing; not yet fully implemented but workable
- Rd files are assigned to R.app
- Rd file editor has its own toolbar and added "HTML Preview"
- Rd file will be parsed to build section list for pop-menu in toolbar (same approach as for function list of R files)
... work in progress
5772
5557 d 10 h
bibiko
/trunk/Mac-GUI/
• improved readability of the statusbars
- if content won't be show in multiple lines it will be displayed centered otherwise display at least two lines
- added tooltip
5732
5597 d 0 h
urbaneks
/trunk/Mac-GUI/
merge up to r147 including full l18n update
5719
5607 d 4 h
urbaneks
/trunk/Mac-GUI/
merge r109
5708
5613 d 13 h
urbaneks
/trunk/Mac-GUI/
fix 10.5 compatibility
5705
5614 d 3 h
urbaneks
/trunk/Mac-GUI/
merge r79 from the new GUI plus bugfixes
5676
5664 d 2 h
urbaneks
/trunk/Mac-GUI/
add encoding support
5089
6669 d 21 h
urbaneks
/trunk/Mac-GUI/
register R's internal Quartz windows correctly
1603
7707 d 3 h
urbaneks
/trunk/Mac-GUI/
Added preference for disabling function arguments lookup
1497
7746 d 21 h
urbaneks
/trunk/Mac-GUI/
Added arguments lookup to the editor
1431
7762 d 19 h
urbaneks
/trunk/Mac-GUI/
Add support for 'plain' mode which overrides preferences. Added proper init method.
1426
7762 d 23 h
urbaneks
/trunk/Mac-GUI/
Remove redundant local 'document' variable; be more verbose; sent explicit close to the document on window close
1397
7767 d 14 h
urbaneks
/trunk/Mac-GUI/
Fixed bugs in editor concerning brace highlighting; switched to NSTextStorage backed instead of attrib strings for performance reasons
←Prev
1
2
Next→
Show All