Learn R Programming

animation (version 0.2-0)

highlight.def: Create R definition file for the software Highlight

Description

The default definition file for R in Highlight is somewhat incomplete, and this function is to dynamically generate such a file according to packages in the search path.

Usage

highlight.def(file = "r.lang")

Arguments

file
the path of the output definition file.

Value

  • None.

Details

First all the functions are listed out by ls; then some constants and operators are removed from this long list; at last these characters are written into the file.

References

Highlight by Andre Simon: http://www.andre-simon.de/

See Also

ls, cat

Examples

Run this code
# generate the definition file in getwd() 
highlight.def()

# include functions in package 'animation'
library(animation) 
highlight.def()

Run the code above in your browser using DataLab