The R Project SVN R-packages

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
6238 5085 d 12 h bibiko /trunk/Mac-GUI/ • added Code Folding of { ... } multi-line blocks in R Script Editor; see gutter and/or Menu > Format > Code Folding > ...  
6233 5094 d 4 h bibiko /trunk/Mac-GUI/ • further work on folding code
- not yet activated
- test phase began
 
6128 5261 d 12 h bibiko /trunk/Mac-GUI/ • initial commit to support text chunk folding in RScriptEditor
- not yet activated since testing phase is not yet finished (esp. for speed)
• fixed line numbering refreshing calls
 
6070 5283 d 3 h bibiko /trunk/Mac-GUI/ • fixed bug for RTextView:copy
• fixed issues for changing font size via trackpad gesture
• fixed issue for setting selection background color
• started to add functionality to support user-definable actions like inserting programmable text macros with highlighted snippet etc. - will be continued soon
• improved *.R dragging by applying the above mentioned text macro mechanism
- the value of the parameter(s) 'chdir' is/are highlighted which can then changed by the user; use TAB and SHIFT+TAB to navigate through the highlighted snippets; a final TAB will place the cursor at the end of the inserted template - docs will follow
- added possibility to the user to define other drag actions due to file extension - docs will follow
- fixed some minor issues
• some minor fixes and improvements
 
6062 5288 d 11 h bibiko /trunk/Mac-GUI/ • fixed several bugs while color setting in RConsole and R script editors
- if user has NSColorPanel open and will set the focus to a RTextView close that panel to avoid annoying color changes
- introduced new selectionColor setting (not yet in GUI)
 
6060 5289 d 5 h bibiko /trunk/Mac-GUI/ • renamed and added resp. NSString's methods from "runBashCommandWithEnvironment" to "evaluateAsBashCommandWithEnvironment" and "runAsBashCommandWithEnvironment" resp.
- runAs... will run it without returning stdout for speed
- evaluateAs... will run it and return stdout
- added further placeholder methods like runAsBashCommand or runAsBashCommandAndError: etc.
- if no NSError will be passed write stderr to /dev/null
 
6059 5289 d 7 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
 
6058 5290 d 2 h bibiko /trunk/Mac-GUI/ • added NSString method runBashCommandWithEnvironment:atCurrentDirectoryPath:error: to be able to run any bash command(s) including code of other scripting languages like Python, Perl, etc (by specifying the magic header #!...)
- example: NSString *d = [@"date" runBashCommandWithEnvironment:nil atCurrentDirectoryPath:nil error:nil];
will run the command 'date' in a separate bash shell and set d to the current date.
- any of these called bash commands can be cancelled by pressing ⌘+. (Apple standard)
• applied above mentioned method to decouple editing stuff from REngine for checking Rd docs, converting Rd doc into HTML/PDF, and formatting R code since it's not a good idea to disturb a running R command in the RConsole while editing a doc. Furthermore now if the checking of a Rd doc freezes the user can simply press ⌘+. to cancel that separate task
• improved Format R code
• fixed some minor stuff for deleting temporary files
 
6051 5292 d 7 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.
 
6021 5303 d 8 h bibiko /trunk/Mac-GUI/ • re-implemented displaying a customized context menu for RTextView in such a way that all additional menu items coming from the spell checker, services, etc. will be shown correctly  
6001 5307 d 2 h bibiko /trunk/Mac-GUI/ • implemented own colors for Rd syntax highlighting; accordingly added preference keys and defaults  
5983 5329 d 11 h bibiko /trunk/Mac-GUI/ • Font setting in RConsole will now be stored persistently
• Improved options()'s width setting and updating behaviour due to RConsole's size and used font
• unified some code regarding font size settings
 
5764 5564 d 7 h urbaneks /trunk/Mac-GUI/ add separate color for console errors  
5726 5604 d 0 h urbaneks /trunk/Mac-GUI/ merge up to r122  
5721 5606 d 6 h urbaneks /trunk/Mac-GUI/ merge up to r114  
5719 5607 d 6 h urbaneks /trunk/Mac-GUI/ merge r109  
5705 5614 d 5 h urbaneks /trunk/Mac-GUI/ merge r79 from the new GUI plus bugfixes  
5589 5901 d 7 h urbaneks /trunk/Mac-GUI/ 1.34 R 2.11.1 release  
5536 6071 d 0 h urbaneks /trunk/Mac-GUI/ add use.external.help preference  
5096 6669 d 2 h urbaneks /trunk/Mac-GUI/ fix Quartz preferences to work with R 2.7.0; add DPI  

Show All