[SVN] r11860 (R)

Hans-Jörg Bibiko bibiko at eva.mpg.de
Tue Dec 1 09:03:49 UTC 2009


• Rewrote all Help based functions to support all R versions
- no index files needed, instead make usage of a Rhelper daemon which runs in the background and will be terminated if the user quits TM
• Improved all "show function usage" commands
- trial to fix the display of argument default like "\n"
- improved parsing of function usage out from the HTML page
- working offline (not Rdaemon) try to parse and evaluate the argument list of user-defined functions  on-the-fly by using the Rhelper daemon to format it and to show a possibly error in it
• Rewrote commands for "Insert Function Parameter"
- now Rhelper evaluates the argument list and outputs a list of all argument and defaults, this solves many problems while text parsing due to the nested parentheses issue
- trial to show also defaults like "\n"
- for "Insert all Parameters" insert "\n\t" after each 5th paramter to avoid insertion of a long and unreadable line
• the help search now makes usage of 'help.search()' only
• Introduced a new TM shell variable 'TM_R_SHOW_ALWAYS_HELPSEARCH
- if set to 1 show always the search interface even if only one help page is found
• Renamed R_AUTOCOMPLETE to TM_R_AUTOCOMPLETE (but the old var will be still recognized)
• Deleted unused files
• Moved temporary files to the temp folder to keep the bundle clean
• Modularized and simplified many commands

Note: Some tests are needed for different Mac OS still, tested for 10.6.2, Ruby 1.8.7, R 2.9.2 & R 2.10

Changed:
U   trunk/Bundles/R.tmbundle/Commands/Completion….tmCommand
D   trunk/Bundles/R.tmbundle/Commands/Create Command Help Index.tmCommand
U   trunk/Bundles/R.tmbundle/Commands/Help.tmCommand
U   trunk/Bundles/R.tmbundle/Commands/Show Function Usage.tmCommand
U   trunk/Bundles/R.tmbundle/Commands/Show R Documentation.tmCommand
U   trunk/Bundles/R.tmbundle/Commands/Show R Help for actual Word:Selection.tmCommand
U   trunk/Bundles/R.tmbundle/Commands/“require(xxx)” for current Function.tmCommand
A   trunk/Bundles/R.tmbundle/Support/bin/RhelperDaemon.rb
A   trunk/Bundles/R.tmbundle/Support/bin/RhelperScript.R
D   trunk/Bundles/R.tmbundle/Support/bin/Rhelperbuilder.rb
U   trunk/Bundles/R.tmbundle/Support/bin/Rsearch.sh
A   trunk/Bundles/R.tmbundle/Support/bin/askRhelperDaemon.sh
U   trunk/Bundles/R.tmbundle/Support/bin/auto_show_func_usage.sh
U   trunk/Bundles/R.tmbundle/Support/bin/insert_function_param.sh
U   trunk/Bundles/R.tmbundle/Support/bin/insert_package_name.sh
D   trunk/Bundles/R.tmbundle/Support/bin/linked_rhelp.rb
A   trunk/Bundles/R.tmbundle/Support/bin/parseDocForFunctions.sh
A   trunk/Bundles/R.tmbundle/Support/bin/parseHTMLForUsage.sh
D   trunk/Bundles/R.tmbundle/Support/bin/rebuild_help_index.sh
A   trunk/Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh
D   trunk/Bundles/R.tmbundle/Support/lib/data.html
D   trunk/Bundles/R.tmbundle/Support/lib/head.html
D   trunk/Bundles/R.tmbundle/Support/lib/search.html
U   trunk/Bundles/R.tmbundle/info.plist



More information about the textmate-dev mailing list